Changes in / [7da90cd:010be476] in mainline
- Location:
- uspace
- Files:
-
- 1 deleted
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.c
r7da90cd r010be476 51 51 #include <macros.h> 52 52 #include <mem.h> 53 #include <malloc.h>54 #include <stdio.h>55 53 #include <sys/typefmt.h> 56 54 #include <stacktrace.h> -
uspace/lib/c/Makefile
r7da90cd r010be476 113 113 generic/arg_parse.c \ 114 114 generic/sort.c \ 115 generic/stats.c \ 116 generic/assert.c \ 115 generic/stats.c 117 116 118 117 SOURCES = \ -
uspace/lib/c/arch/ia32/include/config.h
r7da90cd r010be476 36 36 #define LIBC_ia32_CONFIG_H_ 37 37 38 #define PAGE_WIDTH 12 39 #define PAGE_SIZE (1 << PAGE_WIDTH) 40 41 #define USER_ADDRESS_SPACE_START_ARCH UINT32_C(0x00000000) 42 #define USER_ADDRESS_SPACE_END_ARCH UINT32_C(0x7fffffff) 38 #define PAGE_WIDTH 12 39 #define PAGE_SIZE (1 << PAGE_WIDTH) 43 40 44 41 #endif -
uspace/lib/c/arch/ia32/include/ddi.h
r7da90cd r010be476 37 37 #include <libarch/types.h> 38 38 39 #define IO_SPACE_BOUNDARY 39 #define IO_SPACE_BOUNDARY ((void *) (64 * 1024)) 40 40 41 41 static inline uint8_t pio_read_8(ioport8_t *port) -
uspace/lib/c/arch/ia32/include/faddr.h
r7da90cd r010be476 38 38 #include <libarch/types.h> 39 39 40 #define FADDR(fptr) 40 #define FADDR(fptr) ((uintptr_t) (fptr)) 41 41 42 42 #endif -
uspace/lib/c/arch/ia32/include/fibril.h
r7da90cd r010be476 42 42 * panic sooner or later 43 43 */ 44 #define SP_DELTA 1244 #define SP_DELTA (12) 45 45 46 46 #define context_set(c, _pc, stack, size, ptls) \ … … 51 51 (c)->ebp = 0; \ 52 52 } while (0) 53 54 /* 55 * We include only registers that must be preserved 53 54 /* We include only registers that must be preserved 56 55 * during function call 57 56 */ -
uspace/lib/c/arch/ia32/src/stacktrace.c
r7da90cd r010be476 35 35 */ 36 36 37 #include <libarch/config.h>38 37 #include <sys/types.h> 39 38 #include <bool.h> 39 40 40 #include <stacktrace.h> 41 41 42 #define FRAME_OFFSET_FP_PREV 43 #define FRAME_OFFSET_RA 42 #define FRAME_OFFSET_FP_PREV 0 43 #define FRAME_OFFSET_RA 4 44 44 45 45 bool stacktrace_fp_valid(stacktrace_t *st, uintptr_t fp) 46 46 { 47 47 (void) st; 48 return (fp != 0) && (fp <= USER_ADDRESS_SPACE_END_ARCH);48 return fp != 0; 49 49 } 50 50 -
uspace/lib/c/generic/async.c
r7da90cd r010be476 102 102 #include <arch/barrier.h> 103 103 #include <bool.h> 104 #include <stdlib.h>105 #include <malloc.h>106 104 #include "private/async.h" 107 105 -
uspace/lib/c/generic/async_sess.c
r7da90cd r010be476 105 105 #include <errno.h> 106 106 #include <assert.h> 107 #include <async.h>108 107 #include "private/async_sess.h" 109 108 -
uspace/lib/c/generic/errno.c
r7da90cd r010be476 36 36 #include <fibril.h> 37 37 38 static fibril_local int fibril_errno; 39 40 int *__errno(void) 41 { 42 return &fibril_errno; 43 } 38 int _errno; 44 39 45 40 /** @} -
uspace/lib/c/generic/fibril_synch.c
r7da90cd r010be476 43 43 #include <stacktrace.h> 44 44 #include <stdlib.h> 45 #include <stdio.h>46 45 #include "private/async.h" 47 46 -
uspace/lib/c/generic/malloc.c
r7da90cd r010be476 44 44 #include <mem.h> 45 45 #include <futex.h> 46 #include <stdlib.h>47 46 #include <adt/gcdlcm.h> 48 47 #include "private/malloc.h" -
uspace/lib/c/generic/stacktrace.c
r7da90cd r010be476 61 61 stacktrace_prepare(); 62 62 stacktrace_print_fp_pc(stacktrace_fp_get(), stacktrace_pc_get()); 63 64 63 /* 65 64 * Prevent the tail call optimization of the previous call by 66 65 * making it a non-tail call. 67 66 */ 68 69 printf("-- end of stack trace --\n"); 67 (void) stacktrace_fp_get(); 70 68 } 71 69 -
uspace/lib/c/include/assert.h
r7da90cd r010be476 40 40 * 41 41 * If NDEBUG is not set, the assert() macro 42 * evaluates expr and if it is false prints 42 * evaluates expr and if it is false prints 43 43 * error message and terminate program. 44 44 * … … 47 47 */ 48 48 49 #include <stdio.h> 50 #include <stdlib.h> 51 49 52 #ifndef NDEBUG 50 53 51 54 #define assert(expr) \ 52 55 do { \ 53 if (!(expr)) \ 54 assert_abort(#expr, __FILE__, __LINE__); \ 56 if (!(expr)) { \ 57 printf("Assertion failed (%s) at file '%s', " \ 58 "line %d.\n", #expr, __FILE__, __LINE__); \ 59 abort(); \ 60 } \ 55 61 } while (0) 56 62 … … 61 67 #endif /* NDEBUG */ 62 68 63 extern void assert_abort(const char *, const char *, unsigned int)64 __attribute__((noreturn));65 66 69 #endif 67 70 -
uspace/lib/c/include/errno.h
r7da90cd r010be476 39 39 #include <fibril.h> 40 40 41 #define errno (*(__errno()))41 #define errno _errno 42 42 43 extern int *__errno(void) __attribute__((const));43 extern int _errno; 44 44 45 45 #define EMFILE (-18) -
uspace/lib/c/include/fibril_synch.h
r7da90cd r010be476 36 36 #define LIBC_FIBRIL_SYNCH_H_ 37 37 38 #include <async.h> 38 39 #include <fibril.h> 39 40 #include <adt/list.h> 40 41 #include <libarch/tls.h> 41 42 #include <sys/time.h> 42 #include <bool.h>43 43 44 44 typedef struct { 45 fibril_owner_info_t oi; /**<Keep this the first thing. */45 fibril_owner_info_t oi; /* Keep this the first thing. */ 46 46 int counter; 47 47 link_t waiters; … … 64 64 65 65 typedef struct { 66 fibril_owner_info_t oi; /**<Keep this the first thing. */66 fibril_owner_info_t oi; /* Keep this the first thing. */ 67 67 unsigned writers; 68 68 unsigned readers; -
uspace/srv/devman/devman.c
r7da90cd r010be476 39 39 #include <devmap.h> 40 40 #include <str_error.h> 41 #include <stdio.h>42 41 43 42 #include "devman.h" -
uspace/srv/fs/fat/fat_fat.c
r7da90cd r010be476 47 47 #include <assert.h> 48 48 #include <fibril_synch.h> 49 #include <malloc.h>50 49 #include <mem.h> 51 50 -
uspace/srv/fs/fat/fat_idx.c
r7da90cd r010be476 44 44 #include <assert.h> 45 45 #include <fibril_synch.h> 46 #include <malloc.h>47 46 48 47 /** Each instance of this type describes one interval of freed VFS indices. */ -
uspace/srv/fs/fat/fat_ops.c
r7da90cd r010be476 55 55 #include <sys/mman.h> 56 56 #include <align.h> 57 #include <malloc.h>58 57 59 58 #define FAT_NODE(node) ((node) ? (fat_node_t *) (node)->data : NULL) -
uspace/srv/hw/netif/ne2000/dp8390.c
r7da90cd r010be476 53 53 #include <byteorder.h> 54 54 #include <errno.h> 55 #include <stdio.h>56 55 #include <libarch/ddi.h> 57 56 #include <net/packet.h> -
uspace/srv/ns/clonable.c
r7da90cd r010be476 78 78 if (list_empty(&cs_req)) { 79 79 /* There was no pending connection request. */ 80 printf( "%s: Unexpected clonable server.\n", NAME);80 printf(NAME ": Unexpected clonable server.\n"); 81 81 ipc_answer_0(callid, EBUSY); 82 82 return; -
uspace/srv/ns/service.c
r7da90cd r010be476 35 35 #include <assert.h> 36 36 #include <errno.h> 37 #include <stdio.h>38 #include <malloc.h>39 37 #include "service.h" 40 38 #include "ns.h" -
uspace/srv/ns/task.c
r7da90cd r010be476 39 39 #include <stdio.h> 40 40 #include <macros.h> 41 #include <malloc.h>42 41 #include "task.h" 43 42 #include "ns.h"
Note:
See TracChangeset
for help on using the changeset viewer.