kYc0o
e2e1500c6d
f tftp: address @aabadie comments.
6 years ago
kYc0o
9ee1e1f156
tftp: send DACK until server receives it
6 years ago
kYc0o
1f70d172c6
tftp: disable debug
6 years ago
Martine Lenders
8b5eda9020
posix_sockets: port to vfs for file descriptors
6 years ago
Joakim Nohlgård
0ba9fd3456
6lo: Avoid null ptr dereference when DAC=1, DAM=00, M=1
6 years ago
Vincent Dupont
f0bd96b690
spiffs: add SPIFFS as a package
...
This implements basic features with the VFS interface
6 years ago
Martine Lenders
48fa957ab6
shell_commands: adapt shell command for new real time types
6 years ago
Alexandre Abadie
57aadb8d72
sys/auto_init: fix return statement in some device auto init function
6 years ago
Kaspar Schleiser
7af03ab624
sys: net: introduce simple sock DNS client
6 years ago
Hauke Petersen
5c7ed2228d
pm_layerd: fix initial value for PM_BLOCKER_INITIAL
...
the current value was a debugging left-over and should
actually be 0.
6 years ago
Martine Lenders
10ca03aab3
sntp: extend API for UNIX timestamp
6 years ago
Kaspar Schleiser
2a955ad631
sys: net: sock: add utility functions
6 years ago
Martine Lenders
4ed199a9ad
gnrc_pktbuf: adapt pktbuf to od change
6 years ago
Martine Lenders
2db9ed11d1
od: simplify od module to only provide od_hex_dump
...
To my knowledge no one was using the more complex functionalities of
this module (except for the test application and pktbuf which just used
the same flags as the `od_hex_dump()` wrapper), so why not reduce the
functionality of this module?
6 years ago
Neil Jones
becfd63b00
sys: Extend MIPS temporary work around to all mips targets.
...
Extened the temporary workaround for mips boards to all mips boards
until pr#6639 is merged.
6 years ago
Kaspar Schleiser
eb5ff902fa
sys: fmt: fix fmt_lpad() documentation and (str==NULL) case
6 years ago
Kaspar Schleiser
003b71b323
sys: fmt: add fmt_lpad()
6 years ago
Simon Brummer
edc35339c7
sema: doc: fix typo in error return value
6 years ago
Francois Berder
c787638696
posix: sockets: Implement SO_RCVTIMEO option in setsockopt
...
AwaLWM2M needs to be polled regularly to check for incoming data.
Since RIOT only supports timeout at the GNRC sock layer while
the network abstraction for RIOT in AwaLWM2M uses the posix layer,
this causes RIOT to be blocked waiting for data that never arrive.
This commit implements only the SO_RCVTIMEO option in setsockopt to
allow users to set a receive timeout for a socket at the posix layer.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
6 years ago
Martine Lenders
529a88ca26
shell_commands: fix sc_vfs warnings
6 years ago
dylad
2f801bbce9
drivers/adxl345: initial implementation + SAUL adaptation
...
Signed-off-by: dylad <dylan.laduranty@mesotic.com>
6 years ago
Martine Lenders
aeccb853a5
doc: fix doc hierarchy
6 years ago
Martine Lenders
bac4118d68
posix: fix close() if fd_obj was closed already
6 years ago
Martine Lenders
465f8e42a1
posix_sockets: fix assertion on close
6 years ago
Oleg Hahm
0018cd7b01
sock: tcp: fix c&p mistake
6 years ago
Martine Lenders
29842bb5e4
netdev2: rename to netdev and remove `gnrc_netdev`
...
With some minor hand-edits I used the following chain of commands:
```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
-e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
-e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
grep "netdev2" | while read dir; do
new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
git mv -f "$dir" "$new_dir"
done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | while read file; do
new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
git mv -f "$file" "$new_file"
done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
6 years ago
Joakim Nohlgård
6f55a022b7
sys/fmt: Improve API documentation summary
6 years ago
Thomas Eichinger
5230257089
net/ieee802154: fix typo and improve formatting consistency
6 years ago
Joseph Noir
27297bb640
doc: fix and update cpp11 compat doxygen
6 years ago
Oleg Hahm
8ec5bcad89
doc: ipv6: fix broken doxygen
6 years ago
Oleg Hahm
d523c33015
doc: gnrc: fix doxygen and add missing doc
6 years ago
Oleg Hahm
3bc0cfd2a7
doc: color: fix doxygen
6 years ago
Oleg Hahm
9225ede2b9
doc: hashes: fix API docs
6 years ago
Oleg Hahm
e2914bd351
doc: random: document float PRNG macro
6 years ago
Oleg Hahm
e420c7ad9e
doc: xtimer: added missing documentation
6 years ago
Oleg Hahm
d48330acbb
doc: posix: fix doxygen complaints
6 years ago
Oleg Hahm
9934837349
crypto: remove superfluous and unused header
...
The implementation is gone for a long time anyway.
6 years ago
Joakim Nohlgård
0371769e72
devfs: Dynamic file system for device nodes
6 years ago
Joakim Nohlgård
fdd129db68
uart_stdio: Bind uart_stdio to vfs fds for stdin/out/err
6 years ago
Joakim Nohlgård
a1faeb9ca1
newlib: Use vfs for file I/O syscalls
6 years ago
Joakim Nohlgård
dcc37329df
sys/vfs: A virtual file system (VFS) layer for RIOT
...
The VFS layer provides file system abstractions to allow using a unified
interface to access files from mounted file systems.
6 years ago
Joakim Nohlgård
89ba41c79e
sys/posix: Add sys/statvfs.h
6 years ago
Francois Berder
27dec749e8
posix: sockets: Fix return value of recvfrom and sendto
...
_bind_connect already sets errno and returns -1 or 0.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
6 years ago
Cenk Gündoğan
83a69c0cb2
random: doc: warn about global PRNG state
6 years ago
Francois Berder
8d2ec19be6
posix: sockets: Fix timeout regression of recvfrom
...
Commit de41971aab
sets the default
timeout to 0. This change should not have been part of the commit.
Signed-off-by: Francois Berder <francois.berder@imgtec.com>
6 years ago
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>
6 years ago
Joakim Nohlgård
03d9f0f3d8
sys/posix: Add fcntl.h
6 years ago
Oleg Hahm
6022760fc6
posix: missing closing parenthesis
6 years ago
Victor Arino
0e06458f53
sys/sema: re-test value after owning mutex
6 years ago
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>
6 years ago