Changeset 55092672 in mainline for uspace/lib/c
- Timestamp:
- 2018-06-15T13:06:18Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8338a81
- Parents:
- 1ae9c07
- git-author:
- Jiri Svoboda <jiri@…> (2018-06-14 22:05:23)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-06-15 13:06:18)
- Location:
- uspace/lib/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/elf/elf.c
r1ae9c07 r55092672 27 27 */ 28 28 29 #include <assert.h> 29 30 #include <elf/elf.h> 30 31 #include <assert.h> 31 #include <stdbool.h> 32 32 #include <stdlib.h> 33 33 -
uspace/lib/c/generic/strtol.c
r1ae9c07 r55092672 37 37 */ 38 38 39 #include <assert.h> 40 #include <ctype.h> 41 #include <errno.h> 39 42 #include <inttypes.h> 43 #include <limits.h> 44 #include <stdbool.h> 40 45 #include <stdlib.h> 41 #include <limits.h>42 #include <ctype.h>43 #include <assert.h>44 46 45 47 // TODO: unit tests -
uspace/lib/c/include/stdio.h
r1ae9c07 r55092672 59 59 #define BUFSIZ 4096 60 60 61 /** Recommended size of fixed-size array for holding file names. */ 62 #define FILENAME_MAX 4096 63 61 64 /** Forward declaration */ 62 65 struct _IO_FILE; … … 68 71 69 72 /* Character and string input functions */ 73 #define getc fgetc 70 74 extern int fgetc(FILE *); 71 75 extern char *fgets(char *, int, FILE *); … … 74 78 75 79 /* Character and string output functions */ 80 #define putc fputc 76 81 extern int fputc(int, FILE *); 77 82 extern int fputs(const char *, FILE *); … … 96 101 extern int snprintf(char *, size_t, const char *, ...) 97 102 _HELENOS_PRINTF_ATTRIBUTE(3, 4); 103 #if defined(_HELENOS_SOURCE) || defined(_GNU_SOURCE) 98 104 extern int vasprintf(char **, const char *, va_list); 99 105 extern int asprintf(char **, const char *, ...) 106 #endif 100 107 _HELENOS_PRINTF_ATTRIBUTE(2, 3); 101 108 extern int vsnprintf(char *, size_t, const char *, va_list); … … 137 144 #define _IOLBF 1 138 145 #define _IOFBF 2 146 147 extern char *gets(char *, size_t); 148 139 149 #endif 140 150 … … 168 178 extern FILE *fdopen(int, const char *); 169 179 extern int fileno(FILE *); 170 extern char *gets(char *, size_t);171 180 172 181 #include <offset.h> -
uspace/lib/c/include/stdlib.h
r1ae9c07 r55092672 38 38 #include <malloc.h> 39 39 #include <qsort.h> 40 #include <stacktrace.h>41 40 42 41 #define RAND_MAX 714025 42 43 #define EXIT_FAILURE 1 44 #define EXIT_SUCCESS 0 43 45 44 46 extern int rand(void);
Note:
See TracChangeset
for help on using the changeset viewer.