From 5d781d9d27f2ab30679853317df3f5e9ad94be80 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 13:14:06 +0300 Subject: Additional checking for strftime. --- ChangeLog | 5 +++++ builtin.c | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6398cbfa..53e82dea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-04-16 Arnold D. Robbins + + * builtin.c (do_strftime): Use a double for the timestamp and + check that the value is within range for a time_t. + 2015-04-14 Arnold D. Robbins * builtin.c (do_strftime): Restore checking for negative result and diff --git a/builtin.c b/builtin.c index fc670946..804bd60a 100644 --- a/builtin.c +++ b/builtin.c @@ -1864,7 +1864,7 @@ do_strftime(int nargs) NODE *t1, *t2, *t3, *ret; struct tm *tm; time_t fclock; - long clock_val; + double clock_val; char *bufp; size_t buflen, bufsize; char buf[BUFSIZ]; @@ -1873,6 +1873,8 @@ do_strftime(int nargs) int do_gmt; NODE *val = NULL; NODE *sub = NULL; + static const time_t time_t_min = TYPE_MINIMUM(time_t); + static const time_t time_t_max = TYPE_MAXIMUM(time_t); /* set defaults first */ format = def_strftime_format; /* traditional date format */ @@ -1912,7 +1914,7 @@ do_strftime(int nargs) if (do_lint && (t2->flags & (NUMCUR|NUMBER)) == 0) lintwarn(_("strftime: received non-numeric second argument")); (void) force_number(t2); - clock_val = get_number_si(t2); + clock_val = get_number_d(t2); fclock = (time_t) clock_val; /* * 4/2015: Protect against negative value being assigned @@ -1920,6 +1922,11 @@ do_strftime(int nargs) */ if (clock_val < 0 && fclock > 0) fatal(_("strftime: second argument less than 0 or too big for time_t")); + + /* And check that the value is in range */ + if (clock_val < time_t_min || clock_val > time_t_max) + fatal(_("strftime: second argument out of range for time_t")); + DEREF(t2); } -- cgit v1.2.1 From f13dbca68d16b6598066a8d4bf401fd3e1f58bff Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 17:25:42 +0300 Subject: Fix printf format in regex malloc wrappers. --- ChangeLog | 6 ++++++ regex_internal.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 53e82dea..d8325dc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,12 @@ * builtin.c (do_strftime): Use a double for the timestamp and check that the value is within range for a time_t. + Unrelated: + + * regex_internal.h (test_malloc, test_realloc): Use %lu in printf + format for error messages. Thanks to Michal Jaegermann for + pointing this out. + 2015-04-14 Arnold D. Robbins * builtin.c (do_strftime): Restore checking for negative result and diff --git a/regex_internal.h b/regex_internal.h index 6a870f23..327bd7e0 100644 --- a/regex_internal.h +++ b/regex_internal.h @@ -479,7 +479,7 @@ static void * test_malloc(size_t count, const char *file, size_t line) { if (count == 0) { - fprintf(stderr, "%s:%d: allocation of zero bytes\n", + fprintf(stderr, "%s:%lu: allocation of zero bytes\n", file, line); exit(1); } @@ -490,7 +490,7 @@ static void * test_realloc(void *p, size_t count, const char *file, size_t line) { if (count == 0) { - fprintf(stderr, "%s:%d: reallocation of zero bytes\n", + fprintf(stderr, "%s:%lu: reallocation of zero bytes\n", file, line); exit(1); } -- cgit v1.2.1 From d848f63eee0800fd1e10b046dffe4c0387bec776 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 17:26:10 +0300 Subject: Update po/gawk.pot before test tarball. --- po/gawk.pot | 259 +++++++++++++++++++++++++++++++----------------------------- 1 file changed, 133 insertions(+), 126 deletions(-) diff --git a/po/gawk.pot b/po/gawk.pot index d95d3bf3..bb16d2f9 100644 --- a/po/gawk.pot +++ b/po/gawk.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: gawk 4.1.1c\n" +"Project-Id-Version: gawk 4.1.1d\n" "Report-Msgid-Bugs-To: bug-gawk@gnu.org\n" -"POT-Creation-Date: 2015-04-07 17:32+0300\n" +"POT-Creation-Date: 2015-04-16 17:16+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,7 +37,7 @@ msgid "attempt to use scalar `%s' as an array" msgstr "" #: array.c:409 array.c:576 builtin.c:85 builtin.c:1606 builtin.c:1652 -#: builtin.c:1665 builtin.c:2092 builtin.c:2106 eval.c:1149 eval.c:1153 +#: builtin.c:1665 builtin.c:2106 builtin.c:2120 eval.c:1149 eval.c:1153 #: eval.c:1558 #, c-format msgid "attempt to use array `%s' in a scalar context" @@ -742,202 +742,206 @@ msgid "" "substr: length %g at start index %g exceeds length of first argument (%lu)" msgstr "" -#: builtin.c:1890 +#: builtin.c:1892 msgid "strftime: format value in PROCINFO[\"strftime\"] has numeric type" msgstr "" -#: builtin.c:1913 +#: builtin.c:1915 msgid "strftime: received non-numeric second argument" msgstr "" -#: builtin.c:1917 +#: builtin.c:1924 msgid "strftime: second argument less than 0 or too big for time_t" msgstr "" -#: builtin.c:1924 +#: builtin.c:1928 +msgid "strftime: second argument out of range for time_t" +msgstr "" + +#: builtin.c:1935 msgid "strftime: received non-string first argument" msgstr "" -#: builtin.c:1931 +#: builtin.c:1942 msgid "strftime: received empty format string" msgstr "" -#: builtin.c:1997 +#: builtin.c:2011 msgid "mktime: received non-string argument" msgstr "" -#: builtin.c:2014 +#: builtin.c:2028 msgid "mktime: at least one of the values is out of the default range" msgstr "" -#: builtin.c:2049 +#: builtin.c:2063 msgid "'system' function not allowed in sandbox mode" msgstr "" -#: builtin.c:2054 +#: builtin.c:2068 msgid "system: received non-string argument" msgstr "" -#: builtin.c:2174 +#: builtin.c:2188 #, c-format msgid "reference to uninitialized field `$%d'" msgstr "" -#: builtin.c:2259 +#: builtin.c:2273 msgid "tolower: received non-string argument" msgstr "" -#: builtin.c:2290 +#: builtin.c:2304 msgid "toupper: received non-string argument" msgstr "" -#: builtin.c:2323 mpfr.c:679 +#: builtin.c:2337 mpfr.c:679 msgid "atan2: received non-numeric first argument" msgstr "" -#: builtin.c:2325 mpfr.c:681 +#: builtin.c:2339 mpfr.c:681 msgid "atan2: received non-numeric second argument" msgstr "" -#: builtin.c:2344 +#: builtin.c:2358 msgid "sin: received non-numeric argument" msgstr "" -#: builtin.c:2360 +#: builtin.c:2374 msgid "cos: received non-numeric argument" msgstr "" -#: builtin.c:2413 mpfr.c:1176 +#: builtin.c:2427 mpfr.c:1176 msgid "srand: received non-numeric argument" msgstr "" -#: builtin.c:2444 +#: builtin.c:2458 msgid "match: third argument is not an array" msgstr "" -#: builtin.c:2705 +#: builtin.c:2719 #, c-format msgid "gensub: third argument `%.*s' treated as 1" msgstr "" -#: builtin.c:2720 +#: builtin.c:2734 #, c-format msgid "gensub: third argument %g treated as 1" msgstr "" -#: builtin.c:3018 +#: builtin.c:3032 #, c-format msgid "%s: can be called indirectly only with two arguments" msgstr "" -#: builtin.c:3108 +#: builtin.c:3122 #, c-format msgid "indirect call to %s requires at least two arguments" msgstr "" -#: builtin.c:3160 +#: builtin.c:3174 msgid "lshift: received non-numeric first argument" msgstr "" -#: builtin.c:3162 +#: builtin.c:3176 msgid "lshift: received non-numeric second argument" msgstr "" -#: builtin.c:3168 +#: builtin.c:3182 #, c-format msgid "lshift(%f, %f): negative values will give strange results" msgstr "" -#: builtin.c:3170 +#: builtin.c:3184 #, c-format msgid "lshift(%f, %f): fractional values will be truncated" msgstr "" -#: builtin.c:3172 +#: builtin.c:3186 #, c-format msgid "lshift(%f, %f): too large shift value will give strange results" msgstr "" -#: builtin.c:3197 +#: builtin.c:3211 msgid "rshift: received non-numeric first argument" msgstr "" -#: builtin.c:3199 +#: builtin.c:3213 msgid "rshift: received non-numeric second argument" msgstr "" -#: builtin.c:3205 +#: builtin.c:3219 #, c-format msgid "rshift(%f, %f): negative values will give strange results" msgstr "" -#: builtin.c:3207 +#: builtin.c:3221 #, c-format msgid "rshift(%f, %f): fractional values will be truncated" msgstr "" -#: builtin.c:3209 +#: builtin.c:3223 #, c-format msgid "rshift(%f, %f): too large shift value will give strange results" msgstr "" -#: builtin.c:3234 mpfr.c:988 +#: builtin.c:3248 mpfr.c:988 msgid "and: called with less than two arguments" msgstr "" -#: builtin.c:3239 +#: builtin.c:3253 #, c-format msgid "and: argument %d is non-numeric" msgstr "" -#: builtin.c:3243 +#: builtin.c:3257 #, c-format msgid "and: argument %d negative value %g will give strange results" msgstr "" -#: builtin.c:3266 mpfr.c:1020 +#: builtin.c:3280 mpfr.c:1020 msgid "or: called with less than two arguments" msgstr "" -#: builtin.c:3271 +#: builtin.c:3285 #, c-format msgid "or: argument %d is non-numeric" msgstr "" -#: builtin.c:3275 +#: builtin.c:3289 #, c-format msgid "or: argument %d negative value %g will give strange results" msgstr "" -#: builtin.c:3297 mpfr.c:1051 +#: builtin.c:3311 mpfr.c:1051 msgid "xor: called with less than two arguments" msgstr "" -#: builtin.c:3303 +#: builtin.c:3317 #, c-format msgid "xor: argument %d is non-numeric" msgstr "" -#: builtin.c:3307 +#: builtin.c:3321 #, c-format msgid "xor: argument %d negative value %g will give strange results" msgstr "" -#: builtin.c:3332 mpfr.c:807 +#: builtin.c:3346 mpfr.c:807 msgid "compl: received non-numeric argument" msgstr "" -#: builtin.c:3338 +#: builtin.c:3352 #, c-format msgid "compl(%f): negative value will give strange results" msgstr "" -#: builtin.c:3340 +#: builtin.c:3354 #, c-format msgid "compl(%f): fractional value will be truncated" msgstr "" -#: builtin.c:3509 +#: builtin.c:3523 #, c-format msgid "dcgettext: `%s' is not a valid locale category" msgstr "" @@ -2668,12 +2672,12 @@ msgstr "" msgid "no explicit close of file `%s' provided" msgstr "" -#: io.c:1317 io.c:1375 main.c:628 main.c:670 +#: io.c:1317 io.c:1375 main.c:632 main.c:674 #, c-format msgid "error writing standard output (%s)" msgstr "" -#: io.c:1322 io.c:1381 main.c:630 +#: io.c:1322 io.c:1381 main.c:634 #, c-format msgid "error writing standard error (%s)" msgstr "" @@ -2703,141 +2707,141 @@ msgstr "" msgid "remote host and port information (%s, %s) invalid" msgstr "" -#: io.c:1673 +#: io.c:1699 msgid "TCP/IP communications are not supported" msgstr "" -#: io.c:1854 +#: io.c:1880 #, c-format msgid "could not open `%s', mode `%s'" msgstr "" -#: io.c:1904 +#: io.c:1930 #, c-format msgid "close of master pty failed (%s)" msgstr "" -#: io.c:1906 io.c:2092 io.c:2293 +#: io.c:1932 io.c:2118 io.c:2319 #, c-format msgid "close of stdout in child failed (%s)" msgstr "" -#: io.c:1909 +#: io.c:1935 #, c-format msgid "moving slave pty to stdout in child failed (dup: %s)" msgstr "" -#: io.c:1911 io.c:2097 +#: io.c:1937 io.c:2123 #, c-format msgid "close of stdin in child failed (%s)" msgstr "" -#: io.c:1914 +#: io.c:1940 #, c-format msgid "moving slave pty to stdin in child failed (dup: %s)" msgstr "" -#: io.c:1916 io.c:1938 +#: io.c:1942 io.c:1964 #, c-format msgid "close of slave pty failed (%s)" msgstr "" -#: io.c:2027 io.c:2095 io.c:2264 io.c:2296 +#: io.c:2053 io.c:2121 io.c:2290 io.c:2322 #, c-format msgid "moving pipe to stdout in child failed (dup: %s)" msgstr "" -#: io.c:2034 io.c:2100 +#: io.c:2060 io.c:2126 #, c-format msgid "moving pipe to stdin in child failed (dup: %s)" msgstr "" -#: io.c:2060 io.c:2286 +#: io.c:2086 io.c:2312 msgid "restoring stdout in parent process failed\n" msgstr "" -#: io.c:2068 +#: io.c:2094 msgid "restoring stdin in parent process failed\n" msgstr "" -#: io.c:2103 io.c:2298 io.c:2313 +#: io.c:2129 io.c:2324 io.c:2339 #, c-format msgid "close of pipe failed (%s)" msgstr "" -#: io.c:2162 +#: io.c:2188 msgid "`|&' not supported" msgstr "" -#: io.c:2249 +#: io.c:2275 #, c-format msgid "cannot open pipe `%s' (%s)" msgstr "" -#: io.c:2307 +#: io.c:2333 #, c-format msgid "cannot create child process for `%s' (fork: %s)" msgstr "" -#: io.c:2734 +#: io.c:2760 msgid "register_input_parser: received NULL pointer" msgstr "" -#: io.c:2762 +#: io.c:2788 #, c-format msgid "input parser `%s' conflicts with previously installed input parser `%s'" msgstr "" -#: io.c:2769 +#: io.c:2795 #, c-format msgid "input parser `%s' failed to open `%s'" msgstr "" -#: io.c:2789 +#: io.c:2815 msgid "register_output_wrapper: received NULL pointer" msgstr "" -#: io.c:2817 +#: io.c:2843 #, c-format msgid "" "output wrapper `%s' conflicts with previously installed output wrapper `%s'" msgstr "" -#: io.c:2824 +#: io.c:2850 #, c-format msgid "output wrapper `%s' failed to open `%s'" msgstr "" -#: io.c:2845 +#: io.c:2871 msgid "register_output_processor: received NULL pointer" msgstr "" -#: io.c:2874 +#: io.c:2900 #, c-format msgid "" "two-way processor `%s' conflicts with previously installed two-way processor " "`%s'" msgstr "" -#: io.c:2883 +#: io.c:2909 #, c-format msgid "two way processor `%s' failed to open `%s'" msgstr "" -#: io.c:3008 +#: io.c:3034 #, c-format msgid "data file `%s' is empty" msgstr "" -#: io.c:3050 io.c:3058 +#: io.c:3076 io.c:3084 msgid "could not allocate more input memory" msgstr "" -#: io.c:3636 +#: io.c:3662 msgid "multicharacter value of `RS' is a gawk extension" msgstr "" -#: io.c:3783 +#: io.c:3809 msgid "IPv6 communication is not supported" msgstr "" @@ -2955,59 +2959,62 @@ msgstr "" msgid "\t-l library\t\t--load=library\n" msgstr "" -#: main.c:586 +#. TRANSLATORS: the "fatal" and "invalid" here are literal +#. values, they should not be translated. Thanks. +#. +#: main.c:590 msgid "\t-L[fatal|invalid]\t--lint[=fatal|invalid]\n" msgstr "" -#: main.c:587 +#: main.c:591 msgid "\t-M\t\t\t--bignum\n" msgstr "" -#: main.c:588 +#: main.c:592 msgid "\t-N\t\t\t--use-lc-numeric\n" msgstr "" -#: main.c:589 +#: main.c:593 msgid "\t-n\t\t\t--non-decimal-data\n" msgstr "" -#: main.c:590 +#: main.c:594 msgid "\t-o[file]\t\t--pretty-print[=file]\n" msgstr "" -#: main.c:591 +#: main.c:595 msgid "\t-O\t\t\t--optimize\n" msgstr "" -#: main.c:592 +#: main.c:596 msgid "\t-p[file]\t\t--profile[=file]\n" msgstr "" -#: main.c:593 +#: main.c:597 msgid "\t-P\t\t\t--posix\n" msgstr "" -#: main.c:594 +#: main.c:598 msgid "\t-r\t\t\t--re-interval\n" msgstr "" -#: main.c:595 +#: main.c:599 msgid "\t-S\t\t\t--sandbox\n" msgstr "" -#: main.c:596 +#: main.c:600 msgid "\t-t\t\t\t--lint-old\n" msgstr "" -#: main.c:597 +#: main.c:601 msgid "\t-V\t\t\t--version\n" msgstr "" -#: main.c:599 +#: main.c:603 msgid "\t-W nostalgia\t\t--nostalgia\n" msgstr "" -#: main.c:602 +#: main.c:606 msgid "\t-Y\t\t--parsedebug\n" msgstr "" @@ -3016,7 +3023,7 @@ msgstr "" #. for this application. Please add _another line_ with the #. address for translation bugs. #. no-wrap -#: main.c:611 +#: main.c:615 msgid "" "\n" "To report bugs, see node `Bugs' in `gawk.info', which is\n" @@ -3024,21 +3031,21 @@ msgid "" "\n" msgstr "" -#: main.c:615 +#: main.c:619 msgid "" "gawk is a pattern scanning and processing language.\n" "By default it reads standard input and writes standard output.\n" "\n" msgstr "" -#: main.c:619 +#: main.c:623 msgid "" "Examples:\n" "\tgawk '{ sum += $1 }; END { print sum }' file\n" "\tgawk -F: '{ print $1 }' /etc/passwd\n" msgstr "" -#: main.c:644 +#: main.c:648 #, c-format msgid "" "Copyright (C) 1989, 1991-%d Free Software Foundation.\n" @@ -3050,7 +3057,7 @@ msgid "" "\n" msgstr "" -#: main.c:652 +#: main.c:656 msgid "" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" @@ -3059,88 +3066,88 @@ msgid "" "\n" msgstr "" -#: main.c:658 +#: main.c:662 msgid "" "You should have received a copy of the GNU General Public License\n" "along with this program. If not, see http://www.gnu.org/licenses/.\n" msgstr "" -#: main.c:695 +#: main.c:699 msgid "-Ft does not set FS to tab in POSIX awk" msgstr "" -#: main.c:982 +#: main.c:986 #, c-format msgid "unknown value for field spec: %d\n" msgstr "" -#: main.c:1080 +#: main.c:1084 #, c-format msgid "" "%s: `%s' argument to `-v' not in `var=value' form\n" "\n" msgstr "" -#: main.c:1106 +#: main.c:1110 #, c-format msgid "`%s' is not a legal variable name" msgstr "" -#: main.c:1109 +#: main.c:1113 #, c-format msgid "`%s' is not a variable name, looking for file `%s=%s'" msgstr "" -#: main.c:1113 +#: main.c:1117 #, c-format msgid "cannot use gawk builtin `%s' as variable name" msgstr "" -#: main.c:1118 +#: main.c:1122 #, c-format msgid "cannot use function `%s' as variable name" msgstr "" -#: main.c:1171 +#: main.c:1175 msgid "floating point exception" msgstr "" -#: main.c:1178 +#: main.c:1182 msgid "fatal error: internal error" msgstr "" -#: main.c:1193 +#: main.c:1197 msgid "fatal error: internal error: segfault" msgstr "" -#: main.c:1205 +#: main.c:1209 msgid "fatal error: internal error: stack overflow" msgstr "" -#: main.c:1264 +#: main.c:1268 #, c-format msgid "no pre-opened fd %d" msgstr "" -#: main.c:1271 +#: main.c:1275 #, c-format msgid "could not pre-open /dev/null for fd %d" msgstr "" -#: main.c:1485 +#: main.c:1489 msgid "empty argument to `-e/--source' ignored" msgstr "" -#: main.c:1556 +#: main.c:1560 msgid "-M ignored: MPFR/GMP support not compiled in" msgstr "" -#: main.c:1577 +#: main.c:1581 #, c-format msgid "%s: option `-W %s' unrecognized, ignored\n" msgstr "" -#: main.c:1630 +#: main.c:1634 #, c-format msgid "%s: option requires an argument -- %c\n" msgstr "" @@ -3245,58 +3252,58 @@ msgstr "" msgid "%s %s `%s': could not set close-on-exec: (fcntl F_SETFD: %s)" msgstr "" -#: profile.c:71 +#: profile.c:91 #, c-format msgid "could not open `%s' for writing: %s" msgstr "" -#: profile.c:73 +#: profile.c:93 msgid "sending profile to standard error" msgstr "" -#: profile.c:193 +#: profile.c:213 #, c-format msgid "" "\t# %s rule(s)\n" "\n" msgstr "" -#: profile.c:198 +#: profile.c:218 #, c-format msgid "" "\t# Rule(s)\n" "\n" msgstr "" -#: profile.c:272 +#: profile.c:292 #, c-format msgid "internal error: %s with null vname" msgstr "" -#: profile.c:538 +#: profile.c:558 msgid "internal error: builtin with null fname" msgstr "" -#: profile.c:958 +#: profile.c:978 #, c-format msgid "" "\t# Loaded extensions (-l and/or @load)\n" "\n" msgstr "" -#: profile.c:981 +#: profile.c:1001 #, c-format msgid "\t# gawk profile, created %s\n" msgstr "" -#: profile.c:1535 +#: profile.c:1555 #, c-format msgid "" "\n" "\t# Functions, listed alphabetically\n" msgstr "" -#: profile.c:1573 +#: profile.c:1593 #, c-format msgid "redir2str: unknown redirection type %d" msgstr "" -- cgit v1.2.1 From f667d7da571b76a1a6776ccca1530c2d8dff3af1 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 17:26:30 +0300 Subject: Update pc/Makefile.tst. --- pc/ChangeLog | 5 +++++ pc/Makefile.tst | 31 +++++++++++++++++++++++-------- pc/config.h | 6 +++--- 3 files changed, 31 insertions(+), 11 deletions(-) diff --git a/pc/ChangeLog b/pc/ChangeLog index 812c7430..3e65499d 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-16 Arnold D. Robbins + + * Makefile.tst: Sync with mainline. + * config.h: Sync with mainline. + 2015-04-08 Eli Zaretskii * Makefile.ext (fnmatch.$(SOEXT), readdir.$(SOEXT), rwarray.$(SOEXT)) diff --git a/pc/Makefile.tst b/pc/Makefile.tst index 77b9ecf6..bb8d437e 100644 --- a/pc/Makefile.tst +++ b/pc/Makefile.tst @@ -190,7 +190,7 @@ GAWK_EXT_TESTS = \ include include2 indirectbuiltin indirectcall indirectcall2 \ lint lintold lintwarn \ manyfiles match1 match2 match3 mbstr1 \ - nastyparm next nondec nondec2 \ + nastyparm negtime next nondec nondec2 \ patsplit posix printfbad1 printfbad2 printfbad3 printfbad4 printhuge procinfs \ profile0 profile1 profile2 profile3 profile4 profile5 profile6 profile7 pty1 \ rebuf regnul1 regnul2 regx8bit reginttrad reint reint2 rsgetline rsglstdin rsstart1 \ @@ -247,7 +247,7 @@ check: msg \ unix-msg-start unix-tests unix-msg-end \ extend-msg-start gawk-extensions extend-msg-end \ machine-msg-start machine-tests machine-msg-end \ - charset-msg-start charset-tests charset-msg-end \ + charset-tests-all \ shlib-msg-start shlib-tests shlib-msg-end \ mpfr-msg-start mpfr-tests mpfr-msg-end @$(MAKE) pass-fail || { $(MAKE) diffout; exit 1; } @@ -258,6 +258,16 @@ unix-tests: $(UNIX_TESTS) gawk-extensions: $(GAWK_EXT_TESTS) +charset-tests-all: + @if locale -a | grep -i 'en_US.UTF.*8' > /dev/null && \ + locale -a | grep -i 'ru_RU.UTF.*8' > /dev/null && \ + locale -a | grep -i 'ja_JP.UTF.*8' > /dev/null ; \ + then \ + $(MAKE) charset-msg-start charset-tests charset-msg-end; \ + else \ + echo %%%%%%%%%% Inadequate locale support: skipping charset tests. ; \ + fi + charset-tests: $(LOCALE_CHARSET_TESTS) extra: $(EXTRA_TESTS) inet @@ -320,12 +330,12 @@ machine-msg-end: charset-msg-start: @echo "======== Starting tests that can vary based on character set or locale support ========" - @echo "************************************************" - @echo "** Some or all of these tests may fail if you **" - @echo "** have inadequate or missing locale support **" - @echo "** At least en_US.UTF-8, ru_RU.UTF-8 and **" - @echo "** ja_JP.UTF-8 are needed. **" - @echo "************************************************" + @echo "**************************************************************************" + @echo "* Some or all of these tests may fail if you have inadequate or missing *" + @echo "* locale support At least en_US.UTF-8, ru_RU.UTF-8 and ja_JP.UTF-8 are *" + @echo "* needed. However, if you see this message, the Makefile thinks you have *" + @echo "* what you need ... *" + @echo "**************************************************************************" charset-msg-end: @echo "======== Done with tests that can vary based on character set or locale support ========" @@ -1216,6 +1226,11 @@ paramasfunc2:: @echo $@ @AWKPATH="$(srcdir)" $(AWK) -f $@.awk --posix >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ + +negtime:: + @echo $@ + @TZ=GMT AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@ + @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ Gt-dummy: # file Maketests, generated from Makefile.am by the Gentests program addcomma: diff --git a/pc/config.h b/pc/config.h index 65fb5e14..ee209016 100644 --- a/pc/config.h +++ b/pc/config.h @@ -426,7 +426,7 @@ #define PACKAGE_NAME "GNU Awk" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "GNU Awk 4.1.1c" +#define PACKAGE_STRING "GNU Awk 4.1.1d" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "gawk" @@ -435,7 +435,7 @@ #define PACKAGE_URL "http://www.gnu.org/software/gawk/" /* Define to the version of this package. */ -#define PACKAGE_VERSION "4.1.1c" +#define PACKAGE_VERSION "4.1.1d" /* Define to 1 if *printf supports %F format */ #undef PRINTF_HAS_F_FORMAT @@ -497,7 +497,7 @@ /* Version number of package */ -#define VERSION "4.1.1c" +#define VERSION "4.1.1d" /* Enable large inode numbers on Mac OS X 10.5. */ #ifndef _DARWIN_USE_64_BIT_INODE -- cgit v1.2.1 From 09ca6ca91db4fd691c4107419c5a4d3f99ae569e Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 17:35:53 +0300 Subject: Update NEWS. --- ChangeLog | 4 ++++ NEWS | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8325dc8..fcf646a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,10 @@ format for error messages. Thanks to Michal Jaegermann for pointing this out. + Unrelated: + + * NEWS: Updated. + 2015-04-14 Arnold D. Robbins * builtin.c (do_strftime): Restore checking for negative result and diff --git a/NEWS b/NEWS index 040c7c58..0d22d031 100644 --- a/NEWS +++ b/NEWS @@ -55,7 +55,10 @@ Changes from 4.1.1 to 4.1.2 with the names of any functions. Gawk has checked for the former since 3.1.7. With --posix, it now also checks for the latter. -13. A number of bugs have been fixed. See the ChangeLog. +13. The test suite should check for necessary locales and skip the tests + where it matters if support isn't what it should be. + +14. A number of bugs have been fixed. See the ChangeLog. Changes from 4.1.0 to 4.1.1 --------------------------- -- cgit v1.2.1 From aaa85643b352f867cfe7198f313b4481ad1f544d Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 16 Apr 2015 18:00:37 +0300 Subject: Updated autoconf (.ac) files. Remove RETSIGTYPE. --- ChangeLog | 6 ++++ Makefile.in | 16 +++++----- aclocal.m4 | 1 - awklib/Makefile.in | 16 +++++----- configh.in | 3 -- configure | 80 +++++++++++++++++++------------------------------- configure.ac | 41 ++++++++++++-------------- doc/Makefile.in | 16 +++++----- extension/ChangeLog | 4 +++ extension/configure.ac | 4 +-- extras/Makefile.in | 16 +++++----- io.c | 2 +- m4/ChangeLog | 4 +++ m4/isc-posix.m4 | 24 --------------- main.c | 4 +-- profile.c | 8 ++--- test/Makefile.in | 16 +++++----- 17 files changed, 111 insertions(+), 150 deletions(-) delete mode 100644 m4/isc-posix.m4 diff --git a/ChangeLog b/ChangeLog index 7380ff30..a6d7b6e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2015-04-16 Arnold D. Robbins + + * configure.ac: Updated by autoupdate. + * configure, aclocal.m4: Regenerated. + * io.c, main.c, profile.c: Removed use of RETSIGTYPE. + 2015-04-16 Arnold D. Robbins * builtin.c (do_strftime): Use a double for the timestamp and diff --git a/Makefile.in b/Makefile.in index c7da008e..6d974d00 100644 --- a/Makefile.in +++ b/Makefile.in @@ -117,14 +117,14 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \ $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lcmessage.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \ - $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libsigsegv.m4 $(top_srcdir)/m4/longlong.m4 \ + $(top_srcdir)/m4/mpfr.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \ + $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ diff --git a/aclocal.m4 b/aclocal.m4 index c150e9a8..2e07e0a8 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1155,7 +1155,6 @@ m4_include([m4/codeset.m4]) m4_include([m4/gettext.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) -m4_include([m4/isc-posix.m4]) m4_include([m4/lcmessage.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) diff --git a/awklib/Makefile.in b/awklib/Makefile.in index 6dc8ea81..be314945 100644 --- a/awklib/Makefile.in +++ b/awklib/Makefile.in @@ -115,14 +115,14 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \ $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lcmessage.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \ - $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libsigsegv.m4 $(top_srcdir)/m4/longlong.m4 \ + $(top_srcdir)/m4/mpfr.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \ + $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) diff --git a/configh.in b/configh.in index f4309812..1af38450 100644 --- a/configh.in +++ b/configh.in @@ -353,9 +353,6 @@ /* Define to 1 if *printf supports %F format */ #undef PRINTF_HAS_F_FORMAT -/* Define as the return type of signal handlers (`int' or `void'). */ -#undef RETSIGTYPE - /* The size of `unsigned int', as computed by sizeof. */ #undef SIZEOF_UNSIGNED_INT diff --git a/configure b/configure index def8a041..a736d984 100755 --- a/configure +++ b/configure @@ -5875,14 +5875,12 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5 $as_echo "${ac_cv_zos_uss}" >&6; } - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 -$as_echo_n "checking for strerror in -lcposix... " >&6; } -if ${ac_cv_lib_cposix_strerror+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 +$as_echo_n "checking for library containing strerror... " >&6; } +if ${ac_cv_search_strerror+:} false; then : $as_echo_n "(cached) " >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcposix $LIBS" + ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -5901,22 +5899,37 @@ return strerror (); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cposix_strerror=yes -else - ac_cv_lib_cposix_strerror=no +for ac_lib in '' cposix; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_c_try_link "$LINENO"; then : + ac_cv_search_strerror=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 -$as_echo "$ac_cv_lib_cposix_strerror" >&6; } -if test "x$ac_cv_lib_cposix_strerror" = xyes; then : - LIBS="$LIBS -lcposix" + conftest$ac_exeext + if ${ac_cv_search_strerror+:} false; then : + break fi +done +if ${ac_cv_search_strerror+:} false; then : +else + ac_cv_search_strerror=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 +$as_echo "$ac_cv_search_strerror" >&6; } +ac_res=$ac_cv_search_strerror +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" +fi # Check whether --enable-largefile was given. if test "${enable_largefile+set}" = set; then : @@ -8733,39 +8746,6 @@ _ACEOF fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 -$as_echo_n "checking return type of signal handlers... " >&6; } -if ${ac_cv_type_signal+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include - -int -main () -{ -return *(signal (0, 0)) (0) == 1; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_type_signal=int -else - ac_cv_type_signal=void -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 -$as_echo "$ac_cv_type_signal" >&6; } - -cat >>confdefs.h <<_ACEOF -#define RETSIGTYPE $ac_cv_type_signal -_ACEOF - - ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : diff --git a/configure.ac b/configure.ac index a6972ab2..d0320f5e 100644 --- a/configure.ac +++ b/configure.ac @@ -23,7 +23,7 @@ dnl dnl Process this file with autoconf to produce a configure script. -AC_INIT([GNU Awk], 4.1.60, bug-gawk@gnu.org, gawk) +AC_INIT([GNU Awk],[4.1.60],[bug-gawk@gnu.org],[gawk]) # This is a hack. Different versions of install on different systems # are just too different. Chuck it and use install-sh. @@ -39,7 +39,7 @@ then export INSTALL fi -AC_PREREQ(2.69) +AC_PREREQ([2.69]) AM_INIT_AUTOMAKE([1.15 dist-xz dist-lzip]) AC_CONFIG_MACRO_DIR([m4]) @@ -110,7 +110,7 @@ AC_SUBST([pkgextensiondir], ['${pkglibdir}']) dnl checks for systems AC_ZOS_USS -AC_ISC_POSIX +AC_SEARCH_LIBS([strerror],[cposix]) AC_SYS_LARGEFILE GAWK_AC_AIX_TWEAK GAWK_AC_LINUX_ALPHA @@ -153,8 +153,7 @@ AM_CONDITIONAL([TEST_CROSS_COMPILE], [test "x$build_alias" != "x$host_alias"]) dnl checks for typedefs AC_TYPE_PID_T -AC_TYPE_SIGNAL -AC_SIZE_T +AC_TYPE_SIZE_T AC_TYPE_GETGROUPS AC_TYPE_LONG_LONG_INT AC_TYPE_UNSIGNED_LONG_LONG_INT @@ -164,30 +163,26 @@ AC_CHECK_TYPE(ssize_t, int) AC_CHECK_SIZEOF(unsigned int) AC_CHECK_SIZEOF(unsigned long) dnl see if time_t is defined in -AC_TRY_COMPILE([#include ],[ +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ time_t foo; foo = 0; -], - AC_DEFINE(TIME_T_IN_SYS_TYPES_H, 1, - [some systems define this type here])) +]])],[AC_DEFINE(TIME_T_IN_SYS_TYPES_H, 1, + some systems define this type here)],[]) dnl check for wctype_t in -AC_TRY_COMPILE([#include ],[ +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ wctype_t foo; foo = 0; -], - AC_DEFINE(HAVE_WCTYPE_T, 1, [systems should define this type here])) +]])],[AC_DEFINE(HAVE_WCTYPE_T, 1, systems should define this type here)],[]) dnl check for wint_t in -AC_TRY_COMPILE([#include ],[ +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], [[ wint_t foo; foo = 0; -], - AC_DEFINE(HAVE_WINT_T, 1, [systems should define this type here])) +]])],[AC_DEFINE(HAVE_WINT_T, 1, systems should define this type here)],[]) dnl check for sockaddr_storage -AC_TRY_COMPILE([#include -#include ],[ +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include ]], [[ struct sockaddr_storage foo; -], - AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, [newer systems define this type here])) +]])],[AC_DEFINE(HAVE_SOCKADDR_STORAGE, 1, newer systems define this type here)],[]) dnl Borrwed from rsync, thanks to to Jim Meyering. @@ -210,18 +205,18 @@ AC_DEFUN([TYPE_SOCKLEN_T], rsync_cv_socklen_t_equiv= for arg2 in "struct sockaddr" void; do for t in int size_t unsigned long "unsigned long"; do - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #include int getpeername (int, $arg2 *, $t *); - ],[ + ]], [[ $t len; getpeername(0,0,&len); - ],[ + ]])],[ rsync_cv_socklen_t_equiv="$t" break - ]) + ],[]) done done diff --git a/doc/Makefile.in b/doc/Makefile.in index 68aacf48..0219bc97 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -116,14 +116,14 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \ $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lcmessage.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \ - $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libsigsegv.m4 $(top_srcdir)/m4/longlong.m4 \ + $(top_srcdir)/m4/mpfr.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \ + $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) diff --git a/extension/ChangeLog b/extension/ChangeLog index 8b575ca6..2769a350 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,7 @@ +2015-04-16 Arnold D. Robbins + + * configure.ac: Updated by autoupdate. + 2015-04-08 Arnold D. Robbins * Makefile.am, filefuncs.c, inplace.3am, inplace.c: diff --git a/extension/configure.ac b/extension/configure.ac index 8e45bb05..bc66a84f 100644 --- a/extension/configure.ac +++ b/extension/configure.ac @@ -23,7 +23,7 @@ dnl dnl Process this file with autoconf to produce a configure script. -AC_INIT([GNU Awk Bundled Extensions], 4.1.2, bug-gawk@gnu.org, gawk-extensions) +AC_INIT([GNU Awk Bundled Extensions],[4.1.2],[bug-gawk@gnu.org],[gawk-extensions]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR([build-aux]) @@ -41,7 +41,7 @@ AC_CHECK_MEMBERS([struct stat.st_blksize]) AM_PROG_AR AC_SYS_LARGEFILE AC_DISABLE_STATIC -AC_PROG_LIBTOOL +LT_INIT dnl AC_PROG_INSTALL AC_SUBST([pkgextensiondir], ['${libdir}/gawk']) diff --git a/extras/Makefile.in b/extras/Makefile.in index f6741221..befba005 100644 --- a/extras/Makefile.in +++ b/extras/Makefile.in @@ -116,14 +116,14 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \ $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lcmessage.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \ - $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libsigsegv.m4 $(top_srcdir)/m4/longlong.m4 \ + $(top_srcdir)/m4/mpfr.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \ + $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) diff --git a/io.c b/io.c index 0d29c740..50310ed2 100644 --- a/io.c +++ b/io.c @@ -2313,7 +2313,7 @@ wait_any(int interesting) /* pid of interest, if any */ sigaddset(& set, SIGQUIT); sigprocmask(SIG_BLOCK, & set, & oldset); #else - RETSIGTYPE (*hstat)(int), (*istat)(int), (*qstat)(int); + void (*hstat)(int), (*istat)(int), (*qstat)(int); istat = signal(SIGINT, SIG_IGN); #endif diff --git a/m4/ChangeLog b/m4/ChangeLog index 41febbdd..fa7e1622 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2015-04-16 Arnold D. Robbins + + * isc-posix.m4: Removed. No longer needed. + 2015-01-24 gettextize * iconv.m4: Upgrade to gettext-0.19.4. diff --git a/m4/isc-posix.m4 b/m4/isc-posix.m4 deleted file mode 100644 index 74dc8f26..00000000 --- a/m4/isc-posix.m4 +++ /dev/null @@ -1,24 +0,0 @@ -# isc-posix.m4 serial 2 (gettext-0.11.2) -dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -# This file is not needed with autoconf-2.53 and newer. Remove it in 2005. - -# This test replaces the one in autoconf. -# Currently this macro should have the same name as the autoconf macro -# because gettext's gettext.m4 (distributed in the automake package) -# still uses it. Otherwise, the use in gettext.m4 makes autoheader -# give these diagnostics: -# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX -# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX - -undefine([AC_ISC_POSIX]) - -AC_DEFUN([AC_ISC_POSIX], - [ - dnl This test replaces the obsolescent AC_ISC_POSIX kludge. - AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) - ] -) diff --git a/main.c b/main.c index 4628afec..ef4f8550 100644 --- a/main.c +++ b/main.c @@ -58,7 +58,7 @@ static void init_args(int argc0, int argc, const char *argv0, char **argv); static void init_vars(void); static NODE *load_environ(void); static NODE *load_procinfo(void); -static RETSIGTYPE catchsig(int sig); +static void catchsig(int sig); #ifdef HAVE_LIBSIGSEGV static int catchsegv(void *fault_address, int serious); static void catchstackoverflow(int emergency, stackoverflow_context_t scp); @@ -1159,7 +1159,7 @@ arg_assign(char *arg, bool initing) /* catchsig --- catch signals */ -static RETSIGTYPE +static void catchsig(int sig) { if (sig == SIGFPE) { diff --git a/profile.c b/profile.c index c6c1e309..dc887e97 100644 --- a/profile.c +++ b/profile.c @@ -48,8 +48,8 @@ const char *redir2str(int redirtype); #define DONT_FREE 1 #define CAN_FREE 2 -static RETSIGTYPE dump_and_exit(int signum) ATTRIBUTE_NORETURN; -static RETSIGTYPE just_dump(int signum); +static void dump_and_exit(int signum) ATTRIBUTE_NORETURN; +static void just_dump(int signum); /* pretty printing related functions and variables */ @@ -1002,7 +1002,7 @@ pp_string_fp(Func_print print_func, FILE *fp, const char *in_str, /* just_dump --- dump the profile and function stack and keep going */ -static RETSIGTYPE +static void just_dump(int signum) { extern INSTRUCTION *code_block; @@ -1016,7 +1016,7 @@ just_dump(int signum) /* dump_and_exit --- dump the profile, the function stack, and exit */ -static RETSIGTYPE +static void dump_and_exit(int signum) { just_dump(signum); diff --git a/test/Makefile.in b/test/Makefile.in index ea0a4a27..9c01d192 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -115,14 +115,14 @@ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/arch.m4 \ $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/isc-posix.m4 $(top_srcdir)/m4/lcmessage.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libsigsegv.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/mpfr.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/noreturn.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/readline.m4 $(top_srcdir)/m4/socket.m4 \ - $(top_srcdir)/m4/ulonglong.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libsigsegv.m4 $(top_srcdir)/m4/longlong.m4 \ + $(top_srcdir)/m4/mpfr.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/noreturn.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/readline.m4 \ + $(top_srcdir)/m4/socket.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -- cgit v1.2.1