Changeset 53031c2 in mainline
- Timestamp:
- 2015-06-01T00:49:17Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eab9689
- Parents:
- 193d280c
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/memstr.h
r193d280c r53031c2 36 36 37 37 extern void *memcpy(void *, const void *, size_t) 38 __attribute__ ((optimize("-fno-tree-loop-distribute-patterns"))); 38 __attribute__((nonnull(1, 2))) 39 __attribute__((optimize("-fno-tree-loop-distribute-patterns"))); 39 40 extern void *memset(void *, int, size_t) 40 __attribute__ ((optimize("-fno-tree-loop-distribute-patterns"))); 41 extern void *memmove(void *, const void *, size_t); 41 __attribute__((nonnull(1))) 42 __attribute__((optimize("-fno-tree-loop-distribute-patterns"))); 43 extern void *memmove(void *, const void *, size_t) 44 __attribute__((nonnull(1, 2))); 42 45 43 46 #endif -
kernel/generic/include/lib/memfnc.h
r193d280c r53031c2 46 46 47 47 extern void *memset(void *, int, size_t) 48 __attribute__((nonnull(1))) 48 49 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD; 49 50 extern void *memcpy(void *, const void *, size_t) 51 __attribute__((nonnull(1, 2))) 50 52 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns") DO_NOT_DISCARD; 51 53 -
kernel/generic/include/memstr.h
r193d280c r53031c2 48 48 #define memcpy(dst, src, cnt) __builtin_memcpy((dst), (src), (cnt)) 49 49 50 extern void memsetb(void *, size_t, uint8_t); 51 extern void memsetw(void *, size_t, uint16_t); 52 extern void *memmove(void *, const void *, size_t) DO_NOT_DISCARD; 50 extern void memsetb(void *, size_t, uint8_t) 51 __attribute__((nonnull(1))); 52 extern void memsetw(void *, size_t, uint16_t) 53 __attribute__((nonnull(1))); 54 extern void *memmove(void *, const void *, size_t) 55 __attribute__((nonnull(1, 2))) DO_NOT_DISCARD; 53 56 54 57 #endif -
kernel/generic/include/mm/slab.h
r193d280c r53031c2 142 142 extern void *malloc(size_t, unsigned int) 143 143 __attribute__((malloc)); 144 extern void *realloc(void *, size_t, unsigned int); 144 extern void *realloc(void *, size_t, unsigned int) 145 __attribute__((warn_unused_result)); 145 146 extern void free(void *); 146 147 -
uspace/lib/c/include/malloc.h
r193d280c r53031c2 44 44 extern void *memalign(const size_t align, const size_t size) 45 45 __attribute__((malloc)); 46 extern void *realloc(const void *addr, const size_t size); 46 extern void *realloc(const void *addr, const size_t size) 47 __attribute__((warn_unused_result)); 47 48 extern void free(const void *addr); 48 49 extern void *heap_check(void); -
uspace/lib/c/include/mem.h
r193d280c r53031c2 40 40 41 41 extern void *memset(void *, int, size_t) 42 __attribute__((nonnull(1))) 42 43 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 43 44 extern void *memcpy(void *, const void *, size_t) 45 __attribute__((nonnull(1, 2))) 44 46 ATTRIBUTE_OPTIMIZE("-fno-tree-loop-distribute-patterns"); 45 extern void *memmove(void *, const void *, size_t); 46 extern int memcmp(const void *, const void *, size_t); 47 extern void *memmove(void *, const void *, size_t) 48 __attribute__((nonnull(1, 2))); 49 extern int memcmp(const void *, const void *, size_t) 50 __attribute__((nonnull(1, 2))); 47 51 48 52 #endif -
uspace/lib/c/include/task.h
r193d280c r53031c2 60 60 extern int task_spawn(task_id_t *, task_wait_t *, const char *path, int, 61 61 va_list ap); 62 extern int task_spawnl(task_id_t *, task_wait_t *, const char *path, ...); 62 extern int task_spawnl(task_id_t *, task_wait_t *, const char *path, ...) 63 __attribute__((sentinel)); 63 64 64 65 extern int task_setup_wait(task_id_t, task_wait_t *); -
uspace/lib/posix/include/posix/stdlib.h
r193d280c r53031c2 116 116 117 117 /* Memory Allocation */ 118 extern void *__POSIX_DEF__(malloc)(size_t size); 119 extern void *__POSIX_DEF__(calloc)(size_t nelem, size_t elsize); 120 extern void *__POSIX_DEF__(realloc)(void *ptr, size_t size); 118 extern void *__POSIX_DEF__(malloc)(size_t size) 119 __attribute__((malloc)); 120 extern void *__POSIX_DEF__(calloc)(size_t nelem, size_t elsize) 121 __attribute__((malloc)); 122 extern void *__POSIX_DEF__(realloc)(void *ptr, size_t size) 123 __attribute__((warn_unused_result)); 121 124 extern void __POSIX_DEF__(free)(void *ptr); 122 125 -
uspace/lib/posix/include/posix/string.h
r193d280c r53031c2 67 67 /* From mem.h */ 68 68 // #define bzero(ptr, len) memset((ptr), 0, (len)) 69 extern void *memset(void *, int, size_t); 70 extern void *memcpy(void *, const void *, size_t); 71 extern void *memmove(void *, const void *, size_t); 69 extern void *memset(void *, int, size_t) 70 __attribute__((nonnull(1))); 71 extern void *memcpy(void *, const void *, size_t) 72 __attribute__((nonnull(1, 2))); 73 extern void *memmove(void *, const void *, size_t) 74 __attribute__((nonnull(1, 2))); 72 75 73 76
Note:
See TracChangeset
for help on using the changeset viewer.