Changes in / [7da90cd:010be476] in mainline


Ignore:
Location:
uspace
Files:
1 deleted
24 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/block/libblock.c

    r7da90cd r010be476  
    5151#include <macros.h>
    5252#include <mem.h>
    53 #include <malloc.h>
    54 #include <stdio.h>
    5553#include <sys/typefmt.h>
    5654#include <stacktrace.h>
  • uspace/lib/c/Makefile

    r7da90cd r010be476  
    113113        generic/arg_parse.c \
    114114        generic/sort.c \
    115         generic/stats.c \
    116         generic/assert.c \
     115        generic/stats.c
    117116
    118117SOURCES = \
  • uspace/lib/c/arch/ia32/include/config.h

    r7da90cd r010be476  
    3636#define LIBC_ia32_CONFIG_H_
    3737
    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)
    4340
    4441#endif
  • uspace/lib/c/arch/ia32/include/ddi.h

    r7da90cd r010be476  
    3737#include <libarch/types.h>
    3838
    39 #define IO_SPACE_BOUNDARY  ((void *) (64 * 1024))
     39#define IO_SPACE_BOUNDARY       ((void *) (64 * 1024))
    4040
    4141static inline uint8_t pio_read_8(ioport8_t *port)
  • uspace/lib/c/arch/ia32/include/faddr.h

    r7da90cd r010be476  
    3838#include <libarch/types.h>
    3939
    40 #define FADDR(fptr)  ((uintptr_t) (fptr))
     40#define FADDR(fptr)             ((uintptr_t) (fptr))
    4141
    4242#endif
  • uspace/lib/c/arch/ia32/include/fibril.h

    r7da90cd r010be476  
    4242 * panic sooner or later
    4343 */
    44 #define SP_DELTA  12
     44#define SP_DELTA     (12)
    4545
    4646#define context_set(c, _pc, stack, size, ptls) \
     
    5151                (c)->ebp = 0; \
    5252        } while (0)
    53 
    54 /*
    55  * We include only registers that must be preserved
     53       
     54/* We include only registers that must be preserved
    5655 * during function call
    5756 */
  • uspace/lib/c/arch/ia32/src/stacktrace.c

    r7da90cd r010be476  
    3535 */
    3636
    37 #include <libarch/config.h>
    3837#include <sys/types.h>
    3938#include <bool.h>
     39
    4040#include <stacktrace.h>
    4141
    42 #define FRAME_OFFSET_FP_PREV  0
    43 #define FRAME_OFFSET_RA       4
     42#define FRAME_OFFSET_FP_PREV    0
     43#define FRAME_OFFSET_RA         4
    4444
    4545bool stacktrace_fp_valid(stacktrace_t *st, uintptr_t fp)
    4646{
    4747        (void) st;
    48         return (fp != 0) && (fp <= USER_ADDRESS_SPACE_END_ARCH);
     48        return fp != 0;
    4949}
    5050
  • uspace/lib/c/generic/async.c

    r7da90cd r010be476  
    102102#include <arch/barrier.h>
    103103#include <bool.h>
    104 #include <stdlib.h>
    105 #include <malloc.h>
    106104#include "private/async.h"
    107105
  • uspace/lib/c/generic/async_sess.c

    r7da90cd r010be476  
    105105#include <errno.h>
    106106#include <assert.h>
    107 #include <async.h>
    108107#include "private/async_sess.h"
    109108
  • uspace/lib/c/generic/errno.c

    r7da90cd r010be476  
    3636#include <fibril.h>
    3737
    38 static fibril_local int fibril_errno;
    39 
    40 int *__errno(void)
    41 {
    42         return &fibril_errno;
    43 }
     38int _errno;
    4439
    4540/** @}
  • uspace/lib/c/generic/fibril_synch.c

    r7da90cd r010be476  
    4343#include <stacktrace.h>
    4444#include <stdlib.h>
    45 #include <stdio.h>
    4645#include "private/async.h"
    4746
  • uspace/lib/c/generic/malloc.c

    r7da90cd r010be476  
    4444#include <mem.h>
    4545#include <futex.h>
    46 #include <stdlib.h>
    4746#include <adt/gcdlcm.h>
    4847#include "private/malloc.h"
  • uspace/lib/c/generic/stacktrace.c

    r7da90cd r010be476  
    6161        stacktrace_prepare();
    6262        stacktrace_print_fp_pc(stacktrace_fp_get(), stacktrace_pc_get());
    63        
    6463        /*
    6564         * Prevent the tail call optimization of the previous call by
    6665         * making it a non-tail call.
    6766         */
    68        
    69         printf("-- end of stack trace --\n");
     67        (void) stacktrace_fp_get();
    7068}
    7169
  • uspace/lib/c/include/assert.h

    r7da90cd r010be476  
    4040 *
    4141 * 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 
    4343 * error message and terminate program.
    4444 *
     
    4747 */
    4848
     49#include <stdio.h>
     50#include <stdlib.h>
     51
    4952#ifndef NDEBUG
    5053
    5154#define assert(expr) \
    5255        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                } \
    5561        } while (0)
    5662
     
    6167#endif /* NDEBUG */
    6268
    63 extern void assert_abort(const char *, const char *, unsigned int)
    64     __attribute__((noreturn));
    65 
    6669#endif
    6770
  • uspace/lib/c/include/errno.h

    r7da90cd r010be476  
    3939#include <fibril.h>
    4040
    41 #define errno  (*(__errno()))
     41#define errno _errno
    4242
    43 extern int *__errno(void) __attribute__((const));
     43extern int _errno;
    4444
    4545#define EMFILE        (-18)
  • uspace/lib/c/include/fibril_synch.h

    r7da90cd r010be476  
    3636#define LIBC_FIBRIL_SYNCH_H_
    3737
     38#include <async.h>
    3839#include <fibril.h>
    3940#include <adt/list.h>
    4041#include <libarch/tls.h>
    4142#include <sys/time.h>
    42 #include <bool.h>
    4343
    4444typedef struct {
    45         fibril_owner_info_t oi;  /**< Keep this the first thing. */
     45        fibril_owner_info_t oi;         /* Keep this the first thing. */
    4646        int counter;
    4747        link_t waiters;
     
    6464
    6565typedef struct {
    66         fibril_owner_info_t oi;  /**< Keep this the first thing. */
     66        fibril_owner_info_t oi; /* Keep this the first thing. */
    6767        unsigned writers;
    6868        unsigned readers;
  • uspace/srv/devman/devman.c

    r7da90cd r010be476  
    3939#include <devmap.h>
    4040#include <str_error.h>
    41 #include <stdio.h>
    4241
    4342#include "devman.h"
  • uspace/srv/fs/fat/fat_fat.c

    r7da90cd r010be476  
    4747#include <assert.h>
    4848#include <fibril_synch.h>
    49 #include <malloc.h>
    5049#include <mem.h>
    5150
  • uspace/srv/fs/fat/fat_idx.c

    r7da90cd r010be476  
    4444#include <assert.h>
    4545#include <fibril_synch.h>
    46 #include <malloc.h>
    4746
    4847/** Each instance of this type describes one interval of freed VFS indices. */
  • uspace/srv/fs/fat/fat_ops.c

    r7da90cd r010be476  
    5555#include <sys/mman.h>
    5656#include <align.h>
    57 #include <malloc.h>
    5857
    5958#define FAT_NODE(node)  ((node) ? (fat_node_t *) (node)->data : NULL)
  • uspace/srv/hw/netif/ne2000/dp8390.c

    r7da90cd r010be476  
    5353#include <byteorder.h>
    5454#include <errno.h>
    55 #include <stdio.h>
    5655#include <libarch/ddi.h>
    5756#include <net/packet.h>
  • uspace/srv/ns/clonable.c

    r7da90cd r010be476  
    7878        if (list_empty(&cs_req)) {
    7979                /* There was no pending connection request. */
    80                 printf("%s: Unexpected clonable server.\n", NAME);
     80                printf(NAME ": Unexpected clonable server.\n");
    8181                ipc_answer_0(callid, EBUSY);
    8282                return;
  • uspace/srv/ns/service.c

    r7da90cd r010be476  
    3535#include <assert.h>
    3636#include <errno.h>
    37 #include <stdio.h>
    38 #include <malloc.h>
    3937#include "service.h"
    4038#include "ns.h"
  • uspace/srv/ns/task.c

    r7da90cd r010be476  
    3939#include <stdio.h>
    4040#include <macros.h>
    41 #include <malloc.h>
    4241#include "task.h"
    4342#include "ns.h"
Note: See TracChangeset for help on using the changeset viewer.