09748efc11
sys/posix: fix typos
2019-11-23 22:39:38 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Martine Lenders
ea4b78654f
Merge pull request #12285 from JulianHolzwarth/pr/posix/pthread/pthread_reaper_fix
...
sys/posix/pthread/pthread.c: fix pthread reaper
2019-10-29 18:56:36 +01:00
Benjamin Valentin
764a9e9f63
sys/pthread: check return value of malloc()
...
To prevent a NULL pointer dereference on a memory constrained system,
check if malloc() was actually successful.
2019-10-20 14:17:07 +02:00
Gaëtan Harter
a889e500f0
pthread: make pthread reaper stacksize configurable
...
new define 'CONFIG_PTHREAD_REAPER_BASE_STACKSIZE' to change pthread reaper for boards that need more stack
default value is 'THREAD_STACKSIZE_IDLE'
2019-09-25 16:14:29 +02:00
JulianHolzwarth
a4d0c8a8e7
sys/posix/pthread/pthread.c: reduce pthread reaper size
2019-09-20 15:07:49 +02:00
JulianHolzwarth
d6bc8685f7
sys/posix/pthread/pthread.c: create thread sleeping
...
creating the pthread sleeping and waking it up instead of THREAD_CREATE_WOUT_YIELD and then yielding(sched_switch)
2019-09-20 15:07:49 +02:00
JulianHolzwarth
28719bae37
sys/posix/pthread/pthread.c: check reaper creation
...
Checking whether or not the pthread reaper was created
And handeling the error when it was not created
2019-09-20 15:07:49 +02:00
JulianHolzwarth
31b3aeb48c
sys/posix/pthread/pthread.c: Reaper fix
...
before the reaper was never created
2019-09-20 15:07:48 +02:00
Gaëtan Harter
624957252e
pthread_cond.h: use 'sys/types.h' value of 'clockid_t' for avr
...
This enables 'pthread' support on arduino.
avr-libc C90 'time.h' does not include 'sys/types.h' as POSIX expects it.
However, the type previously defined conflicts with the one in
'cpu/atmega_common/avr_libc_extra/include/sys/types.h' when both are
included, so include 'sys/types.h'.
Maybe it should alway be included by 'time.h' but this
would need its specific review.
2019-09-11 18:25:10 +02:00
JulianHolzwarth
d76bb689d6
sys/posix/pthread/pthread.c: pthread_create fix
...
The function insert returns KERNEL_PID_UNDEF now because pthread_create checks for it.
In pthread_create it checks now if thread_create returns a valid pid
2019-09-06 15:54:59 +02:00
998fd6bcc9
sys/pthread: deduplicate pthread group definition
2019-08-05 16:57:36 +02:00
Jose Alamos
f2ff06c9d4
posix/pthread_rwlock: fix unsigned variable comparison
2018-08-21 13:58:39 +02:00
Gunar Schorcht
9db03537b9
core/pthread: make them compilable with g++
2018-07-21 14:24:57 +02:00
smlng
6b0491eca2
sys/posix: fix intentional fallthrough in pthread
2018-01-16 13:21:24 +01:00
702ec4a517
sys/posix: pthread_barrier: DEBUG fix
2018-01-15 14:37:04 +01:00
c6b482d56c
posix: pthread_rwlock: fix DEBUG messages
2018-01-15 14:37:04 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
smlng
1ed6f84992
doc: fix whitespaces
2017-09-06 08:49:05 +02:00
162478cd6d
spelling: s/initialise/initialize/
2017-09-05 11:04:25 +02:00
smlng
d2fd406e60
posix: fix pthread_cond_wait and pthread_cond_timedwait
2017-06-24 20:28:52 +02:00
smlng
8253510f0b
posix: replace timex in pthread_rwlock
2017-06-21 11:35:27 +02:00
smlng
29d84a6865
posix: replace timex in pthread_cond
2017-06-21 11:24:22 +02:00
Francisco Acosta
3af1fe5675
Merge pull request #7134 from smlng/macos/fix/posix/clockid_t
...
posix: fix redefined clockid_t on macOS
2017-06-13 17:48:20 +02:00
smlng
16bd7db5dc
posix: fix redefined clockid_t on macOS
2017-06-13 17:32:21 +02:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
Oleg Hahm
d48330acbb
doc: posix: fix doxygen complaints
2017-03-10 14:56:28 +01:00
Joakim Nohlgård
f055137e02
sys/posix: Add missing Doxygen comment on spinlock flag member
2017-02-08 16:23:51 +01:00
Joakim Nohlgård
597db0358d
sys/posix/pthread: Use C11 atomic instead of atomic.h
2017-02-08 16:23:49 +01:00
Oleg Hahm
3c6678b037
*: fix mismatching endifs for header guards
2017-01-19 18:30:53 +01:00
Oleg Hahm
7ee7801c10
*: remove trailing underscores from header guards
2017-01-19 18:30:53 +01:00
Philippe Coval
20c3aaa448
sys: Fix pthread includes to support avr-libs
...
Missing malloc.h and clock_id_t were causing issues to build.
It was tested with this configuration:
- linux ubuntu 14.04.5
- arduino-mega2560 board
- avr-libc-1.8.0-4.1
This change was needed to build iotivity example
Bug: https://github.com/RIOT-OS/RIOT/issues/6241
Change-Id: I82ce246093b3467dfe9746f999bcc9335dbb65f6
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2017-01-17 19:44:22 +01:00
Laurent Navet
5fe337bc6c
sys: fix include headers guards
2016-10-26 21:53:58 +02:00
7718f114cb
all: remove pointer casts for msg.content.ptr
2016-06-02 23:13:42 +02:00
DipSwitch
21edec412a
posix: Remove _t from struct names
2016-04-11 21:46:54 +02:00
f626ee5969
Merge pull request #4557 from kaspar030/introduce_intrusive_singly_linked_list
...
core: mutex: several optimizations
2016-03-29 22:25:43 +02:00
c0f39bb55f
sys: posix: pthread: fix mutex usage
2016-03-29 21:50:17 +02:00
Yonezawa-T2
1ce140d910
debug: fix compilation error for %p formatter
2016-03-29 11:46:29 +09:00
kYc0o
f92b025b85
vtimer: get rid of
2016-03-24 17:10:54 +01:00
DipSwitch
0bb4748a94
core: Fix/refactor function naming in core/incude/irq.h
2016-03-20 16:47:34 +01:00
Oleg Hahm
bdcf8879fd
core: merged kernel_macros.h and attributes.h
...
Merged into new kernel_defines.h and updated all includes.
2016-03-09 22:29:06 +01:00
2b010b5337
core: rename tcb_t -> thread_t, move into thread.h
2016-03-05 18:20:17 +01:00
9082273746
core: header cleanup
2016-02-28 22:46:28 +01:00
Hauke Petersen
41979b64cd
sys: adapted to renamed THREAD FLAGS
2015-12-07 22:09:47 +01:00
effb15a2cc
Merge pull request #3313 from gebart/pr/eINT-fixes
...
eINT/dINT fixes
2015-09-29 12:39:16 +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
6f21fd806c
sys: posix: pthread_cond: remove unnecessary define
2015-09-16 10:58:54 +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