Changes in / [36df27eb:08d4ea2] in mainline
- Files:
-
- 1 added
- 1 deleted
- 18 edited
-
.travis.yml (deleted)
-
kernel/arch/arm32/include/arch/cache.h (modified) (2 diffs)
-
kernel/generic/include/proc/task.h (modified) (1 diff)
-
kernel/generic/include/proc/thread.h (modified) (1 diff)
-
tools/ccheck.sh (modified) (2 diffs)
-
uspace/lib/c/generic/assert.c (modified) (1 diff)
-
uspace/lib/c/generic/malloc.c (modified) (2 diffs)
-
uspace/lib/c/include/assert.h (modified) (2 diffs)
-
uspace/lib/c/include/fibril.h (modified) (1 diff)
-
uspace/lib/posix/include/posix/assert.h (added)
-
uspace/lib/posix/include/posix/fcntl.h (modified) (1 diff)
-
uspace/lib/posix/include/posix/stdlib.h (modified) (1 diff)
-
uspace/lib/posix/source/fnmatch.c (modified) (1 diff)
-
uspace/lib/posix/source/pwd.c (modified) (1 diff)
-
uspace/lib/posix/source/stdio.c (modified) (1 diff)
-
uspace/lib/posix/source/stdio/scanf.c (modified) (1 diff)
-
uspace/lib/posix/source/stdlib/strtold.c (modified) (1 diff)
-
uspace/lib/posix/source/string.c (modified) (1 diff)
-
uspace/lib/posix/source/sys/wait.c (modified) (1 diff)
-
uspace/lib/posix/source/time.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/arch/cache.h
r36df27eb r08d4ea2 39 39 #include <typedefs.h> 40 40 41 externunsigned dcache_levels(void);41 unsigned dcache_levels(void); 42 42 43 externvoid dcache_flush(void);44 externvoid dcache_flush_invalidate(void);45 externvoid cpu_dcache_flush(void);46 externvoid cpu_dcache_flush_invalidate(void);43 void dcache_flush(void); 44 void dcache_flush_invalidate(void); 45 void cpu_dcache_flush(void); 46 void cpu_dcache_flush_invalidate(void); 47 47 extern void icache_invalidate(void); 48 48 extern void dcache_invalidate(void); … … 50 50 51 51 #endif 52 53 52 /** @} 54 53 */ 54 -
kernel/generic/include/proc/task.h
r36df27eb r08d4ea2 58 58 #include <udebug/udebug.h> 59 59 #include <mm/as.h> 60 #include <abi/proc/task.h>61 60 #include <abi/sysinfo.h> 62 61 #include <arch.h> -
kernel/generic/include/proc/thread.h
r36df27eb r08d4ea2 48 48 #include <abi/proc/uarg.h> 49 49 #include <udebug/udebug.h> 50 #include <abi/proc/thread.h>51 50 #include <abi/sysinfo.h> 52 51 #include <arch.h> -
tools/ccheck.sh
r36df27eb r08d4ea2 36 36 find abi kernel boot uspace -type f -regex '^.*\.[ch]$' | ( 37 37 while read fname; do 38 outfile="$(mktemp)" 39 $ccheck $fname >"$outfile" 2>&1 38 $ccheck $fname >/tmp/ccheck.out 2>&1 40 39 rc=$? 41 40 if [ .$rc == .0 ]; then 42 if [ -s "$outfile"] ; then41 if [ -s /tmp/ccheck.out ] ; then 43 42 srepcnt=$((srepcnt + 1)) 44 cat "$outfile" 43 echo '**' Reports for file $fname: '**' 44 cat /tmp/ccheck.out 45 45 else 46 46 snorepcnt=$((snorepcnt + 1)) … … 49 49 fcnt=$((fcnt + 1)) 50 50 fi 51 52 rm -f "$outfile"53 51 done 54 52 -
uspace/lib/c/generic/assert.c
r36df27eb r08d4ea2 41 41 static atomic_t failed_asserts = {0}; 42 42 43 void __helenos_assert_quick_abort(const char *cond, const char *file, unsigned int line) 44 { 45 /* 46 * Send the message safely to kio. Nested asserts should not occur. 47 */ 48 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n", 49 cond, file, line); 50 51 /* Sometimes we know in advance that regular printf() would likely fail. */ 52 abort(); 53 } 54 55 void __helenos_assert_abort(const char *cond, const char *file, unsigned int line) 43 void assert_abort(const char *cond, const char *file, unsigned int line) 56 44 { 57 45 /* -
uspace/lib/c/generic/malloc.c
r36df27eb r08d4ea2 33 33 /** @file 34 34 */ 35 36 #define _HELENOS_SOURCE37 35 38 36 #include <malloc.h> … … 198 196 static futex_t malloc_futex = FUTEX_INITIALIZER; 199 197 200 #define malloc_assert(expr) safe_assert(expr) 198 #ifndef NDEBUG 199 200 #define malloc_assert(expr) \ 201 do { \ 202 if (!(expr)) {\ 203 heap_unlock(); \ 204 assert_abort(#expr, __FILE__, __LINE__); \ 205 } \ 206 } while (0) 207 208 #else /* NDEBUG */ 209 210 #define malloc_assert(expr) 211 212 #endif /* NDEBUG */ 213 201 214 202 215 #ifdef FUTEX_UPGRADABLE -
uspace/lib/c/include/assert.h
r36df27eb r08d4ea2 34 34 */ 35 35 36 // XXX: The definition of `assert()` is not guarded.37 // One must not use `#pragma once` in this header.38 // This is in accordance with the C standard.39 40 36 #ifndef LIBC_ASSERT_H_ 41 37 #define LIBC_ASSERT_H_ 42 38 43 39 #define static_assert(expr) _Static_assert(expr, "") 44 45 extern void __helenos_assert_abort(const char *, const char *, unsigned int)46 __attribute__((noreturn));47 48 extern void __helenos_assert_quick_abort(const char *, const char *, unsigned int)49 __attribute__((noreturn));50 51 #endif52 40 53 41 /** Debugging assert macro … … 61 49 */ 62 50 63 # undef assert51 #ifndef NDEBUG 64 52 65 #ifndef NDEBUG 66 #define assert(expr) ((expr) ? (void) 0 : __helenos_assert_abort(#expr, __FILE__, __LINE__)) 67 #else 68 #define assert(expr) ((void) 0) 53 #define assert(expr) \ 54 do { \ 55 if (!(expr)) \ 56 assert_abort(#expr, __FILE__, __LINE__); \ 57 } while (0) 58 59 #else /* NDEBUG */ 60 61 #define assert(expr) 62 63 #endif /* NDEBUG */ 64 65 extern void assert_abort(const char *, const char *, unsigned int) 66 __attribute__((noreturn)); 67 69 68 #endif 70 71 #ifdef _HELENOS_SOURCE72 73 #undef safe_assert74 75 #ifndef NDEBUG76 #define safe_assert(expr) ((expr) ? (void) 0 : __helenos_assert_quick_abort(#expr, __FILE__, __LINE__))77 #else78 #define safe_assert(expr) ((void) 0)79 #endif80 81 #endif /* _HELENOS_SOURCE */82 69 83 70 /** @} -
uspace/lib/c/include/fibril.h
r36df27eb r08d4ea2 102 102 extern void fibril_remove_manager(void); 103 103 extern fid_t fibril_get_id(void); 104 extern void fibril_inc_sercount(void); 105 extern void fibril_dec_sercount(void); 106 extern int fibril_get_sercount(void); 104 107 105 108 static inline int fibril_yield(void) -
uspace/lib/posix/include/posix/fcntl.h
r36df27eb r08d4ea2 41 41 42 42 #include "sys/types.h" 43 #include "errno.h" 43 44 44 45 #undef O_CREAT -
uspace/lib/posix/include/posix/stdlib.h
r36df27eb r08d4ea2 40 40 #define __POSIX_DEF__(x) x 41 41 #endif 42 43 #include "libc/stdlib.h" 42 44 43 45 #include "sys/types.h" -
uspace/lib/posix/source/fnmatch.c
r36df27eb r08d4ea2 49 49 #include "posix/string.h" 50 50 #include "posix/stdlib.h" 51 #include <assert.h>51 #include "posix/assert.h" 52 52 53 53 #include "internal/common.h" -
uspace/lib/posix/source/pwd.c
r36df27eb r08d4ea2 40 40 #include "posix/string.h" 41 41 #include <errno.h> 42 #include <assert.h>42 #include "posix/assert.h" 43 43 44 44 static bool entry_read = false; -
uspace/lib/posix/source/stdio.c
r36df27eb r08d4ea2 40 40 #include "posix/stdio.h" 41 41 42 #include <assert.h>42 #include "posix/assert.h" 43 43 44 44 #include <errno.h> -
uspace/lib/posix/source/stdio/scanf.c
r36df27eb r08d4ea2 36 36 #define __POSIX_DEF__(x) posix_##x 37 37 38 #include <assert.h>38 #include "posix/assert.h" 39 39 40 40 #include <errno.h> -
uspace/lib/posix/source/stdlib/strtold.c
r36df27eb r08d4ea2 40 40 #include "posix/stdlib.h" 41 41 42 #include <assert.h>42 #include "posix/assert.h" 43 43 #include "posix/ctype.h" 44 44 #include "posix/stdint.h" -
uspace/lib/posix/source/string.c
r36df27eb r08d4ea2 40 40 #include "posix/string.h" 41 41 42 #include <assert.h>42 #include "posix/assert.h" 43 43 44 44 #include <errno.h> -
uspace/lib/posix/source/sys/wait.c
r36df27eb r08d4ea2 41 41 42 42 #include "libc/task.h" 43 #include <assert.h>43 #include "posix/assert.h" 44 44 45 45 #include <errno.h> -
uspace/lib/posix/source/time.c
r36df27eb r08d4ea2 45 45 46 46 #include "posix/signal.h" 47 #include <assert.h>47 #include "posix/assert.h" 48 48 49 49 #include "libc/async.h"
Note:
See TracChangeset
for help on using the changeset viewer.
