Changes in / [f2a45d9:4ac901c] in mainline
- Location:
- uspace/lib/posix
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/Makefile
rf2a45d9 r4ac901c 40 40 SOURCES = \ 41 41 ctype.c \ 42 stdio.c \43 42 stdlib.c \ 44 43 string.c \ -
uspace/lib/posix/stdio.h
rf2a45d9 r4ac901c 33 33 34 34 #define putc fputc 35 #define getc fgetc36 37 38 extern FILE *posix_freopen(const char *restrict filename,39 const char *restrict mode,40 FILE *restrict stream);41 42 extern void posix_perror(const char *s);43 44 #ifndef POSIX_INTERNAL45 #define freopen posix_freopen46 #define perror posix_perror47 #endif48 35 49 36 #endif /* POSIX_STDIO_H_ */ -
uspace/lib/posix/stdlib.c
rf2a45d9 r4ac901c 1 1 /* 2 2 * Copyright (c) 2011 Petr Koupy 3 * Copyright (c) 2011 Jiri Zarevucky4 3 * All rights reserved. 5 4 * … … 37 36 38 37 #include "stdlib.h" 39 #include "common.h"40 38 41 39 /** … … 49 47 { 50 48 // TODO 51 not_implemented();52 49 } 53 50 … … 60 57 { 61 58 // TODO 62 not_implemented();59 return 0; 63 60 } 64 61 … … 72 69 { 73 70 // TODO 74 not_implemented(); 75 } 76 77 /** 78 * 79 * @param nptr 80 * @param endptr 81 * @return 82 */ 83 float posix_strtof(const char *restrict nptr, char **restrict endptr) 84 { 85 // TODO 86 not_implemented(); 87 } 88 89 /** 90 * 91 * @param nptr 92 * @param endptr 93 * @return 94 */ 95 double posix_strtod(const char *restrict nptr, char **restrict endptr) 96 { 97 // TODO 98 not_implemented(); 99 } 100 101 /** 102 * 103 * @param nptr 104 * @param endptr 105 * @return 106 */ 107 long double posix_strtold(const char *restrict nptr, char **restrict endptr) 108 { 109 // TODO 110 not_implemented(); 111 } 112 113 /** 114 * 115 * @param str 116 * @return 117 */ 118 int posix_atoi(const char *str) 119 { 120 // TODO 121 not_implemented(); 71 return 0; 122 72 } 123 73 -
uspace/lib/posix/stdlib.h
rf2a45d9 r4ac901c 1 1 /* 2 2 * Copyright (c) 2011 Petr Koupy 3 * Copyright (c) 2011 Jiri Zarevucky4 3 * All rights reserved. 5 4 * … … 60 59 extern char *posix_realpath(const char *restrict name, char *restrict resolved); 61 60 62 /* decimal to native floating point conversion */63 extern float posix_strtof(const char *restrict nptr, char **restrict endptr);64 extern double posix_strtod(const char *restrict nptr, char **restrict endptr);65 extern long double posix_strtold(const char *restrict nptr, char **restrict endptr);66 67 /* decimal to native integer conversion */68 extern int posix_atoi(const char *str);69 70 61 #ifndef LIBPOSIX_INTERNAL 71 62 #define qsort posix_qsort 72 63 #define getenv posix_getenv 73 64 #define realpath posix_realpath 74 75 #define strtof posix_strtof76 #define strtod posix_strtod77 #define strtold posix_strtold78 79 #define atoi posix_atoi80 65 #endif 81 66
Note:
See TracChangeset
for help on using the changeset viewer.