diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-01-17 04:52:42 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-01-18 12:19:19 -0500 |
commit | 4cfcd3b333987a8040c1682e1766a1aeb2941a7d (patch) | |
tree | 710c43cc804f73ebe9e42b64e82604bd5d72530f /sim/common/nltvals.def | |
parent | 02baa133856849a03aabb10c5fcb824f7b3996e1 (diff) | |
download | fsf-binutils-gdb-4cfcd3b333987a8040c1682e1766a1aeb2941a7d.zip fsf-binutils-gdb-4cfcd3b333987a8040c1682e1766a1aeb2941a7d.tar.gz fsf-binutils-gdb-4cfcd3b333987a8040c1682e1766a1aeb2941a7d.tar.bz2 |
sim: common: modernize gennltvals.sh
It's not 1996 anymore, so stop writing shell code like it is, and
rewrite it with modern POSIX shell standards. This makes it much
more user friendly.
Then regenerate the file with latest newlib sources to verify.
Diffstat (limited to 'sim/common/nltvals.def')
-rw-r--r-- | sim/common/nltvals.def | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def index 92ccc9a..08df7d5 100644 --- a/sim/common/nltvals.def +++ b/sim/common/nltvals.def @@ -115,6 +115,7 @@ { "SIGPROF", 27 }, { "SIGQUIT", 3 }, { "SIGSEGV", 11 }, + { "SIGSTKSZ", 8192 }, { "SIGSTOP", 17 }, { "SIGSYS", 12 }, { "SIGTERM", 15 }, @@ -138,12 +139,18 @@ /* begin open target macros */ { "O_ACCMODE", (0|1|2) }, { "O_APPEND", 0x0008 }, + { "O_CLOEXEC", 0x40000 }, { "O_CREAT", 0x0200 }, + { "O_DIRECT", 0x80000 }, + { "O_DIRECTORY", 0x200000 }, { "O_EXCL", 0x0800 }, + { "O_EXEC", 0x400000 }, { "O_NOCTTY", 0x8000 }, + { "O_NOFOLLOW", 0x100000 }, { "O_NONBLOCK", 0x4000 }, { "O_RDONLY", 0 }, { "O_RDWR", 2 }, + { "O_SEARCH", 0x400000 }, { "O_SYNC", 0x2000 }, { "O_TRUNC", 0x0400 }, { "O_WRONLY", 1 }, |