Changes in uspace/lib/posix/include/posix/unistd.h [77de449e:ef84413] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/unistd.h
r77de449e ref84413 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 61 49 extern char *optarg; 62 50 extern int optind, opterr, optopt; … … 98 86 extern int dup2(int fildes, int fildes2); 99 87 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 105 89 extern off64_t lseek64(int fildes, off64_t offset, int whence); 106 90 extern int ftruncate64(int fildes, off64_t length); … … 122 106 #endif 123 107 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 124 116 /* 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. */ 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 175 173 #endif /* POSIX_UNISTD_H_ */ 176 174
Note:
See TracChangeset
for help on using the changeset viewer.