Changeset 04803bf in mainline for uspace/lib/c/include/unistd.h


Ignore:
Timestamp:
2011-03-21T22:00:17Z (15 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
143932e3
Parents:
b50b5af2 (diff), 7308e84 (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 (needs fixes).

File:
1 moved

Legend:

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

    rb50b5af2 r04803bf  
    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)
     44#endif
     45
     46#ifndef SEEK_SET
     47        #define SEEK_SET  0
     48#endif
     49
     50#ifndef SEEK_CUR
     51        #define SEEK_CUR  1
     52#endif
     53
     54#ifndef SEEK_END
     55        #define SEEK_END  2
    4356#endif
    4457
    4558#define getpagesize()  (PAGE_SIZE)
    4659
    47 #ifndef SEEK_SET
    48         #define SEEK_SET  0
    49         #define SEEK_CUR  1
    50         #define SEEK_END  2
    51 #endif
     60extern int dup2(int oldfd, int newfd);
    5261
    5362extern ssize_t write(int, const void *, size_t);
    5463extern ssize_t read(int, void *, size_t);
    5564
    56 extern off_t lseek(int, off_t, int);
    57 extern int ftruncate(int, off_t);
     65extern off64_t lseek(int, off64_t, int);
     66extern int ftruncate(int, aoff64_t);
    5867
    5968extern int close(int);
     
    6574extern int chdir(const char *);
    6675
    67 extern void _exit(int status) __attribute__ ((noreturn));
    68 extern int usleep(unsigned long usec);
    69 extern unsigned int sleep(unsigned int seconds);
     76extern void exit(int) __attribute__((noreturn));
     77extern int usleep(useconds_t);
     78extern unsigned int sleep(unsigned int);
    7079
    7180#endif
Note: See TracChangeset for help on using the changeset viewer.