Changeset 59f799b in mainline
- Timestamp:
- 2011-06-16T19:42:22Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39a7bfa
- Parents:
- 491e1ee
- Location:
- uspace/lib/posix
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/stdio.c
r491e1ee r59f799b 47 47 */ 48 48 #include "../c/generic/private/stdio.h" 49 50 /** 51 * 52 * @param c 53 * @param stream 54 * @return 55 */ 56 int posix_ungetc(int c, FILE *stream) 57 { 58 // TODO 59 not_implemented(); 60 } 49 61 50 62 /** … … 135 147 } 136 148 149 /** 150 * 151 * @param s 152 * @param format 153 * @param ... 154 * @return 155 */ 156 int posix_sprintf(char *s, const char *format, ...) 157 { 158 // TODO 159 not_implemented(); 160 } 161 162 /** 163 * 164 * @param s 165 * @param format 166 * @param ... 167 * @return 168 */ 169 int posix_sscanf(const char *s, const char *format, ...) 170 { 171 // TODO 172 not_implemented(); 173 } 174 137 175 /** @} 138 176 */ -
uspace/lib/posix/stdio.h
r491e1ee r59f799b 43 43 #define putc fputc 44 44 #define getc fgetc 45 extern int posix_ungetc(int c, FILE *stream); 45 46 46 47 /* Opening Streams */ … … 57 58 extern posix_off_t posix_ftello(FILE *stream); 58 59 60 /* Formatted Input/Output */ 61 extern int posix_sprintf(char *restrict s, const char *restrict format, ...); 62 extern int posix_sscanf(const char *restrict s, const char *restrict format, ...); 63 59 64 #ifndef LIBPOSIX_INTERNAL 65 #define ungetc posix_ungetc 66 60 67 #define freopen posix_freopen 61 68 … … 64 71 #define fseeko posix_fseeko 65 72 #define ftello posix_ftello 73 74 #define sprintf posix_sprintf 75 #define sscanf posix_sscanf 66 76 #endif 67 77 -
uspace/lib/posix/unistd.c
r491e1ee r59f799b 51 51 52 52 /** 53 * 54 * @return 55 */ 56 posix_uid_t posix_getuid(void) 57 { 58 // TODO 59 not_implemented(); 60 } 61 62 /** 63 * 64 * @return 65 */ 66 posix_gid_t posix_getgid(void) 67 { 68 // TODO 69 not_implemented(); 70 } 71 72 /** 53 73 * 54 74 * @param path … … 62 82 } 63 83 84 /** 85 * 86 * @param name 87 * @return 88 */ 89 long posix_sysconf(int name) 90 { 91 // TODO 92 not_implemented(); 93 } 94 64 95 /** @} 65 96 */ -
uspace/lib/posix/unistd.h
r491e1ee r59f799b 38 38 39 39 #include "libc/unistd.h" 40 #include "sys/types.h" 40 41 41 42 /* Process Termination */ … … 52 53 /* Process Identification */ 53 54 #define getpid task_get_id 55 extern posix_uid_t posix_getuid(void); 56 extern posix_gid_t posix_getgid(void); 54 57 55 58 /* Standard Streams */ … … 72 75 extern int posix_access(const char *path, int amode); 73 76 77 /* System Parameters */ 78 enum { 79 _SC_PHYS_PAGES, 80 _SC_AVPHYS_PAGES, 81 _SC_PAGESIZE, 82 _SC_CLK_TCK 83 }; 84 extern long posix_sysconf(int name); 85 74 86 #ifndef LIBPOSIX_INTERNAL 75 87 #define isatty posix_isatty 76 88 89 #define getuid posix_getuid 90 #define getgid posix_getgid 91 77 92 #define access posix_access 93 94 #define sysconf posix_sysconf 78 95 #endif 79 96
Note:
See TracChangeset
for help on using the changeset viewer.