From 4cfcd3b333987a8040c1682e1766a1aeb2941a7d Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sun, 17 Jan 2021 04:52:42 -0500
Subject: 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.
---
 sim/common/nltvals.def | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'sim/common/nltvals.def')

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 },
-- 
cgit v1.1

