Ignore:
File:
1 edited

Legend:

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

    r77de449e ref84413  
    4747#define _exit exit
    4848
    49 /* Standard Streams */
    50 #define STDIN_FILENO (fileno(stdin))
    51 #define STDOUT_FILENO (fileno(stdout))
    52 #define STDERR_FILENO (fileno(stderr))
    53 
    54 #define F_OK 0 /* Test for existence. */
    55 #define X_OK 1 /* Test for execute permission. */
    56 #define W_OK 2 /* Test for write permission. */
    57 #define R_OK 4 /* Test for read permission. */
    58 
    59 __C_DECLS_BEGIN;
    60 
    6149extern char *optarg;
    6250extern int optind, opterr, optopt;
     
    9886extern int dup2(int fildes, int fildes2);
    9987
    100 #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
    101 // FIXME: this should just be defined in <sys/types.h>, but for some reason
    102 //        build of coastline binutils on mips32 doesn't see the definition there
    103 typedef int64_t off64_t;
    104 
     88#ifdef _LARGEFILE64_SOURCE
    10589extern off64_t lseek64(int fildes, off64_t offset, int whence);
    10690extern int ftruncate64(int fildes, off64_t length);
     
    122106#endif
    123107
     108/* Standard Streams */
     109#undef STDIN_FILENO
     110#define STDIN_FILENO (fileno(stdin))
     111#undef STDOUT_FILENO
     112#define STDOUT_FILENO (fileno(stdout))
     113#undef STDERR_FILENO
     114#define STDERR_FILENO (fileno(stderr))
     115
    124116/* File Accessibility */
     117#undef F_OK
     118#undef X_OK
     119#undef W_OK
     120#undef R_OK
     121#define F_OK 0 /* Test for existence. */
     122#define X_OK 1 /* Test for execute permission. */
     123#define W_OK 2 /* Test for write permission. */
     124#define R_OK 4 /* Test for read permission. */
    125125extern int access(const char *path, int amode);
    126126
     
    171171extern unsigned int alarm(unsigned int);
    172172
    173 __C_DECLS_END;
    174 
    175173#endif /* POSIX_UNISTD_H_ */
    176174
Note: See TracChangeset for help on using the changeset viewer.