Changeset 5d4e90f0 in mainline for uspace/lib/libc
- Timestamp:
- 2007-09-27T12:35:36Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bcf23cf
- Parents:
- 8c20b26
- Location:
- uspace/lib/libc
- Files:
-
- 1 deleted
- 45 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/arch/amd64/include/fibril.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_amd64_FIBRIL_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 /* According to ABI the stack MUST be aligned on -
uspace/lib/libc/arch/amd64/include/types.h
r8c20b26 r5d4e90f0 37 37 38 38 typedef unsigned long long sysarg_t; 39 typedef unsigned long size_t;40 typedef signed long ssize_t;41 typedef ssize_t off_t;42 39 43 40 typedef signed char int8_t; -
uspace/lib/libc/arch/arm32/include/fibril.h
r8c20b26 r5d4e90f0 37 37 #define LIBC_arm32_FIBRIL_H_ 38 38 39 #include < types.h>39 #include <sys/types.h> 40 40 #include <align.h> 41 41 #include "thread.h" -
uspace/lib/libc/arch/arm32/include/types.h
r8c20b26 r5d4e90f0 38 38 39 39 typedef unsigned int sysarg_t; 40 typedef unsigned int size_t;41 typedef signed int ssize_t;42 typedef ssize_t off_t;43 40 44 41 typedef char int8_t; -
uspace/lib/libc/arch/ia32/include/fibril.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_ia32_FIBRIL_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 /* According to ABI the stack MUST be aligned on -
uspace/lib/libc/arch/ia32/include/stackarg.h
r8c20b26 r5d4e90f0 41 41 #define LIBC_ia32_STACKARG_H_ 42 42 43 #include < types.h>43 #include <sys/types.h> 44 44 45 45 /* dont allow to define it second time in stdarg.h */ -
uspace/lib/libc/arch/ia32/include/types.h
r8c20b26 r5d4e90f0 37 37 38 38 typedef unsigned int sysarg_t; 39 typedef unsigned int size_t;40 typedef signed int ssize_t;41 typedef ssize_t off_t;42 39 43 40 typedef char int8_t; -
uspace/lib/libc/arch/ia64/include/fibril.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_ia64_FIBRIL_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <align.h> 40 40 #include <libarch/stack.h> -
uspace/lib/libc/arch/ia64/include/types.h
r8c20b26 r5d4e90f0 37 37 38 38 typedef unsigned long long sysarg_t; 39 typedef unsigned long size_t;40 typedef signed long ssize_t;41 typedef ssize_t off_t;42 39 43 40 typedef char int8_t; -
uspace/lib/libc/arch/mips32/include/fibril.h
r8c20b26 r5d4e90f0 37 37 #define LIBC_mips32_FIBRIL_H_ 38 38 39 #include < types.h>39 #include <sys/types.h> 40 40 41 41 /* We define our own context_set, because we need to set -
uspace/lib/libc/arch/mips32/include/stackarg.h
r8c20b26 r5d4e90f0 40 40 #define __VARARGS_DEFINED 41 41 42 #include < types.h>42 #include <sys/types.h> 43 43 44 44 /** -
uspace/lib/libc/arch/mips32/include/types.h
r8c20b26 r5d4e90f0 38 38 39 39 typedef unsigned int sysarg_t; 40 typedef unsigned int size_t;41 typedef signed int ssize_t;42 typedef ssize_t off_t;43 40 44 41 typedef char int8_t; -
uspace/lib/libc/arch/ppc32/include/fibril.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_ppc32_FIBRIL_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 /* We define our own context_set, because we need to set -
uspace/lib/libc/arch/ppc32/include/types.h
r8c20b26 r5d4e90f0 37 37 38 38 typedef unsigned int sysarg_t; 39 typedef unsigned int size_t;40 typedef signed int ssize_t;41 typedef ssize_t off_t;42 39 43 40 typedef char int8_t; -
uspace/lib/libc/arch/ppc64/include/fibril.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_ppc64_FIBRIL_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 /* We define our own context_set, because we need to set -
uspace/lib/libc/arch/ppc64/include/types.h
r8c20b26 r5d4e90f0 37 37 38 38 typedef unsigned long sysarg_t; 39 typedef unsigned long size_t;40 typedef signed long ssize_t;41 typedef ssize_t off_t;42 39 43 40 typedef char int8_t; -
uspace/lib/libc/arch/sparc64/include/atomic.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_sparc64_ATOMIC_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 /** Atomic add operation. -
uspace/lib/libc/arch/sparc64/include/fibril.h
r8c20b26 r5d4e90f0 37 37 38 38 #include <libarch/stack.h> 39 #include < types.h>39 #include <sys/types.h> 40 40 #include <align.h> 41 41 -
uspace/lib/libc/arch/sparc64/include/syscall.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_sparc64_SYSCALL_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <kernel/syscall/syscall.h> 40 40 -
uspace/lib/libc/arch/sparc64/include/types.h
r8c20b26 r5d4e90f0 37 37 38 38 typedef unsigned long sysarg_t; 39 typedef unsigned long size_t;40 typedef signed long ssize_t;41 typedef ssize_t off_t;42 39 43 40 typedef signed char int8_t; -
uspace/lib/libc/generic/as.c
r8c20b26 r5d4e90f0 37 37 #include <unistd.h> 38 38 #include <align.h> 39 #include < types.h>39 #include <sys/types.h> 40 40 #include <bitops.h> 41 41 -
uspace/lib/libc/generic/futex.c
r8c20b26 r5d4e90f0 37 37 #include <libc.h> 38 38 #include <stdio.h> 39 #include < types.h>39 #include <sys/types.h> 40 40 #include <kernel/synch/synch.h> 41 41 -
uspace/lib/libc/generic/io/stream.c
r8c20b26 r5d4e90f0 46 46 #include <unistd.h> 47 47 #include <async.h> 48 #include <sys/types.h> 48 49 49 50 #define FDS 32 -
uspace/lib/libc/generic/mman.c
r8c20b26 r5d4e90f0 34 34 35 35 #include <sys/mman.h> 36 #include <sys/types.h> 36 37 #include <as.h> 37 38 #include <unistd.h> -
uspace/lib/libc/generic/string.c
r8c20b26 r5d4e90f0 38 38 #include <limits.h> 39 39 #include <align.h> 40 #include <sys/types.h> 40 41 41 42 -
uspace/lib/libc/include/as.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_AS_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <task.h> 40 40 #include <kernel/mm/as.h> -
uspace/lib/libc/include/async.h
r8c20b26 r5d4e90f0 56 56 57 57 aid_t async_send_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, 58 58 ipc_call_t *dataptr); 59 59 aid_t async_send_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, 60 60 ipcarg_t arg3, ipc_call_t *dataptr); 61 61 void async_wait_for(aid_t amsgid, ipcarg_t *result); 62 62 int async_wait_timeout(aid_t amsgid, ipcarg_t *retval, suseconds_t timeout); … … 68 68 * @return Return code of message 69 69 */ 70 static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2) 70 static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, 71 ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2) 71 72 { 72 73 ipc_call_t result; … … 81 82 return rc; 82 83 } 83 #define async_req(phoneid, method, arg1, r1) async_req_2(phoneid, method, arg1, 0, r1, 0) 84 #define async_req(phoneid, method, arg1, r1) \ 85 async_req_2(phoneid, method, arg1, 0, r1, 0) 84 86 85 87 static inline ipcarg_t async_req_3(int phoneid, ipcarg_t method, ipcarg_t arg1, 86 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, 87 ipcarg_t *r2, ipcarg_t *r3) 88 ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, ipcarg_t *r2, ipcarg_t *r3) 88 89 { 89 90 ipc_call_t result; … … 114 115 /* Primitve functions for IPC communication */ 115 116 void async_msg_3(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, 116 117 ipcarg_t arg3); 117 118 void async_msg_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2); 118 119 #define async_msg(ph, m, a1) async_msg_2(ph, m, a1, 0) -
uspace/lib/libc/include/bitops.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_BITOPS_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 -
uspace/lib/libc/include/futex.h
r8c20b26 r5d4e90f0 37 37 38 38 #include <atomic.h> 39 #include < types.h>39 #include <sys/types.h> 40 40 41 41 #define FUTEX_INITIALIZER {1} -
uspace/lib/libc/include/io/io.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_IO_H_ 37 37 38 #include < libarch/types.h>38 #include <sys/types.h> 39 39 40 40 int putnchars(const char * buf, size_t count); -
uspace/lib/libc/include/io/printf_core.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_PRINTF_CORE_H_ 37 37 38 #include < libarch/types.h>38 #include <sys/types.h> 39 39 #include <stdarg.h> 40 40 -
uspace/lib/libc/include/ipc/ipc.h
r8c20b26 r5d4e90f0 39 39 #include <kernel/ddi/irq.h> 40 40 #include <libc.h> 41 #include < types.h>41 #include <sys/types.h> 42 42 #include <kernel/synch/synch.h> 43 43 -
uspace/lib/libc/include/libc.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_LIBC_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <kernel/syscall/syscall.h> 40 40 #include <libarch/syscall.h> -
uspace/lib/libc/include/stdarg.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_STDARG_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <libarch/stackarg.h> 40 40 -
uspace/lib/libc/include/stddef.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_STDDEF_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 #endif -
uspace/lib/libc/include/stdint.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_STDINT_H_ 37 37 38 /* Definitions of types with fixed size */39 #include < types.h>38 /* Definitions of types with fixed size */ 39 #include <libarch/types.h> 40 40 41 41 #define MAX_INT8 (0x7F) -
uspace/lib/libc/include/stdio.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_STDIO_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <stdarg.h> 40 40 -
uspace/lib/libc/include/string.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_STRING_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 #define bzero(ptr, len) memset((ptr), 0, (len)) -
uspace/lib/libc/include/sys/mman.h
r8c20b26 r5d4e90f0 37 37 38 38 #include <as.h> 39 #include <sys/types.h> 39 40 40 41 #define MAP_FAILED ((void *) -1) … … 49 50 #define PROTO_EXEC AS_AREA_EXEC 50 51 51 extern void 52 52 extern void *mmap(void *start, size_t length, int prot, int flags, int fd, 53 off_t offset); 53 54 extern int munmap(void *start, size_t length); 54 55 -
uspace/lib/libc/include/sys/time.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_TIME_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 #define DST_NONE 0 -
uspace/lib/libc/include/sys/types.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_SYS_TYPES_H_ 37 37 38 #include <types.h> 38 #include <libarch/types.h> 39 40 typedef unsigned long size_t; 41 typedef signed long ssize_t; 42 typedef long off_t; 39 43 40 44 #endif -
uspace/lib/libc/include/syscall.h
r8c20b26 r5d4e90f0 38 38 #define LIBC_SYSCALL_H_ 39 39 40 #include < types.h>40 #include <sys/types.h> 41 41 #include <kernel/syscall/syscall.h> 42 42 -
uspace/lib/libc/include/task.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_TASK_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 40 40 typedef uint64_t task_id_t; -
uspace/lib/libc/include/thread.h
r8c20b26 r5d4e90f0 38 38 #include <kernel/proc/uarg.h> 39 39 #include <libarch/thread.h> 40 #include < types.h>40 #include <sys/types.h> 41 41 42 42 typedef uint64_t thread_id_t; -
uspace/lib/libc/include/unistd.h
r8c20b26 r5d4e90f0 36 36 #define LIBC_UNISTD_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <libarch/config.h> 40 40
Note:
See TracChangeset
for help on using the changeset viewer.