Changeset a000878c in mainline for uspace/lib/libc
- Timestamp:
- 2010-02-25T19:11:25Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 958de16
- Parents:
- a634485
- Location:
- uspace/lib/libc
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/Makefile.toolchain
ra634485 ra000878c 27 27 # 28 28 29 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \ 29 OPTIMIZATION = 3 30 31 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(LIBC_PREFIX)/../../../config.h \ 30 32 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 31 33 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 32 34 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 33 -Werror-implicit-function-declaration -Werror -pipe -g -D__$(ENDIANESS)__ 35 -Werror-implicit-function-declaration -Wwrite-strings \ 36 -Werror -pipe -g -D__$(ENDIANESS)__ 34 37 35 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \ 38 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(LIBC_PREFIX)/../../../config.h \ 39 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 40 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 41 -Wall -Wextra -Wno-clobbered -Wno-unused-parameter -Wmissing-prototypes \ 42 -Werror-implicit-function-declaration -Wwrite-strings \ 43 -Werror -pipe -g -D__$(ENDIANESS)__ 44 45 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(LIBC_PREFIX)/../../../config.h \ 36 46 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 37 47 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 38 48 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 39 -Werror-implicit-function-declaration -Werror -pipe -g -D__$(ENDIANESS)__ 40 41 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \ 42 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 43 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 44 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 45 -Werror-implicit-function-declaration -pipe -g -arch $(CLANG_ARCH) \ 46 -D__$(ENDIANESS)__ 49 -Werror-implicit-function-declaration -Wwrite-strings \ 50 -pipe -g -arch $(CLANG_ARCH) -D__$(ENDIANESS)__ 47 51 48 52 LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a -
uspace/lib/libc/generic/loader.c
ra634485 ra000878c 183 183 * 184 184 */ 185 int loader_set_args(loader_t *ldr, c har *const argv[])185 int loader_set_args(loader_t *ldr, const char *const argv[]) 186 186 { 187 187 /* … … 189 189 * compute size of the buffer needed. 190 190 */ 191 c har *const *ap = argv;191 const char *const *ap = argv; 192 192 size_t buffer_size = 0; 193 193 while (*ap != NULL) { -
uspace/lib/libc/generic/sysinfo.c
ra634485 ra000878c 37 37 #include <string.h> 38 38 39 sysarg_t sysinfo_value(c har *name)39 sysarg_t sysinfo_value(const char *name) 40 40 { 41 return __SYSCALL2(SYS_SYSINFO_VALUE, (sysarg_t 41 return __SYSCALL2(SYS_SYSINFO_VALUE, (sysarg_t) name, 42 42 (sysarg_t) str_size(name)); 43 43 } -
uspace/lib/libc/generic/task.c
ra634485 ra000878c 76 76 * 77 77 */ 78 task_id_t task_spawn(const char *path, c har *const args[])78 task_id_t task_spawn(const char *path, const char *const args[]) 79 79 { 80 80 /* Connect to a program loader. */ -
uspace/lib/libc/generic/thread.c
ra634485 ra000878c 86 86 * @return Zero on success or a code from @ref errno.h on failure. 87 87 */ 88 int thread_create(void (* function)(void *), void *arg, c har *name,88 int thread_create(void (* function)(void *), void *arg, const char *name, 89 89 thread_id_t *tid) 90 90 { -
uspace/lib/libc/include/loader/loader.h
ra634485 ra000878c 51 51 extern int loader_set_cwd(loader_t *); 52 52 extern int loader_set_pathname(loader_t *, const char *); 53 extern int loader_set_args(loader_t *, c har *const[]);53 extern int loader_set_args(loader_t *, const char *const[]); 54 54 extern int loader_set_files(loader_t *, fdi_node_t *const[]); 55 55 extern int loader_load_program(loader_t *); -
uspace/lib/libc/include/sysinfo.h
ra634485 ra000878c 40 40 #include <string.h> 41 41 42 sysarg_t sysinfo_value(c har *name);42 sysarg_t sysinfo_value(const char *name); 43 43 44 44 #endif -
uspace/lib/libc/include/task.h
ra634485 ra000878c 47 47 extern task_id_t task_get_id(void); 48 48 extern int task_set_name(const char *name); 49 extern task_id_t task_spawn(const char *path, c har *const argv[]);49 extern task_id_t task_spawn(const char *path, const char *const argv[]); 50 50 extern int task_wait(task_id_t id, task_exit_t *texit, int *retval); 51 51 extern int task_retval(int val); -
uspace/lib/libc/include/thread.h
ra634485 ra000878c 45 45 extern void __thread_main(uspace_arg_t *); 46 46 47 extern int thread_create(void (*)(void *), void *, c har *, thread_id_t *);47 extern int thread_create(void (*)(void *), void *, const char *, thread_id_t *); 48 48 extern void thread_exit(int) __attribute__ ((noreturn)); 49 49 extern void thread_detach(thread_id_t);
Note:
See TracChangeset
for help on using the changeset viewer.