Bas Stottelaar
94171b7389
cpu/*: replace #if ENABLE_DEBUG with IS_ACTIVE
2020-11-02 21:34:12 +01:00
Bas Stottelaar
22243aec7a
cpu/*: realign ENABLE_DEBUG
2020-10-23 00:46:26 +02:00
avinash
7d21cb9bb8
cpu/native: fix memory leak
...
In make_message API in syscall.c, memory should be freed before returning
Fixes issue: #15016
Signed-off-by: avinash <avitahakiknash@gmail.com>
2020-10-21 03:16:25 -07:00
Marian Buschsieweke
b657ebc39a
cpu/native: Don't access sched_active_*
...
Replaced accesses to sched_active_* with API calls in C files
2020-08-17 12:16:08 +02:00
a274ea45fc
cpu/native: async_read: rewrite select() call to poll()
...
select() can not listen to POLLPRI events which are used by the
Kernel's GPIO API.
In preparation for that, rewrite async_read() to use poll() instead
of select().
2020-07-21 11:50:18 +02:00
Sören Tempel
e2b8231796
boards/native: fix crash with all-asan
...
Without this change a RIOT application compiled with all-asan will
segfault as RIOT provides its own malloc by default. Add a define for
disabling custom malloc, calloc and realloc implementations and use it
when compiling with all-asan.
2020-01-12 16:17:48 +01:00
Martine Lenders
ad133da209
native: ignore -Wformat-nonliteral for formatting syscalls
...
The point of that call is to wrap the actual host system's formatting
functions, so the non-literal formatting string is alright here.
2018-08-01 09:03:01 +02:00
4133908fe0
cpu/native: fix doxygen grouping
2018-06-11 19:12:02 +02:00
smlng
f63f3b2a4b
cpu, native: replace timex_t in syscalls
2018-01-23 14:35:24 +01:00
Martine Lenders
81ef15287a
native: provide socket-based ZEP device
2018-01-18 09:15:37 +01:00
Martine Lenders
25b2e65b77
cpu: native: make syscalls vfs ready (introduce real_fcntl)
2017-03-22 20:18:57 +01:00
Vincent Dupont
9e8cb3d135
native: add mtd-compliant flash emulation
2017-03-16 11:24:22 +01:00
Ludwig Ortmann
3b6d0595ef
native: indicate interrupt status in ISR context
2016-10-15 07:50:44 +02:00
Iván Briano
6846b4ebdd
cpu: native: Add [v]fprintf to syscalls
...
External packages that may use fprintf(stderr, ...) for logging will
link directly to the libc version of it, and for some reason that
results in the application crashing.
2016-06-03 16:05:14 -03: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
9082273746
core: header cleanup
2016-02-28 22:46:28 +01:00
Oleg Hahm
6d135d3579
native: make use of TLSF malloc and co
...
In order to make native behave more similar to other platforms, it should also use TLSF's dynamic memory allocation if included. It will still fall back to the system's malloc implementation when building for use with valgrind, to leverage its memory leak detection mechanisms.
2016-01-03 20:53:08 +01:00
BytesGalore
529e83675e
cpp11: switched to use xtimer
...
Also switched the syscalls of cpu/native to use xtimer, only at _gettimeofday()
2015-11-27 18:36:25 +01:00
Ludwig Knüpfer
dd3229aa62
native: dynamically load malloc
...
g++ 5.2.0 apparently requires malloc before startup is run.
2015-10-04 18:13:12 +02:00
effb15a2cc
Merge pull request #3313 from gebart/pr/eINT-fixes
...
eINT/dINT fixes
2015-09-29 12:39:16 +02:00
Ludwig Knüpfer
eda6328e21
documentation: update my name (Ortmann -> Knüpfer)
2015-09-27 18:58:30 +02:00
Joakim Gebart
0d2efd5fe7
native/syscalls: Use restoreIRQ
2015-09-19 10:35:58 +02:00
ef972735dc
sys: net: replace dev_eth with netdev2, adapt native tap driver
2015-09-04 15:39:04 +02:00
Benoît Canet
4893d4daea
native: irq: Get rid of dINT() and eINT()
...
Get rid of internal usage of the old IRQ
API and keep it's implementation while
waiting for other modules to kill it.
2015-07-29 16:51:22 +02:00
Martine Lenders
8a33a62914
native: add address sanitizer make target
2015-07-09 15:00:19 +02:00
Ludwig Ortmann
9a130e2e84
cpu/native: add some syscall wrappers
...
Add wrappers for chdir, setsid, and umask.
2015-02-17 22:00:14 +01:00
Ludwig Ortmann
3ab73bc633
cpu/native: init _native_in_calloc explicitly
2015-01-11 10:59:49 +01:00
Ludwig Ortmann
f5cfda977a
cpu/native: fix real_calloc initialization
2015-01-11 10:59:49 +01:00
Ludwig Ortmann
00092e8308
native: add time syscalls
2014-11-25 22:47:27 +01:00
Ludwig Ortmann
4de10a2ecb
native: coding conventions
2014-11-25 22:47:27 +01:00
Ludwig Ortmann
7901d24053
native: add missing syscall declarations
2014-11-25 22:47:26 +01:00
Ludwig Ortmann
d8641ff525
native: add random syscalls
2014-11-19 14:26:58 +01:00
Ludwig Ortmann
acaa6481cb
native: add more syscall declarations
2014-11-14 20:52:17 +01:00
Ludwig Ortmann
641cb4c488
native: add accept syscall declaration
2014-11-14 17:49:56 +01:00
Hinnerk van Bruinehsen
0e065cff2c
lint: fix va_end_missing in cpu/native/syscalls.c
2014-10-31 01:24:32 +01:00
Ludwig Ortmann
b849b848a0
native: add two more syscall declarations
2014-10-01 21:56:43 +02:00
René Kijewski
a79d9c8562
native: remove redeclarations of sched_active_thread
2014-08-14 13:21:17 +02:00
Oleg Hahm
983d056c75
core: harmonizes the data type for the process ID
...
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
3cda0369cb
native: cleanup
...
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
c6bcc344ca
native: uart reconnect buffer replay
...
When using socket stdio, add option to replay what has been written to
stdout while not connected (`-r`).
The implementation is to simply use the existing log file (which is
implicitly created when the option is used), and read from it until
EOF upon reconnect.
closes #476
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
René Kijewski
3063e3c2b1
Fix all warnings for native and qemu-i386
...
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
René Kijewski
2f871ca885
native: remove some warnings about undef functions
...
This PR implements `real_X` for `X in (fork, dup2, unlink, execve)`.
These function caused warnings while making the default example.
2014-06-18 20:34:12 +02:00
René Kijewski
2e9a1773e9
native: use real_pipe()
and read_close()
2014-06-14 00:39:02 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Ludwig Ortmann
98bbb80571
documentation: append my email to my name everywhere
2014-05-15 18:07:17 +02:00
René Kijewski
d98ebf62cd
native: fixup #1145 : function declaration
2014-05-14 16:54:34 +02:00
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
2014-05-14 13:31:30 +02:00