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
Oleg Hahm
c811380440
Merge pull request #4468 from cgundogan/pr/posix_sockets/close_fd_fix
...
posix_sockets: fix overflowing fd in close()
2015-12-12 12:13:51 +01:00
Cenk Gündoğan
0ddfffc0c2
posix_sockets: fix overflowing fd in close()
2015-12-12 04:24:23 +01:00
Cenk Gündoğan
6f92b056f9
posix_sockets: do not use the address of best_match
2015-12-12 02:51:00 +01:00
Oleg Hahm
e8ed9fbe83
Merge pull request #4386 from OlegHahm/posix_sockets_stream_fixes
...
POSIX sockets: implicit bind for connect()
2015-12-08 16:35:29 +01:00
Oleg Hahm
11add4d8fd
sockets: implicit bind for connect()
...
According to
http://pubs.opengroup.org/onlinepubs/009695399/functions/connect.html
for a "socket [that] has not already been bound to a local address,
connect() shall bind it to an address which, unless the socket's address
family is AF_UNIX, is an unused local address."
2015-12-08 11:57:20 +01:00
Hauke Petersen
41979b64cd
sys: adapted to renamed THREAD FLAGS
2015-12-07 22:09:47 +01:00
Oleg Hahm
b366e59c87
conn: add function to find the best source address
...
...and use it in POSIX sendto() function.
2015-12-02 18:11:55 +01:00
Cenk Gündoğan
315ae0eeb4
Merge pull request #4326 from OlegHahm/posix_sockets_dgram_fixes
...
posix sockets: recvfrom on connectionless transports
2015-12-02 17:21:27 +01:00
Oleg Hahm
860321c3e9
posix sockets: use network byteorder for port
2015-12-02 14:45:43 +01:00
Oleg Hahm
5f663826c7
posix sockets: remove pointless inline function
2015-12-02 14:45:43 +01:00
Oleg Hahm
c366f2bbcd
sockets: perform implicit bind during sendto()
...
A client should not require to explicitly call bind() to receive packets, but is expected to receive replies sent to the ephemeral port that was selected as a source port by the UDP implementation.
2015-12-02 14:45:43 +01:00
Oleg Hahm
0153933241
posix sockets: store src_port in socket struct
2015-12-02 14:38:52 +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
Oleg Hahm
56903f3385
Merge pull request #4325 from OlegHahm/posix_socket_recvfrom_init
...
posix sockets: initialize sockaddr properly to 0
2015-11-26 12:00:16 +01:00
Oleg Hahm
7efc8fd265
posix sockets: initialize sockaddr properly to 0
2015-11-26 11:25:40 +01:00
Martine Lenders
21ea7cc4ae
posix_semaphore: port to xtimer
2015-11-24 14:06:00 +01:00
8a61ef4c75
sys: posix: switch to xtimer for sleep/usleep
2015-11-20 00:54:29 +01:00
41ece232fa
sys: remove obsolete posix_io code
2015-11-20 00:43:57 +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
cffdb1c8e2
timex: introduce USEC_IN_NS constant
2015-10-21 19:45:58 +02:00
Martine Lenders
de421cdf78
posix: use sem module for semaphore implementation
2015-10-19 14:12:31 +02:00
effb15a2cc
Merge pull request #3313 from gebart/pr/eINT-fixes
...
eINT/dINT fixes
2015-09-29 12:39:16 +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
Joakim Nohlgård
98c465008b
all: Update @gebart family name, email
2015-09-20 13:47:39 +02:00
Joakim Gebart
0cfe6d15dc
sys/posix/pthread: Replace dINT by disableIRQ
2015-09-19 10:35:58 +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
6f21fd806c
sys: posix: pthread_cond: remove unnecessary define
2015-09-16 10:58:54 +02:00
Martine Lenders
a4905b72d4
posix: consolidate include paths
2015-09-07 16:46:48 +02:00
a13bc46f3e
sys: remove uart0
2015-09-04 17:46:23 +02:00
Martine Lenders
ac0e2f4371
net: remove redefinitions and their dependencies throughout the stack
2015-08-24 13:13:53 +02:00
Martine Lenders
58ff31bfe9
gnrc: make all gnrc modules sub-modules of gnrc
2015-08-18 23:00:07 +02:00
Martine Lenders
203561e741
ipv6_addr: remove ng_ prefix
2015-08-11 13:27:07 +02:00
8f51256be8
sys: net: pnet: turn into dummy implementation based on gnrc
2015-08-06 12:13:19 +02:00
c926e2c38a
sys: posix_io: bail out on invalid target thread
2015-07-15 14:57:33 +02:00
Joakim Gebart
ab9d924c67
sys/posix/pthread: use atomic_int_t for pthread_spinlock_t
2015-07-14 08:11:18 +02:00
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
2015-05-28 15:45:05 +02:00
Joakim Gebart
718664dacc
sys/posix/pthread: Use atomic_int_t to handle spin lock
2015-05-26 21:23:48 +02:00
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064
Improve naming of thread stacksize/priority constants
...
As discussed in #2725 , this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:
* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Joseph Noir
e3a5bb25af
Add fix for clockid_t on OS X
2015-04-16 11:43:51 +02:00
kushalsingh007
cf75c04b41
fd: Clean-up documentation and rename members
...
-Fixes #1759
-Changes fd_t::__active to fd_t::internal_active
-Changes fd_t::fd to fd_t::internal_fd
-Made changes in the associated files that use the above fields.
2015-03-12 10:31:37 +05:30
Joseph Noir
f614d4b186
Merge pull request #1222 from BytesGalore/add_pthread_simple_tls
...
Everything seems to work, so here we go: sys:posix:pthread added dynamic pthread thread local storage
2015-03-03 22:38:27 +01:00
José Roberto de Souza
237e3f4dcb
sys/posix: fix strncasecmp
...
This should be a OR or when comparing only parts os strings would
return a wrong value.
const char *first = "testA";
const char *second = "test";
uint8_t contains = strncasecmp(first, second, strlen(second));
2015-02-23 11:24:01 -03:00
Martine Lenders
0eb2d78dda
doc: use my real name
2015-02-08 18:52:16 +01:00