Changeset a000878c in mainline for uspace/lib
- 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
- Files:
-
- 14 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); -
uspace/lib/libpci/access.c
ra634485 ra000878c 51 51 } 52 52 53 static void pci_generic_error(c har *msg, ...)53 static void pci_generic_error(const char *msg, ...) 54 54 { 55 55 va_list args; … … 62 62 } 63 63 64 static void pci_generic_warn(c har *msg, ...)64 static void pci_generic_warn(const char *msg, ...) 65 65 { 66 66 va_list args; … … 72 72 } 73 73 74 static void pci_generic_debug(c har *msg, ...)74 static void pci_generic_debug(const char *msg, ...) 75 75 { 76 76 va_list args; … … 81 81 } 82 82 83 static void pci_null_debug(c har *msg UNUSED, ...)83 static void pci_null_debug(const char *msg UNUSED, ...) 84 84 { 85 85 } -
uspace/lib/libpci/internal.h
ra634485 ra000878c 13 13 14 14 struct pci_methods { 15 c har *name;15 const char *name; 16 16 void (*config) (struct pci_access *); 17 17 int (*detect) (struct pci_access *); -
uspace/lib/libpci/names.c
ra634485 ra000878c 299 299 } 300 300 301 c har *pci_lookup_name(struct pci_access *a, char *buf, int size, int flags,301 const char *pci_lookup_name(struct pci_access *a, char *buf, int size, int flags, 302 302 ...) 303 303 { -
uspace/lib/libpci/pci.h
ra634485 ra000878c 40 40 41 41 /* Functions you can override: */ 42 void (*error) (c har *msg, ...); /* Write error message and quit */43 void (*warning) (c har *msg, ...); /* Write a warning message */44 void (*debug) (c har *msg, ...); /* Write a debugging message */42 void (*error) (const char *msg, ...); /* Write error message and quit */ 43 void (*warning) (const char *msg, ...); /* Write a warning message */ 44 void (*debug) (const char *msg, ...); /* Write a debugging message */ 45 45 46 46 struct pci_dev *devices; /* Devices found on this bus */ … … 128 128 */ 129 129 130 c har *pci_lookup_name(struct pci_access *a, char *buf, int size, int flags,131 130 const char *pci_lookup_name(struct pci_access *a, char *buf, int size, 131 int flags, ...); 132 132 133 133 int pci_load_name_list(struct pci_access *a); /* Called automatically by pci_lookup_*() when needed; returns success */ -
uspace/lib/libpci/pci_ids.h
ra634485 ra000878c 1 1 /* DO NOT EDIT, THIS FILE IS AUTOMATICALLY GENERATED */ 2 c har *pci_ids[] = {2 const char *pci_ids[] = { 3 3 "0000 Gammagraphx, Inc.", 4 4 "001a Ascend Communications, Inc.",
Note:
See TracChangeset
for help on using the changeset viewer.