Ignore:
File:
1 edited

Legend:

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

    ref84413 r77de449e  
    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
    4961extern char *optarg;
    5062extern int optind, opterr, optopt;
     
    8698extern int dup2(int fildes, int fildes2);
    8799
    88 #ifdef _LARGEFILE64_SOURCE
     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
     103typedef int64_t off64_t;
     104
    89105extern off64_t lseek64(int fildes, off64_t offset, int whence);
    90106extern int ftruncate64(int fildes, off64_t length);
     
    106122#endif
    107123
    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 
    116124/* 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
    173175#endif /* POSIX_UNISTD_H_ */
    174176
Note: See TracChangeset for help on using the changeset viewer.