Changeset 46c20c8 in mainline for uspace/lib/c/include/unistd.h


Ignore:
Timestamp:
2010-11-26T20:08:10Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45df59a
Parents:
fb150d78 (diff), ffdd2b9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/unistd.h

    rfb150d78 r46c20c8  
    3737
    3838#include <sys/types.h>
     39#include <time.h>
    3940#include <libarch/config.h>
    4041
    4142#ifndef NULL
    42         #define NULL  0
     43        #define NULL    ((void *) 0)
    4344#endif
    4445
     
    4748#ifndef SEEK_SET
    4849        #define SEEK_SET  0
     50#endif
     51
     52#ifndef SEEK_CUR
    4953        #define SEEK_CUR  1
     54#endif
     55
     56#ifndef SEEK_END
    5057        #define SEEK_END  2
    5158#endif
    52 
    53 typedef uint32_t useconds_t;
    5459
    5560extern int dup2(int oldfd, int newfd);
     
    5863extern ssize_t read(int, void *, size_t);
    5964
    60 extern off_t lseek(int, off_t, int);
    61 extern int ftruncate(int, off_t);
     65extern off64_t lseek(int, off64_t, int);
     66extern int ftruncate(int, aoff64_t);
    6267
    6368extern int close(int);
     
    6974extern int chdir(const char *);
    7075
    71 extern void _exit(int status) __attribute__ ((noreturn));
    72 extern int usleep(useconds_t uses);
    73 extern unsigned int sleep(unsigned int se);
     76extern void _exit(int) __attribute__((noreturn));
     77extern int usleep(useconds_t);
     78extern unsigned int sleep(unsigned int);
    7479
    7580#endif
Note: See TracChangeset for help on using the changeset viewer.