/trunk/uspace/lib/libc/include/types.h |
---|
File deleted |
/trunk/uspace/lib/libc/include/futex.h |
---|
36,7 → 36,7 |
#define LIBC_FUTEX_H_ |
#include <atomic.h> |
#include <types.h> |
#include <sys/types.h> |
#define FUTEX_INITIALIZER {1} |
/trunk/uspace/lib/libc/include/as.h |
---|
35,7 → 35,7 |
#ifndef LIBC_AS_H_ |
#define LIBC_AS_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <task.h> |
#include <kernel/mm/as.h> |
#include <libarch/config.h> |
/trunk/uspace/lib/libc/include/stdint.h |
---|
36,7 → 36,7 |
#define LIBC_STDINT_H_ |
/* Definitions of types with fixed size*/ |
#include <types.h> |
#include <libarch/types.h> |
#define MAX_INT8 (0x7F) |
#define MIN_INT8 (0x80) |
/trunk/uspace/lib/libc/include/string.h |
---|
35,7 → 35,7 |
#ifndef LIBC_STRING_H_ |
#define LIBC_STRING_H_ |
#include <types.h> |
#include <sys/types.h> |
#define bzero(ptr, len) memset((ptr), 0, (len)) |
/trunk/uspace/lib/libc/include/stddef.h |
---|
35,7 → 35,7 |
#ifndef LIBC_STDDEF_H_ |
#define LIBC_STDDEF_H_ |
#include <types.h> |
#include <sys/types.h> |
#endif |
/trunk/uspace/lib/libc/include/syscall.h |
---|
37,7 → 37,7 |
#ifndef LIBC_SYSCALL_H_ |
#define LIBC_SYSCALL_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <kernel/syscall/syscall.h> |
extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id); |
/trunk/uspace/lib/libc/include/async.h |
---|
67,7 → 67,8 |
* |
* @return Return code of message |
*/ |
static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2) |
static inline ipcarg_t async_req_2(int phoneid, ipcarg_t method, ipcarg_t arg1, |
ipcarg_t arg2, ipcarg_t *r1, ipcarg_t *r2) |
{ |
ipc_call_t result; |
ipcarg_t rc; |
80,11 → 81,11 |
*r2 = IPC_GET_ARG2(result); |
return rc; |
} |
#define async_req(phoneid, method, arg1, r1) async_req_2(phoneid, method, arg1, 0, r1, 0) |
#define async_req(phoneid, method, arg1, r1) \ |
async_req_2(phoneid, method, arg1, 0, r1, 0) |
static inline ipcarg_t async_req_3(int phoneid, ipcarg_t method, ipcarg_t arg1, |
ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, |
ipcarg_t *r2, ipcarg_t *r3) |
ipcarg_t arg2, ipcarg_t arg3, ipcarg_t *r1, ipcarg_t *r2, ipcarg_t *r3) |
{ |
ipc_call_t result; |
ipcarg_t rc; |
/trunk/uspace/lib/libc/include/stdio.h |
---|
35,7 → 35,7 |
#ifndef LIBC_STDIO_H_ |
#define LIBC_STDIO_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <stdarg.h> |
#define EOF (-1) |
/trunk/uspace/lib/libc/include/bitops.h |
---|
35,7 → 35,7 |
#ifndef LIBC_BITOPS_H_ |
#define LIBC_BITOPS_H_ |
#include <types.h> |
#include <sys/types.h> |
/** Return position of first non-zero bit from left (i.e. [log_2(arg)]). |
/trunk/uspace/lib/libc/include/task.h |
---|
35,7 → 35,7 |
#ifndef LIBC_TASK_H_ |
#define LIBC_TASK_H_ |
#include <types.h> |
#include <sys/types.h> |
typedef uint64_t task_id_t; |
/trunk/uspace/lib/libc/include/unistd.h |
---|
35,7 → 35,7 |
#ifndef LIBC_UNISTD_H_ |
#define LIBC_UNISTD_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <libarch/config.h> |
#define NULL 0 |
/trunk/uspace/lib/libc/include/thread.h |
---|
37,7 → 37,7 |
#include <kernel/proc/uarg.h> |
#include <libarch/thread.h> |
#include <types.h> |
#include <sys/types.h> |
typedef uint64_t thread_id_t; |
/trunk/uspace/lib/libc/include/libc.h |
---|
35,7 → 35,7 |
#ifndef LIBC_LIBC_H_ |
#define LIBC_LIBC_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <kernel/syscall/syscall.h> |
#include <libarch/syscall.h> |
/trunk/uspace/lib/libc/include/io/printf_core.h |
---|
35,7 → 35,7 |
#ifndef LIBC_PRINTF_CORE_H_ |
#define LIBC_PRINTF_CORE_H_ |
#include <libarch/types.h> |
#include <sys/types.h> |
#include <stdarg.h> |
/** Structure for specifying output methods for different printf clones. */ |
/trunk/uspace/lib/libc/include/io/io.h |
---|
35,7 → 35,7 |
#ifndef LIBC_IO_H_ |
#define LIBC_IO_H_ |
#include <libarch/types.h> |
#include <sys/types.h> |
int putnchars(const char * buf, size_t count); |
int putstr(const char * str); |
/trunk/uspace/lib/libc/include/stdarg.h |
---|
35,7 → 35,7 |
#ifndef LIBC_STDARG_H_ |
#define LIBC_STDARG_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <libarch/stackarg.h> |
#ifndef __VARARGS_DEFINED |
/trunk/uspace/lib/libc/include/ipc/ipc.h |
---|
38,7 → 38,7 |
#include <kernel/ipc/ipc.h> |
#include <kernel/ddi/irq.h> |
#include <libc.h> |
#include <types.h> |
#include <sys/types.h> |
#include <kernel/synch/synch.h> |
typedef sysarg_t ipcarg_t; |
/trunk/uspace/lib/libc/include/sys/time.h |
---|
35,7 → 35,7 |
#ifndef LIBC_TIME_H_ |
#define LIBC_TIME_H_ |
#include <types.h> |
#include <sys/types.h> |
#define DST_NONE 0 |
/trunk/uspace/lib/libc/include/sys/types.h |
---|
35,8 → 35,12 |
#ifndef LIBC_SYS_TYPES_H_ |
#define LIBC_SYS_TYPES_H_ |
#include <types.h> |
#include <libarch/types.h> |
typedef unsigned long size_t; |
typedef signed long ssize_t; |
typedef long off_t; |
#endif |
/** @} |
/trunk/uspace/lib/libc/include/sys/mman.h |
---|
36,6 → 36,7 |
#define LIBC_MMAN_H_ |
#include <as.h> |
#include <sys/types.h> |
#define MAP_FAILED ((void *) -1) |
/trunk/uspace/lib/libc/generic/as.c |
---|
36,7 → 36,7 |
#include <libc.h> |
#include <unistd.h> |
#include <align.h> |
#include <types.h> |
#include <sys/types.h> |
#include <bitops.h> |
/** |
/trunk/uspace/lib/libc/generic/string.c |
---|
37,6 → 37,7 |
#include <ctype.h> |
#include <limits.h> |
#include <align.h> |
#include <sys/types.h> |
/* Dummy implementation of mem/ functions */ |
/trunk/uspace/lib/libc/generic/io/stream.c |
---|
45,6 → 45,7 |
#include <console.h> |
#include <unistd.h> |
#include <async.h> |
#include <sys/types.h> |
#define FDS 32 |
/trunk/uspace/lib/libc/generic/mman.c |
---|
33,6 → 33,7 |
*/ |
#include <sys/mman.h> |
#include <sys/types.h> |
#include <as.h> |
#include <unistd.h> |
/trunk/uspace/lib/libc/generic/futex.c |
---|
36,7 → 36,7 |
#include <atomic.h> |
#include <libc.h> |
#include <stdio.h> |
#include <types.h> |
#include <sys/types.h> |
#include <kernel/synch/synch.h> |
/* |
/trunk/uspace/lib/libc/arch/sparc64/include/syscall.h |
---|
35,7 → 35,7 |
#ifndef LIBC_sparc64_SYSCALL_H_ |
#define LIBC_sparc64_SYSCALL_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <kernel/syscall/syscall.h> |
static inline sysarg_t |
/trunk/uspace/lib/libc/arch/sparc64/include/atomic.h |
---|
35,7 → 35,7 |
#ifndef LIBC_sparc64_ATOMIC_H_ |
#define LIBC_sparc64_ATOMIC_H_ |
#include <types.h> |
#include <sys/types.h> |
/** Atomic add operation. |
* |
/trunk/uspace/lib/libc/arch/sparc64/include/types.h |
---|
36,9 → 36,6 |
#define LIBC_sparc64_TYPES_H_ |
typedef unsigned long sysarg_t; |
typedef unsigned long size_t; |
typedef signed long ssize_t; |
typedef ssize_t off_t; |
typedef signed char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/sparc64/include/fibril.h |
---|
36,7 → 36,7 |
#define LIBC_sparc64_FIBRIL_H_ |
#include <libarch/stack.h> |
#include <types.h> |
#include <sys/types.h> |
#include <align.h> |
#define SP_DELTA STACK_WINDOW_SAVE_AREA_SIZE |
/trunk/uspace/lib/libc/arch/ia64/include/types.h |
---|
36,9 → 36,6 |
#define LIBC_ia64_TYPES_H_ |
typedef unsigned long long sysarg_t; |
typedef unsigned long size_t; |
typedef signed long ssize_t; |
typedef ssize_t off_t; |
typedef char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/ia64/include/fibril.h |
---|
35,7 → 35,7 |
#ifndef LIBC_ia64_FIBRIL_H_ |
#define LIBC_ia64_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <align.h> |
#include <libarch/stack.h> |
#include <libarch/types.h> |
/trunk/uspace/lib/libc/arch/arm32/include/types.h |
---|
37,9 → 37,6 |
#define LIBC_arm32_TYPES_H_ |
typedef unsigned int sysarg_t; |
typedef unsigned int size_t; |
typedef signed int ssize_t; |
typedef ssize_t off_t; |
typedef char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/arm32/include/fibril.h |
---|
36,7 → 36,7 |
#ifndef LIBC_arm32_FIBRIL_H_ |
#define LIBC_arm32_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
#include <align.h> |
#include "thread.h" |
/trunk/uspace/lib/libc/arch/ppc32/include/types.h |
---|
36,9 → 36,6 |
#define LIBC_ppc32_TYPES_H_ |
typedef unsigned int sysarg_t; |
typedef unsigned int size_t; |
typedef signed int ssize_t; |
typedef ssize_t off_t; |
typedef char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/ppc32/include/fibril.h |
---|
35,7 → 35,7 |
#ifndef LIBC_ppc32_FIBRIL_H_ |
#define LIBC_ppc32_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
/* We define our own context_set, because we need to set |
* the TLS pointer to the tcb+0x7000 |
/trunk/uspace/lib/libc/arch/amd64/include/types.h |
---|
36,9 → 36,6 |
#define LIBC_amd64_TYPES_H_ |
typedef unsigned long long sysarg_t; |
typedef unsigned long size_t; |
typedef signed long ssize_t; |
typedef ssize_t off_t; |
typedef signed char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/amd64/include/fibril.h |
---|
35,7 → 35,7 |
#ifndef LIBC_amd64_FIBRIL_H_ |
#define LIBC_amd64_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
/* According to ABI the stack MUST be aligned on |
* 16-byte boundary. If it is not, the va_arg calling will |
/trunk/uspace/lib/libc/arch/ppc64/include/types.h |
---|
36,9 → 36,6 |
#define LIBC_ppc64_TYPES_H_ |
typedef unsigned long sysarg_t; |
typedef unsigned long size_t; |
typedef signed long ssize_t; |
typedef ssize_t off_t; |
typedef char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/ppc64/include/fibril.h |
---|
35,7 → 35,7 |
#ifndef LIBC_ppc64_FIBRIL_H_ |
#define LIBC_ppc64_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
/* We define our own context_set, because we need to set |
* the TLS pointer to the tcb+0x7000 |
/trunk/uspace/lib/libc/arch/mips32/include/stackarg.h |
---|
39,7 → 39,7 |
/* dont allow to define it second time in stdarg.h */ |
#define __VARARGS_DEFINED |
#include <types.h> |
#include <sys/types.h> |
/** |
* va_arg macro for MIPS32 - problem is that 64 bit values must be aligned on an 8-byte boundary (32bit values not) |
/trunk/uspace/lib/libc/arch/mips32/include/types.h |
---|
37,9 → 37,6 |
#define LIBC_mips32_TYPES_H_ |
typedef unsigned int sysarg_t; |
typedef unsigned int size_t; |
typedef signed int ssize_t; |
typedef ssize_t off_t; |
typedef char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/mips32/include/fibril.h |
---|
36,7 → 36,7 |
#ifndef LIBC_mips32_FIBRIL_H_ |
#define LIBC_mips32_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
/* We define our own context_set, because we need to set |
* the TLS pointer to the tcb+0x7000 |
/trunk/uspace/lib/libc/arch/ia32/include/stackarg.h |
---|
40,7 → 40,7 |
#ifndef LIBC_ia32_STACKARG_H_ |
#define LIBC_ia32_STACKARG_H_ |
#include <types.h> |
#include <sys/types.h> |
/* dont allow to define it second time in stdarg.h */ |
#define __VARARGS_DEFINED |
/trunk/uspace/lib/libc/arch/ia32/include/types.h |
---|
36,9 → 36,6 |
#define LIBC_ia32_TYPES_H_ |
typedef unsigned int sysarg_t; |
typedef unsigned int size_t; |
typedef signed int ssize_t; |
typedef ssize_t off_t; |
typedef char int8_t; |
typedef short int int16_t; |
/trunk/uspace/lib/libc/arch/ia32/include/fibril.h |
---|
35,7 → 35,7 |
#ifndef LIBC_ia32_FIBRIL_H_ |
#define LIBC_ia32_FIBRIL_H_ |
#include <types.h> |
#include <sys/types.h> |
/* According to ABI the stack MUST be aligned on |
* 16-byte boundary. If it is not, the va_arg calling will |