Changes in uspace/lib/posix/include/posix/unistd.h [ef84413:77de449e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/unistd.h
ref84413 r77de449e 47 47 #define _exit exit 48 48 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 49 61 extern char *optarg; 50 62 extern int optind, opterr, optopt; … … 86 98 extern int dup2(int fildes, int fildes2); 87 99 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 103 typedef int64_t off64_t; 104 89 105 extern off64_t lseek64(int fildes, off64_t offset, int whence); 90 106 extern int ftruncate64(int fildes, off64_t length); … … 106 122 #endif 107 123 108 /* Standard Streams */109 #undef STDIN_FILENO110 #define STDIN_FILENO (fileno(stdin))111 #undef STDOUT_FILENO112 #define STDOUT_FILENO (fileno(stdout))113 #undef STDERR_FILENO114 #define STDERR_FILENO (fileno(stderr))115 116 124 /* File Accessibility */ 117 #undef F_OK118 #undef X_OK119 #undef W_OK120 #undef R_OK121 #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. */125 125 extern int access(const char *path, int amode); 126 126 … … 171 171 extern unsigned int alarm(unsigned int); 172 172 173 __C_DECLS_END; 174 173 175 #endif /* POSIX_UNISTD_H_ */ 174 176
Note:
See TracChangeset
for help on using the changeset viewer.