Changeset 0dc2fec in mainline for uspace/lib
- Timestamp:
- 2016-05-22T19:19:43Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b272c67a
- Parents:
- 153c7a29 (diff), af2254ec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- uspace/lib
- Files:
-
- 14 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/Makefile
r153c7a29 r0dc2fec 46 46 SLIBRARY = libc.so.0.0 47 47 LSONAME = libc.so.0 48 49 LIBS = $(LIBURCU_PREFIX)/liburcu.a50 EXTRA_CFLAGS += -I$(LIBURCU_PREFIX)51 48 52 49 -include $(CONFIG_MAKEFILE) … … 150 147 generic/vfs/vfs.c \ 151 148 generic/vfs/canonify.c \ 149 generic/rcu.c \ 152 150 generic/setjmp.c \ 153 151 generic/stack.c \ -
uspace/lib/c/generic/double_to_str.c
r153c7a29 r0dc2fec 505 505 { 506 506 /* The whole computation assumes 64bit significand. */ 507 assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));507 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t)); 508 508 509 509 if (ieee_val.is_special) { … … 753 753 { 754 754 /* The whole computation assumes 64bit significand. */ 755 assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t));755 static_assert(sizeof(ieee_val.pos_val.significand) == sizeof(uint64_t)); 756 756 757 757 if (ieee_val.is_special) { -
uspace/lib/c/generic/fibril.c
r153c7a29 r0dc2fec 114 114 fibril->waits_for = NULL; 115 115 116 futex_lock(&fibril_futex); 116 /* 117 * We are called before __tcb_set(), so we need to use 118 * futex_down/up() instead of futex_lock/unlock() that 119 * may attempt to access TLS. 120 */ 121 futex_down(&fibril_futex); 117 122 list_append(&fibril->all_link, &fibril_list); 118 futex_u nlock(&fibril_futex);123 futex_up(&fibril_futex); 119 124 120 125 return fibril; -
uspace/lib/c/generic/ieee_double.c
r153c7a29 r0dc2fec 45 45 const int exponent_bias = 1075; 46 46 47 assert(sizeof(val) == sizeof(uint64_t));47 static_assert(sizeof(val) == sizeof(uint64_t)); 48 48 49 49 union { -
uspace/lib/c/include/assert.h
r153c7a29 r0dc2fec 37 37 #define LIBC_ASSERT_H_ 38 38 39 #define static_assert(expr) _Static_assert(expr, "") 40 39 41 /** Debugging assert macro 40 42 * -
uspace/lib/ext4/Makefile
r153c7a29 r0dc2fec 30 30 LIBRARY = libext4 31 31 EXTRA_CFLAGS = -I$(LIBBLOCK_PREFIX) -I$(LIBCRYPTO_PREFIX) 32 LIBS = $(LIBBLOCK_PREFIX)/libblock.a $(LIBCRYPTO_PREFIX)/libcrypto.a33 32 34 33 SOURCES = \ -
uspace/lib/nic/Makefile
r153c7a29 r0dc2fec 30 30 LIBRARY = libnic 31 31 EXTRA_CFLAGS += -DLIBNIC_INTERNAL -Iinclude -I$(LIBDRV_PREFIX)/include 32 LIBS = $(LIBDRV_PREFIX)/libdrv.a33 32 34 33 SOURCES = \ -
uspace/lib/pcut/Makefile
r153c7a29 r0dc2fec 6 6 PCUT_TEST_PREFIX = test-libpcut- 7 7 8 EXTRA_OUTPUT= \8 SELF_TESTS = \ 9 9 $(PCUT_TEST_PREFIX)abort$(PCUT_TEST_SUFFIX) \ 10 10 $(PCUT_TEST_PREFIX)asserts$(PCUT_TEST_SUFFIX) \ … … 25 25 $(PCUT_TEST_PREFIX)xmlreport$(PCUT_TEST_SUFFIX) 26 26 27 EXTRA_CLEAN = $(SELF_TESTS) 28 27 29 include helenos.mak 28 30 … … 31 33 include helenos.test.mak 32 34 35 all-test: $(SELF_TESTS) 36 33 37 test-libpcut-%: $(OUTPUT) 34 38 $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -o $@ $^ $(OUTPUT) $(BASE_LIBS) -
uspace/lib/pcut/update-from-master.sh
r153c7a29 r0dc2fec 59 59 PCUT_TEST_PREFIX = test-libpcut- 60 60 61 EXTRA_OUTPUT= \61 SELF_TESTS = \ 62 62 EOF_MAKEFILE_HEAD 63 63 … … 69 69 cat >>Makefile <<'EOF_MAKEFILE_TAIL' 70 70 71 EXTRA_CLEAN = $(SELF_TESTS) 72 71 73 include helenos.mak 72 74 … … 75 77 include helenos.test.mak 76 78 79 all-test: $(SELF_TESTS) 80 77 81 test-libpcut-%: $(OUTPUT) 78 82 $(LD) -n $(LFLAGS) -T $(LINKER_SCRIPT) -o $@ $^ $(OUTPUT) $(BASE_LIBS) -
uspace/lib/posix/source/fnmatch.c
r153c7a29 r0dc2fec 640 640 #define nomatch(s1, s2, flags) assert(posix_fnmatch(s1, s2, flags) == FNM_NOMATCH) 641 641 642 assert(FNM_PATHNAME == FNM_FILE_NAME);642 static_assert(FNM_PATHNAME == FNM_FILE_NAME); 643 643 match("", "", 0); 644 644 match("*", "hello", 0); -
uspace/lib/usb/include/usb/usb.h
r153c7a29 r0dc2fec 168 168 ( \ 169 169 _MAKE_PID_NIBBLE(tag, type) \ 170 | (( ~_MAKE_PID_NIBBLE(tag, type)) << 4) \170 | (((~_MAKE_PID_NIBBLE(tag, type)) & 0xf) << 4) \ 171 171 ) 172 172 USB_PID_OUT = _MAKE_PID(0, 1), -
uspace/lib/usbdev/include/usb/dev/request.h
r153c7a29 r0dc2fec 109 109 } __attribute__ ((packed)) usb_device_request_setup_packet_t; 110 110 111 int assert[(sizeof(usb_device_request_setup_packet_t) == 8) ? 1: -1];112 113 111 int usb_control_request_set(usb_pipe_t *, 114 112 usb_request_type_t, usb_request_recipient_t, uint8_t, -
uspace/lib/usbdev/src/pipesinit.c
r153c7a29 r0dc2fec 340 340 { 341 341 assert(pipe); 342 assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE);342 static_assert(DEV_DESCR_MAX_PACKET_SIZE_OFFSET < CTRL_PIPE_MIN_PACKET_SIZE); 343 343 344 344 if ((pipe->direction != USB_DIRECTION_BOTH) || -
uspace/lib/usbdev/src/request.c
r153c7a29 r0dc2fec 39 39 40 40 #define MAX_DATA_LENGTH ((size_t)(0xFFFF)) 41 42 static_assert(sizeof(usb_device_request_setup_packet_t) == 8); 41 43 42 44 /** Generic wrapper for SET requests using standard control request format.
Note:
See TracChangeset
for help on using the changeset viewer.