mescc: Support GNU Bash.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 9 Nov 2018 20:26:10 +0000 (21:26 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 9 Nov 2018 20:26:10 +0000 (21:26 +0100)
commit9ecc11ee5295b6f29f7d32755621b429c9cb4593
tree753e2f45687657f6d14169dd5c12f2a0c79a129a
parent6b5ac576021f98358f1eb53315c667dfd9675fa7
mescc: Support GNU Bash.

* include/errno.h (EACCES, ENOSPC, ESPIPE): New macro.
* include/linux/x86/syscall.h (SYS_setuid, SYS_geteuid, SYS_getegid,
SYS_setgid): New macro.
* include/linux/x86_64/syscall.h: Likewise.
* include/stdint.h (LLONG_MIN, LLONG_MAX, SIZE_MAX): New macro.
* include/sys/stat.h (S_ISUID, S_ISGID, S_IXGRP, S_IXOTH, S_IRGRP,
S_IROTH, S_IWGRP, S_IWOTH, S_IRWXG, S_IRWXO): New macro.
* include/termio.h: New file.
* include/unistd.h (_POSIX_VERSION): New macro.
* lib/linux/gnu.c (geteuid, getegid, setuid, setgid): New function.
* lib/string/memchr.c: New file.
* lib/stub/getpwuid.c: New file.
* lib/stub/rand.c: New file.
* lib/stub/ttyname.c: New file.
* include/string.h (memchr): Declare.
* include/unistd.h (geteuid, getegid, setuid, setgid): Declare.
16 files changed:
include/errno.h
include/linux/x86/syscall.h
include/linux/x86_64/syscall.h
include/pwd.h
include/stdint.h
include/stdlib.h
include/string.h
include/sys/stat.h
include/termio.h [new file with mode: 0644]
include/unistd.h
lib/libc+gnu.c
lib/linux/gnu.c
lib/string/memchr.c [new file with mode: 0644]
lib/stub/getpwuid.c [new file with mode: 0644]
lib/stub/rand.c [new file with mode: 0644]
lib/stub/ttyname.c [new file with mode: 0644]