lib/error.c


Log

Author Commit Date CI Message
Paul Eggert 0632e115 2006-09-13T22:38:14 * _fpending.c: Include <config.h> unconditionally, since we no longer worry about uses that don't define HAVE_CONFIG_H. * acl.c, alloca.c, argmatch.c, atexit.c, backupfile.c: * basename.c, c-stack.c, c-strtod.c, calloc.c, canon-host.c: * canonicalize.c, chdir-long.c, chdir-safer.c, chown.c: * cloexec.c, close-stream.c, closeout.c, creat-safer.c: * cycle-check.c, diacrit.c, dirchownmod.c, dirfd.c, dirname.c: * dup-safer.c, dup2.c, error.c, euidaccess.c, exclude.c: * exitfail.c, fchmodat.c, fchown-stub.c, fd-safer.c: * file-type.c, fileblocks.c, filemode.c, filenamecat.c: * fnmatch.c, fopen-safer.c, fprintftime.c, free.c, fsusage.c: * ftruncate.c, fts-cycle.c, fts.c, full-write.c, gai_strerror.c: * getcwd.c, getdate.y, getdomainname.c, getgroups.c: * gethostname.c, gethrxtime.c, getloadavg.c, getlogin_r.c: * getndelim2.c, getnline.c, getopt.c, getopt1.c, getpass.c: * gettime.c, gettimeofday.c, getugroups.c, getusershell.c: * glob.c, group-member.c, hard-locale.c, hash-pjw.c, hash.c: * human.c, idcache.c, inet_ntop.c, inet_pton.c, inttostr.c: * isdir.c, lchown.c, linebuffer.c, long-options.c, lstat.c: * malloc.c, md5.c, memcasecmp.c, memchr.c, memcmp.c, memcoll.c: * memcpy.c, memmove.c, memrchr.c, mkancesdirs.c, mkdir-p.c: * mkdir.c, mkdirat.c, mkstemp-safer.c, mkstemp.c, modechange.c: * mountlist.c, nanosleep.c, obstack.c, open-safer.c: * openat-die.c, openat.c, pagealign_alloc.c, physmem.c: * pipe-safer.c, posixtm.c, posixver.c, putenv.c, quote.c: * quotearg.c, raise.c, readtokens.c, readtokens0.c, readutmp.c: * realloc.c, regex.c, rename.c, rmdir.c, rpmatch.c, safe-read.c: * same.c, save-cwd.c, savedir.c, setenv.c, settime.c, sha1.c: * sig2str.c, snprintf.c, strdup.c, strerror.c, strftime.c: * stripslash.c, strndup.c, strnlen.c, strpbrk.c, strtod.c: * strtoimax.c, strtol.c, strverscmp.c, tempname.c, time_r.c: * timegm.c, tmpfile-safer.c, unlinkdir.c, userspec.c, utime.c: * utimecmp.c, utimens.c, version-etc-fsf.c, version-etc.c: * xalloc-die.c, xgetcwd.c, xgethostname.c, xmalloc.c: * xmemcoll.c, xnanosleep.c, xreadlink.c, xstrtod.c: * xstrtoimax.c, xstrtol.c, xstrtoumax.c, yesno.c: Likewise.
Eric Blake 26bb2bf6 2006-08-29T16:58:34 * error.c (error_at_line, print_errno_message): Match libc, after resolution of upstream bug 3044.
Eric Blake 1a420a87 2006-08-14T16:08:25 * misc/error.c: Add space between program name and message if file name is missing.
Eric Blake be5a3998 2006-08-06T12:36:47 * error.h: Fold in some upstream changes from glibc. * error.c: Likewise.
Paul Eggert 267a39ba 2005-05-14T06:03:57 *** empty log message ***
Paul Eggert 4d04667f 2004-12-29T05:49:08 [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h"; not needed. This removes a dependency on the gettext module. [defined _LIBC]: Do not include <libintl.h>; not needed.
Simon Josefsson c60b43af 2004-10-04T20:30:46 error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of '#ifdef USE_UNLOCKED_IO'.
Paul Eggert 917752ad 2004-10-04T20:17:39 Remove dependencies on unlocked-io.
Paul Eggert ce528855 2004-08-05T23:39:18 Work around bug in OpenBSD 3.4 sterror_r: it sometimes returns a positive errno value even when it succeeds. (print_errno_message) [!LIBC]: Fall back on strerror if __strerror_r fails.
Jim Meyering 1936bcb2 2003-09-28T08:09:13 Correct cpp indentation.
Paul Eggert 22c1c15d 2003-09-27T14:30:57 (error_tail): Don't cast alloca to (void *); it's already (void *).
Paul Eggert 30a788ee 2003-09-27T05:11:56 * error.c (error_tail): Move some declarations into inner scope where the local variables are used.
Paul Eggert cd6df927 2003-09-26T07:41:40 (SIZE_MAX) [!defined SIZE_MAX]: Define. (error_tail): Do not loop, reallocating temporary buffer, since the original size is big enough. This avoids one potential size overflow calculation. Check for size overflow when calculating temporary buffer size. Free temporary buffer when done, if it was allocated with malloc; this closes a memory leak.
Paul Eggert 2fee8e22 2003-09-26T07:35:01 Merge changes from glibc.
Paul Eggert c5467a5a 2003-09-12T19:47:20 Assume vprintf.
Jim Meyering bc304cd4 2003-09-10T08:33:11 Correct indentation of cpp directives.
Paul Eggert 9ecb5288 2003-09-08T23:26:06 Remove K&R cruft.
Paul Eggert 85182137 2003-08-04T22:46:12 [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is 1. This merges changes from glibc (merge done by Jim Meyering for coreutils).
Jim Meyering 88cade9d 2002-12-06T08:08:13 Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
Jim Meyering ccd26a7b 2002-12-06T08:00:45 Merge in changes from libc's misc/error.c, in preparation for the merge of gnulib's changes back into libc. (_): Define only if not already defined. Move definition to follow all #include directives. Include unlocked-io.h only if !_LIBC. [_LIBC]: Include <libio/libioP.h>. [USE_IN_LIBIO]: Include <libio/iolibio.h> (fflush): Tweak definition to use INTUSE. (putc): Define.
Karl Berry b7476078 2002-11-25T00:17:33 change license to gpl.
Jim Meyering ca45c1dd 2002-11-23T15:07:14 Add copyright date of 2002.
Bruno Haible f9fa25dc 2002-11-05T21:45:29 Include gettext.h instead of <libintl.h> with #ifdefs.
Jim Meyering 92f1833a 2001-11-17T13:29:42 Include unlocked-io.h.
Jim Meyering e5bf94ff 2001-10-21T07:59:04 (strerror_r): Do not declare unless !_LIBC. Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P. Use strerror_r that is only a macro, even if it is not a function. (strerror): Check for HAVE_DECL_STRERROR before declaring. (private_strerror): Use prototypes, not old-style function definition. (print_errno_message): New function. Support the POSIX 'int'-flavored strerror_r, as well as the traditional char*-flavored one. (error_tail, error, error_at_line): Use it.
Jim Meyering 0a3f1560 2001-09-02T13:22:25 Update from GNU libc.
Jim Meyering f534d0f5 2000-11-11T14:32:00 Add a couple #includes, merging from GNU libc version.
Jim Meyering 067a83f1 2000-06-24T12:01:03 [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
Jim Meyering eb0bfaed 2000-01-08T17:53:35 remove stray define before _LIBC
Jim Meyering 3e633964 2000-01-08T16:44:19 (error): Use __strerror_r's return value only if HAVE_WORKING_STRERROR_R. (error_at_line): Likewise.
Jim Meyering 6e93b42a 1999-09-28T14:48:43 (error_at_line): Use strerror portably here, too, just as was done in error.
Jim Meyering 82a4c5fa 1998-11-15T17:35:34 (error): Don't use strerror_r's return value.
Jim Meyering 9e096f5f 1998-03-27T11:23:07 new version from Uli
Jim Meyering 35f70728 1998-03-15T08:11:02 update from fsf
Jim Meyering 729a4169 1997-02-04T03:26:31 libitize
Jim Meyering 552dcada 1996-10-29T13:47:56 .
Jim Meyering a76c51d1 1996-10-10T02:50:37 Use #if, not #ifdef in test for HAVE_CONFIG_H.
Jim Meyering 045e7cae 1996-10-09T02:33:18 Include error.h to align with libit -- under protest, François :-).
Jim Meyering 9243fffe 1996-04-18T23:02:17 Indent cpp-directives.
Jim Meyering 0a3a4d1e 1996-04-03T12:33:23 .
Jim Meyering 36ffc38f 1996-03-30T14:26:16 update from FSF:/home/gd/gnu/lib
Jim Meyering 533ec87b 1996-03-30T12:39:36 Update from libc.
Jim Meyering f88e233c 1995-12-15T15:35:15 new version from FSF
Jim Meyering 4ad1794b 1995-09-13T13:15:35 Fix typo in comment.
Jim Meyering b80c3874 1995-05-20T13:28:24 merge with 1.11.1a
Jim Meyering 1f086202 1995-03-20T14:26:41 .
Jim Meyering 43e78b97 1992-11-01T05:44:30 Initial revision