Francois Berder
8f839fbc31
posix: sockets: address was not set in recvfrom
...
The address is an optional parameter of recvfrom. If it is
not null, recvfrom must store the address of the sender.
However this was only allowed if res was equal to 0, which
is wrong since res contains the number of bytes received
or -1.
This commit ensures that the address is set only if no
previous errors happened before.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
2017-03-07 11:06:01 +00:00
Joakim Nohlgård
03d9f0f3d8
sys/posix: Add fcntl.h
2017-03-07 10:21:53 +01:00
Joakim Nohlgård
5638359960
tools/externc: Remove #endif in extern C pattern match
...
Enable adding more C++ specifics inside the same ifdef block (e.g. sys/include/vfs.h)
2017-03-07 10:21:52 +01:00
Joakim Nohlgård
0f74b5b2a0
tests/emb6: Revert workaround for false positive
...
This line gave a -Wunused-value in gcc-4.6 before the stdatomic.h header
for msp430 was modified as a workaround.
2017-03-07 10:21:37 +01:00
Joakim Nohlgård
33566a2fe7
msp430: Discard order argument when using __sync_xxx for atomics
2017-03-07 10:21:37 +01:00
Joakim Nohlgård
302d5d35e9
Merge pull request #6700 from haukepetersen/opt_vendorheaders
...
cpu: moved all vendor headers to CPUNAME/include/vendor/
2017-03-07 10:21:05 +01:00
Hauke Petersen
19bf9f8d0f
dist/externc: exclude all (CPU) vendor headers
2017-03-07 08:55:16 +01:00
Hauke Petersen
997244f9d7
cpu/stm32f2: fixed blank lines at EOF
2017-03-07 08:55:16 +01:00
Hauke Petersen
0fb3ee3b9b
dist/cppcheck: exclude only vendor headers
2017-03-07 08:55:15 +01:00
Hauke Petersen
1ae911e889
cpu/cc26x0: fixed doxygen issues
2017-03-07 08:55:15 +01:00
Hauke Petersen
ef3cdde903
cpu/atmega_common: fixed doxygen issues
2017-03-07 08:55:15 +01:00
Hauke Petersen
37d4f44379
cpus: mv vendor headers to include/vendor/.
2017-03-07 08:55:15 +01:00
Hauke Petersen
fa59955eff
doc: removed CPU excludes from doxyfile
2017-03-07 08:55:04 +01:00
Oleg Hahm
6022760fc6
posix: missing closing parenthesis
2017-03-06 22:37:28 +01:00
Hauke Petersen
f3d3c08e2a
Merge pull request #6679 from brummer-simon/ringbuffer-remove-bugfix
...
core: bugfix: ringbuffer_remove
2017-03-06 17:27:07 +01:00
Francois Berder
2936a69a1b
posix: sockets: Fix return value of listen function
...
If an error happens, listen was returning 1 instead of -1.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
2017-03-06 13:26:51 +00:00
Martine Lenders
7748dc8ce3
Merge pull request #6695 from francois-berder-imgtec/awalwm2m
...
posix_sockets: Various fixes in posix network implementation
2017-03-06 13:39:28 +01:00
Francois Berder
a5003e8311
posix: in: Fix sockaddr_in6 structure
...
The sin6_family member was an int. This caused the structure to
take 32 bytes which was greater than sockaddr_storage size (28
bytes).
Using the type sa_family_t for sin6_family member fixes this
issue.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
2017-03-03 16:49:54 +00:00
Francisco Acosta
1e8b3c8808
Merge pull request #6682 from dkm/pr/gpio_cleanup
...
cpu/lm4f120: remove useless gpio_pp_t type
2017-03-03 17:40:02 +01:00
Francois Berder
de41971aab
posix: sockets: Fix return value of sendto and recvfrom
...
The return value of these functions was not always correct
in case of errors: they were not returning -1 and setting
errno.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
2017-03-03 15:52:22 +00:00
Francisco Acosta
7ec6fcacdf
Merge pull request #6667 from aabadie/fix_test_xbee
...
test/driver_xbee: fix xbee param UART export in Makefile
2017-03-03 15:37:40 +01:00
9e9462720b
Merge pull request #6678 from astralien3000/opencm904
...
boards : renamed opencm9-04 into opencm904
2017-03-03 11:46:22 +01:00
Loïc Dauphin
ac53dff0cb
tests: rename opencm9-04 into opencm904
2017-03-03 09:57:53 +01:00
Loïc Dauphin
4e68675656
examples: rename opencm9-04 into opencm904
2017-03-03 09:57:45 +01:00
Loïc Dauphin
71c6f28ad5
cpu/stm32f1: rename opencm9-04 into opencm904
2017-03-03 09:54:32 +01:00
Loïc Dauphin
af78dd784a
boards: rename opencm9-04 into opencm904
2017-03-03 09:54:31 +01:00
Joakim Nohlgård
d57ec0e3f2
Merge pull request #6689 from mali/fix_6631
...
doc/saul: add cross link between SAUL and SAUL registry
2017-03-03 05:54:19 +01:00
Laurent Navet
0d09d2d34b
doc/saul: add cross link between SAUL and SAUL registry
2017-03-02 22:35:50 +01:00
lebrush
afaef0a578
Merge pull request #6628 from aabadie/nucleo_l053
...
boards/nucleo-l053: initial support
2017-03-02 22:13:10 +01:00
acfabcfde2
Merge pull request #6685 from smlng/pr/cc2538/fix_timer_set
...
cc2538: fix timer_set for channel B
2017-03-02 18:32:13 +01:00
2927b775d8
Merge pull request #6683 from aabadie/aabadie_typo
...
boards: fix typo in author name
2017-03-02 17:59:25 +01:00
894f4f186d
Merge pull request #6589 from astralien3000/debug-stm32-timer
...
boards/opencm9-04: disable bootloader's timer interrupt
2017-03-02 17:57:55 +01:00
3ec71bb7a0
boards: fix typo in author name
2017-03-02 15:52:32 +01:00
Loïc Dauphin
e7b9104e03
boards/opencm9-04: disable bootloader's timer interrupt
2017-03-02 14:57:33 +01:00
smlng
e0f19f3394
cc2538: fix timer_set for channel B
2017-03-02 14:49:16 +01:00
Oleg Hahm
0d3833a88a
net: cleanup ng_ remnants
2017-03-02 14:19:25 +01:00
d0e641e80b
tests: remove nucleo-l053 from memory intensive tests
2017-03-02 13:52:12 +01:00
f2c693b220
examples: remove nucleo-l053 from memory intensive examples
2017-03-02 13:52:12 +01:00
0e874357a2
tests: remove nucleo-l053 from unittests
2017-03-02 13:52:12 +01:00
128fa5d6f0
boards/nucleo-l053: initial support
2017-03-02 13:52:12 +01:00
27ad3e6b1f
cpu/stm32l0: add support for stm32l053r8
2017-03-02 13:52:12 +01:00
Marc Poulhiès
b3307e1e1a
cpu/lm4f120: remove useless gpio_pp_t type
...
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2017-03-02 12:57:42 +01:00
Oleg Hahm
1af1727759
Merge pull request #6660 from kaspar030/fix_native_thread_yield_higher
...
cpu: native: fix thread_yield_higher isr_is_in() case
2017-03-02 12:19:34 +01:00
Simon Brummer
68581a8fbe
core: bugfix: ringbuffer_remove
2017-03-01 22:01:26 +01:00
Emmanuel Baccelli
38f4d5f161
Merge pull request #6675 from kYc0o/fox_fix_port_darwin
...
boards/fox: use second UART in Darwin platforms
2017-03-01 18:16:46 +01:00
BytesGalore
dacc3cba9f
Merge pull request #6283 from OTAkeys/pr/hmac_iterative_calc
...
hashes/sha256: add iterative hmac calc. functions
2017-03-01 17:14:11 +01:00
kYc0o
020f74fdaa
boards/fox: use second UART in Darwin platforms
2017-03-01 16:30:35 +01:00
Hermann Lelong
f2ef9db988
hashes/sha256: add iterative hmac calc. functions
...
Add init, update, and final functions to do HMAC
calculation using blocks, instead of one shot.
Unit tests: use the PRF-6 test vector to test the case
where data is splitted in 3 different blocks.
2017-03-01 15:51:21 +01:00
Joakim Nohlgård
30aec689d9
llvm: Fall back for missing objcopy
...
Copied from Makefile.include.gnu
2017-03-01 14:51:47 +01:00
Sebastian Meiling
f6022a283d
Merge pull request #6541 from brummer-simon/gnrc_tcp-cleanup
...
gnrc_tcp: cleanup
2017-03-01 09:34:49 +01:00