Changeset 5d4e90f0 in mainline
- Timestamp:
- 2007-09-27T12:35:36Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bcf23cf
- Parents:
- 8c20b26
- Location:
- uspace
- Files:
-
- 1 deleted
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/tester.h
r8c20b26 r5d4e90f0 36 36 #define TESTER_H_ 37 37 38 #include < types.h>38 #include <sys/types.h> 39 39 #include <bool.h> 40 40 #include <ipc/ipc.h> -
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 -
uspace/srv/fb/ppm.c
r8c20b26 r5d4e90f0 27 27 */ 28 28 29 #include < types.h>29 #include <sys/types.h> 30 30 #include <errno.h> 31 31 … … 35 35 { 36 36 retry: 37 while (**data == ' ' || **data == '\t' || **data == '\n' || **data == '\r') 37 while (**data == ' ' || **data == '\t' || **data == '\n' || 38 **data == '\r') 38 39 (*data)++; 39 40 if (**data == '#') { … … 57 58 } 58 59 59 int ppm_get_data(unsigned char *data, size_t dtsz, unsigned int *width, unsigned int *height) 60 int ppm_get_data(unsigned char *data, size_t dtsz, unsigned int *width, 61 unsigned int *height) 60 62 { 61 63 /* Read magic */ … … 82 84 * @param putpixel Putpixel function used to print bitmap 83 85 */ 84 int ppm_draw(unsigned char *data, size_t datasz, unsigned int sx, 85 unsigned int sy, 86 unsigned int maxwidth, unsigned int maxheight, 87 putpixel_cb_t putpixel, void *vport) 86 int ppm_draw(unsigned char *data, size_t datasz, unsigned int sx, 87 unsigned int sy, unsigned int maxwidth, unsigned int maxheight, 88 putpixel_cb_t putpixel, void *vport) 88 89 { 89 90 unsigned int width, height; … … 106 107 data++; 107 108 108 if (maxcolor == 0 || maxcolor > 255 || width *height > datasz) {109 if (maxcolor == 0 || maxcolor > 255 || width * height > datasz) { 109 110 return EINVAL; 110 111 } 111 coef = 255 /maxcolor;112 if (coef *maxcolor > 255)112 coef = 255 / maxcolor; 113 if (coef * maxcolor > 255) 113 114 coef -= 1; 114 115 115 for (i =0; i < width*height; i++) {116 for (i = 0; i < width * height; i++) { 116 117 /* Crop picture if we don't fit into region */ 117 if (i % width > maxwidth || i /width > maxheight) {118 if (i % width > maxwidth || i / width > maxheight) { 118 119 data += 3; 119 120 continue; 120 121 } 121 color = ((data[0]*coef) << 16) + ((data[1]*coef) << 8) + data[2]*coef; 122 color = ((data[0] * coef) << 16) + ((data[1] * coef) << 8) + 123 data[2] * coef; 122 124 123 (*putpixel)(vport, sx +(i % width), sy+(i / width), color);125 (*putpixel)(vport, sx + (i % width), sy + (i / width), color); 124 126 data += 3; 125 127 } -
uspace/srv/fb/ppm.h
r8c20b26 r5d4e90f0 31 31 32 32 #include "fb.h" 33 #include <sys/types.h> 33 34 34 35 extern int ppm_draw(unsigned char *, size_t, unsigned int, unsigned int, -
uspace/srv/kbd/arch/sparc64/src/kbd.c
r8c20b26 r5d4e90f0 41 41 #include <keys.h> 42 42 #include <stdio.h> 43 #include < types.h>43 #include <sys/types.h> 44 44 #include <genarch/kbd.h> 45 45 -
uspace/srv/kbd/include/key_buffer.h
r8c20b26 r5d4e90f0 38 38 #define __KEY_BUFFER_H__ 39 39 40 #include < types.h>40 #include <sys/types.h> 41 41 42 42 /** Size of buffer for pressed keys */ -
uspace/srv/pci/libpci/types.h
r8c20b26 r5d4e90f0 9 9 */ 10 10 11 #include < types.h>11 #include <sys/types.h> 12 12 13 13 #ifndef PCI_HAVE_Uxx_TYPES
Note:
See TracChangeset
for help on using the changeset viewer.