Gunar Schorcht
6e996f6a4d
sys/posix/select: remove conditional compilation for ESP32
2022-05-18 07:27:23 +02:00
Laurin Wolf
550f5ea1b1
sys/posix: use __restrict instead of restrict
2022-05-07 16:10:01 +02:00
Gunar Schorcht
881a92fe47
cpu/esp32: remove types.h in sys include
2022-01-25 00:36:51 +01:00
Marian Buschsieweke
7703b37c6f
sys/posix/socket: align struct sockaddr{,_storage}
...
Align the first member of `struct sockaddr` and
`struct sockaddr_storage` as `uint32_t` to elevate the alignment of the
structure to level of `uint32_t`. This is needed as
`struct sockaddr_in` uses an `uint32_t` to store the IPv4 address,
previously resulting in `struct sockaddr_in` currently having a greater
alignment requirement that `struct sockaddr_storage`.
2021-11-11 09:55:24 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Hauke Petersen
606bcd66da
posis/semaphore: use sema_get_value()
2021-01-15 16:17:25 +01:00
f496aef7cc
sys/posix/fcntl: fix headerguard
2021-01-11 13:48:09 +01:00
1d5e2e9cd9
all: remove traces of kernel_types.h
...
Automatically removed using:
$ git grep -l kernel_types | xargs sed -i '/^#include .kernel_types/d'
2020-11-25 17:52:34 +01:00
Keith Packard
e215261ced
picolibc: Use most NEWLIB code with picolibc
...
In most places, picolibc and newlib are the same, so use
the existing newlib code when compiling with picolibc.
Signed-off-by: Keith Packard <keithp@keithp.com>
2020-08-24 08:26:16 -07:00
26c1920cf1
posix/select: Add picolibc to cyclic dependency resolution
2020-08-24 08:26:16 -07:00
Martine S. Lenders
6ba6740231
posix_select: initial import of select()
function
2020-07-01 18:10:26 +02:00
09748efc11
sys/posix: fix typos
2019-11-23 22:39:38 +01:00
Gaëtan Harter
ed4932362d
Revert "posix/osx: fix type conflict on OSX native"
...
This reverts commit dcebfb11bc
.
2018-04-12 17:48:27 +02:00
Gaëtan Harter
ea52528171
Revert "posix/osx: fix missing AF_LINK on OSX native"
...
This reverts commit b5554bcc1f
.
2018-04-12 17:48:21 +02:00
Gaëtan Harter
b5554bcc1f
posix/osx: fix missing AF_LINK on OSX native
...
netdev_tap.c uses AF_LINK when compiled on OSX native.
Preparation to remove NATIVEINCLUDES.
2018-03-20 17:50:57 +01:00
Gaëtan Harter
dcebfb11bc
posix/osx: fix type conflict on OSX native
...
In another header file, `socklen_t` is defined to `__darwin_socklen_t` which is
an `uint32_t` and it conflicts.
Preparation to remove NATIVEINCLUDES.
2018-03-20 17:50:47 +01:00
3e4e3d261f
sys/posix: factor inet_*to* from header into .c file
2017-11-15 23:01:56 +01:00
Joakim Nohlgård
91d930c574
cpu/mips32r2_common: ifdef __attribute__((optimize))
...
Causes compilation error on Clang
2017-06-02 10:24:44 +01:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
cfd10c394a
adapt to changed byteorder.h
2017-04-13 11:35:35 +02:00
Hauke Petersen
76bae4b111
Merge pull request #6066 from neiljay/pr/add_mips-pic32_mz
...
cpu: Add PIC32MZ support
2017-03-29 12:53:47 +02:00
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.
2017-03-28 16:25:32 +01:00
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>
2017-03-23 09:59:46 +00:00
Oleg Hahm
d48330acbb
doc: posix: fix doxygen complaints
2017-03-10 14:56:28 +01:00
Joakim Nohlgård
89ba41c79e
sys/posix: Add sys/statvfs.h
2017-03-07 17:59:57 +01:00
Joakim Nohlgård
03d9f0f3d8
sys/posix: Add fcntl.h
2017-03-07 10:21:53 +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
Martine Lenders
1ccdc4643f
posix_sockets: port to sock
2017-01-24 15:17:15 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Victor Arino
066db5857a
sys/posix: adapt semaphore to new implementation
2017-01-19 08:59:17 +01:00
2121c6effd
sys: posix: remove not needed strings.h
2016-12-22 12:25:31 +01:00
Oleg Hahm
b61b8e9f00
sockets: add documentation about implicite binding
2016-03-08 19:48:20 +01:00
Oleg Hahm
35074a6ad1
posix socket: align size of sa_family_t with Linux
...
Linux defines `sa_family_t` as `unsigned short int`. In order to be compatible with Linux code, RIOT should define it the same way.
2016-01-07 11:12:35 +01:00
René Kijewski
ab3345ac5a
Merge pull request #4321 from kaspar030/cleanup_posix
...
sys: cleanup posix compat code
2015-11-26 20:39:30 +01:00
8a61ef4c75
sys: posix: switch to xtimer for sleep/usleep
2015-11-20 00:54:29 +01:00
Martine Lenders
45b30a8e91
posix_semaphore: make API POSIX compliant
2015-10-28 17:16:23 +01:00
Martine Lenders
5cef6bcc0a
sema: apply rename to function and type names
2015-10-28 17:16:22 +01:00
Martine Lenders
ee4f79482a
sem: rename to sema
...
To prevent name colisions with POSIX semaphores
2015-10-28 17:16:22 +01:00
Oleg Hahm
a0dcbc6a3c
posix: sockets: use correct datatypes for in6_addr
...
in6addr_any and in6addr_loopback are of type in6_addr
2015-10-27 11:39:11 +01:00
Martine Lenders
de421cdf78
posix: use sem module for semaphore implementation
2015-10-19 14:12:31 +02:00
Oleg Hahm
6f720306c9
doc: pnet should be part of POSIX sockets
2015-09-25 21:07:16 +02:00
Martine Lenders
624530c7d0
posix: redo socket API to use conn
2015-09-22 22:24:52 +02:00
Martine Lenders
08a3f0baf5
posix: net_help: move inet_pton/inet_ntop completely to POSIX
2015-09-17 02:36:08 +02:00
Martine Lenders
1486967a4b
posix: remove strcasecmp functions and macros
2015-09-16 15:40:58 +02:00
Martine Lenders
a4905b72d4
posix: consolidate include paths
2015-09-07 16:46:48 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00
Oleg Hahm
26ab4829d7
doc: fix posix wrapper documentation
2014-12-06 02:05:51 +01:00
Oleg Hahm
037571445c
Merge pull request #1974 from OlegHahm/cleanup_licenses
...
licenses: fix miss-spelled & missing boiler plates
2014-11-10 19:53:40 +01:00
Oleg Hahm
39abba1bc2
licenses: fix miss-spelled & missing boiler plates
2014-11-10 18:59:55 +01:00