Home | History | Annotate | Download | only in gen
History log of /src/lib/libc/gen/setmode.c
RevisionDateAuthorComments
 1.38  19-Apr-2022  rillig lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.
 1.37  12-Mar-2022  christos reallocarr returns errno. preserve it.
 1.36  12-Mar-2022  nia setmode(3): use reallocarr instead of realloc(x * y)
 1.35  12-Mar-2022  nia setmode(3): use reallocarr instead of malloc(x * y)
 1.34  25-Jun-2012  abs Update old-style definitions to ANSI, remove a couple of register
definitions along the way. Fixed gcc 4.1 build (thank you vax)
 1.33  21-Mar-2012  christos fix argument order.
 1.32  20-Mar-2012  matt Use C89 definitions.
Remove use of __P
 1.31  01-Oct-2005  christos branches: 1.31.44;
Make sure that setmode sets errno on failure (it used to return a random
errno) and document it.
 1.30  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.
 1.29  15-Jan-2003  kleink Rename auto variable shading global sigset().
 1.28  25-Jan-2000  enami branches: 1.28.6;
Use tab to indent.
 1.27  22-Jan-2000  mycroft Delint.
 1.26  22-Jan-2000  mycroft Delint.
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
 1.25  20-Jan-2000  enami - To detect realloc failure, need to check the value just returned by it.
- Free storage on realloc failure.
- Some cosmetic changes.
 1.24  20-Jan-2000  mycroft Use strtol() to check validity of numeric values, rather than
hand-coding it.
 1.23  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.22  16-Sep-1999  lukem * use _DIAGASSERT() to check pointer arguments against NULL and file
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.

the first two items result in the addition of code similar to the
following in various functions:

_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
 1.21  16-Mar-1999  christos Fix gcc-2.8.1 warnings.
 1.20  27-Feb-1998  perry trivial changes to quiet lint.
 1.19  03-Feb-1998  perry remove obsolete register declarations
 1.18  08-Oct-1997  mycroft Make sure the command list is properly terminated when parsing an
octal mode. From Alasdair Baird in PR 4232.
 1.17  21-Jul-1997  jtc If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore. The library will use those
names internally. Weak aliases are used to provide the original names
to the API.

This is only the first part of this change. It is most of the functions
which are implemented in C for all NetBSD ports. Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
 1.16  13-Jul-1997  christos Fix RCSID's
pacify gcc
 1.15  07-Feb-1997  christos I ``who'' was not specified, set the appropriate bits as the manual page
states. chmod +s foo and chmod +t . now work.
 1.14  20-Dec-1996  cgd pull in unistd.h, const poisoning
 1.13  03-Apr-1996  jtc branches: 1.13.2;
Add explict function return types
 1.12  23-Mar-1995  jtc removed unnecessary #include <stddef.h>
 1.11  04-Mar-1995  cgd fix up some RCS Id's i botched.
 1.10  27-Feb-1995  cgd merge with 4.4-Lite, keeping local changes. clean up Ids
 1.9  29-Mar-1994  cgd branches: 1.9.4;
update based on some work i did for 4.4BSD
 1.8  11-Feb-1994  cgd hopefully last one; more corner cases. Thanks to Mark Weaver for
inspiration, for demanding that i put one of these fixes in, and
for double-checking.
 1.7  10-Feb-1994  cgd fix -[ugo] and =[ugo]
 1.6  10-Feb-1994  cgd clean up, reorganize, etc.
 1.5  04-Jan-1994  cgd DTRT if op is =
 1.4  23-Dec-1993  jtc Explicitly declare function return types to silence "gcc -Wall".
 1.3  26-Aug-1993  jtc Declare rcsid strings so they are stored in text segment.
 1.2  30-Jul-1993  mycroft Add even more RCS frobs.
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  25-Feb-1995  cgd from lite, with minor name rearrangement to fit.
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.9.4.1  02-May-1995  jtc #include "namespace.h"
 1.13.2.1  19-Sep-1996  jtc snapshot namespace cleanup: gen
 1.28.6.1  17-Jan-2003  thorpej Sync with HEAD.
 1.31.44.2  30-Oct-2012  yamt sync with head
 1.31.44.1  17-Apr-2012  yamt sync with head

RSS XML Feed