Commit Graph

19050 Commits

Author SHA1 Message Date
f446c6513c jehanne: properly translate DMDIR in __stat_reader 2017-09-26 01:11:59 +02:00
011ef6c793 jehanne: add sys/stat.h 2017-09-25 00:30:42 +02:00
80499253a7 jehanne: draft termios functions 2017-09-25 00:14:44 +02:00
d094dcaecf jehanne: siglongjmp 2017-09-24 16:35:57 +02:00
9369c56b97 jehanne: add sigqueue to Makefile 2017-09-24 14:59:06 +02:00
3b28c711f9 jehanne: fix sigwait; stub sigqueue 2017-09-22 02:10:52 +02:00
cbfbffac50 jehanne: add alarm, sigwait, sigtimedwait and sigwaitinfo 2017-09-22 00:31:20 +02:00
b52a46870f jehanne: add sys/_timespec.h 2017-09-21 00:15:03 +02:00
5aa0e08335 jehanne: add sigpending 2017-09-20 00:39:48 +02:00
Brian Inglis
f9b24fad7c newlib/libm/complex/cargl.c change imag() real() to cimagl() creall() 2017-09-19 15:36:12 -05:00
Sebastian Huber
1592a0be0c Fix warnings and documentation in strnstr.c
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-09-19 15:35:09 -05:00
0f0b5a3ca5 jehanne: fix Makefile; add sigsuspend 2017-09-19 00:19:28 +02:00
fd7cb6bd3d jehanne: introduce sigaction; signal as macro 2017-09-18 00:23:10 +02:00
735eae7ab0 jehanne: remove raise from signal.c 2017-09-17 22:52:06 +02:00
bf9f6865e6 jehanne: get SI_* values from posix.h 2017-09-15 00:58:20 +02:00
188433192c jehanne: deep refactoring of signals (WIP) 2017-09-14 00:25:19 +02:00
95383ee144 jehanne: define SIGNAL_PROVIDED in configure.host 2017-09-14 00:07:08 +02:00
ed05094c78 jehanne: fix signal headers 2017-09-14 00:06:29 +02:00
b891b3c8da jehanne: exploring a deep refactoring for signals 2017-09-13 01:37:54 +02:00
31d2a8df16 jehanne: define SIGRTMIN and SIGRTMAX 2017-09-13 00:17:01 +02:00
Yaakov Selkowitz
05cfd1aed8 cygwin: workaround GCC 6 changes
GCC 6 includes a number of new warnings which cause Cygwin to either not
compile, or not work properly even if said warnings are ignored:

https://cygwin.com/ml/cygwin-developers/2017-09/msg00000.html
https://gcc.gnu.org/gcc-6/porting_to.html

For now, we use the flags necessary to revert to GCC 5 behaviour until we
can fix the code properly.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-09-12 14:30:34 -05:00
Yaakov Selkowitz
21a39b20a5 Revert "cygwin: only expose /dev/con{in,out,sole} when started from a Windows console"
This caused serious regressions when running from a cmd window:

https://cygwin.com/ml/cygwin/2017-09/msg00114.html

This reverts commit b706c6b479.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-09-11 23:07:55 -05:00
db0b84d2e2 jehanne: add sigprocmask 2017-09-12 00:49:17 +02:00
7ce34f8fbf jehanne: implement various sigset functions 2017-09-12 00:27:45 +02:00
861774c0c8 jehanne: drafter sys/signal.h 2017-09-11 00:35:32 +02:00
7f5b6a5ef1 jehanne: add sigaction (in libposix_conf.c)
This implementation ignores both flags and mask:
- ignoring SA_SIGINFO in sa_flags means that sigaction forward to the signal machinery
- ignoring sa_mask means that no mask is set for the signal (but note that Jehanne's notes
  are not reentrant).
2017-09-10 23:42:01 +02:00
cb02879013 jehanne: add getpgid 2017-09-07 23:34:29 +02:00
8194f38dc0 jehanne: add rename 2017-09-07 23:32:26 +02:00
7f64bcd6ac jehanne: let libposix define environ 2017-09-07 22:35:51 +02:00
775d703f25 jehanne: define _execve (directly used by libc/posix/execve.c) 2017-09-07 19:45:47 +02:00
Sebastian Huber
4de8754bac Change time_t to 64-bit by default
In order to avoid the year 2038 problem, define time_t to a signed
integer with at least 64-bits.  The type for time_t can be forced to
long with the --enable-newlib-long-time_t configure option or with the
_USE_LONG_TIME_T system configuration define.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-09-07 15:39:34 +02:00
Sebastian Huber
ad45b86533 Remove harmful casts in gmtime_r()
In case time_t is long, then the cast to long is a nop.  In case time_t
is __int_least64_t, then the cast to long may truncate the value before
the division.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-09-07 15:39:34 +02:00
Sebastian Huber
f9205f1d47 Let RTEMS provide clock()
Newlib uses _times_r() in clock().  The problem is that the _times_r()
clock frequency is defined by sysconf(_SC_CLK_TCK).  The clock frequency
of clock() is the constant CLOCKS_PER_SEC.

FreeBSD uses getrusage() for clock().  Since RTEMS has only one process,
the implementation can be simplified.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
2017-09-07 07:41:07 +02:00
4651a34e15 jehanne: add getpgrp 2017-09-07 00:45:20 +02:00
dc3e8f850e jehanne: add chmod and fchmodat 2017-09-06 22:57:34 +02:00
656e79e567 jehanne: add umask 2017-09-06 22:57:00 +02:00
2c43a16b92 jehanne: add sys/termios.h 2017-09-06 00:37:03 +02:00
3cf88753d0 jehanne: added sys/ioctl.h (still to be implemented) 2017-09-05 23:57:41 +02:00
c238125c93 jehanne: add get/set functions for uid, gid, euid, egid, pgid, sid, reuid... 2017-09-05 00:42:26 +02:00
Corinna Vinschen
e18b7ffa48 stdio.h: Don't define unlocked macros using static inline on C++
In C++, the usage of static inline functions for getchar_unlocked and
putchar_unlocked may result in error messages like

  error: ‘_putchar_unlocked’ was not declared in this scope

Fix this by not using the _getchar_unlocked and _putchar_unlocked
macros in C++.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-09-04 10:52:33 +02:00
9e4ae4bc97 jehanne: add readlink and readlinkat 2017-09-03 23:56:10 +02:00
7928dac6c6 jehanne: add setjmp.h 2017-09-03 22:27:44 +02:00
08c85f7606 jehanne: add sys/resource.h and getrusage 2017-09-03 22:19:40 +02:00
ed6683643a jehanne: add lstat (as alias of stat), dup and dup2 2017-09-03 22:18:20 +02:00
Yaakov Selkowitz
ff53f489fa cygwin: Document crypt_r
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-09-02 22:48:55 -05:00
Achim Gratz
5325111d03 Remove some dangerous advice from the FAQ 2017-09-02 20:41:43 +02:00
bae05fec4e jehanne: add chmod functions (just calling libposix) 2017-08-31 01:16:40 +02:00
Yaakov Selkowitz
51d1fb715d include: fix ffs, fls guards
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2017-08-30 12:29:47 -05:00
Corinna Vinschen
192986ab03 newlib: string/Makefile.am (CHEWOUT_FILES): Add strnstr.def
Regenerate strings/Makefile.in

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-08-30 16:48:55 +02:00
Corinna Vinschen
5fc315b597 newlib: strnstr: drop traditional synopisis
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2017-08-30 16:45:36 +02:00