mjl
323d451587
Added details about origin of code (BSD/OS) in history section.
...
Closes PR/9410 by Peter Seebach.
2000-03-08 00:02:54 +00:00
mjl
6be4d2a451
Mention the LOGIN_SETENV flag for setusercontext()
2000-02-13 01:10:19 +00:00
mjl
b562264ae1
Add a missing free() of a temporary buffer.
...
Add "unlimited" as synonym for "inf" and "infinity" for the
benefit of FreeBSD users.
Factor out the comparison w/ "infinity" in a isinfinite() function.
2000-02-10 20:52:54 +00:00
mjl
b3204d536b
Add login_getpwclass to libutil as convenience function for
...
programs originally for FreeBSD.
Add parsing of "setenv" parameter which can be used to set
up an initial environment on login.
2000-02-04 02:17:14 +00:00
mjl
633ab39a92
Make setusercontext() resilient against missing login.conf too.
2000-01-14 02:14:42 +00:00
mjl
923f186481
Make login_cap routines resilient to non-existant conf file, and
...
secure_path() less noisy.
2000-01-13 06:48:14 +00:00
mjl
33a82426ba
Add a history section.
2000-01-13 06:16:48 +00:00
mjl
142f369443
Add necessary support routines for login.conf.
2000-01-12 05:02:10 +00:00
mjl
183e61b9cf
Use /bin/sh to take care of the EDITOR command parsing instead of home
...
grown method. Fixes PR/8935 by myself. Fix is from OpenBSD. Also pull
in a couple of minor changes like checking the return value of vfork().
1999-12-03 16:23:58 +00:00
kristerw
1276709f38
Typos (from OpenBSD)
1999-11-19 23:29:45 +00:00
lukem
d896261208
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
...
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem
e97b67a374
remove diagnostic check for name==NULL; it's ok to call pw_error() in this case
1999-09-17 01:28:12 +00:00
lukem
b48252f365
* 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
1999-09-16 11:44:54 +00:00
simonb
6bf3aa19f9
More trailing white space.
1999-07-02 15:46:05 +00:00
christos
8ee1fb1aaa
const poisoning.
1999-06-12 18:06:40 +00:00
thorpej
014350bb41
Use asprintf(3), as suggested by Simon Burge.
1999-06-06 17:31:09 +00:00
thorpej
fb695fdcb9
Add pidfile(3), which write a pid file in /var/run, and arranges for it
...
to be removed on normal exit.
1999-06-06 01:50:00 +00:00
garbled
38c96853cf
Last of the .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Wheee!
1999-03-22 19:44:33 +00:00
abs
edc1a24a56
Add a note to update src/distrib/sets/lists/base/shl.*, and add a missing
...
RCS Id.
1999-02-25 08:02:19 +00:00
kleink
df15a294f2
Dv vs. Va police.
1999-02-16 19:36:52 +00:00
bouyer
dc306354b0
Move the bswap functions from libutil to libc (this bups the
...
minor of libc and the major of libutil). For little-endian architectures
merge the bnswap() assembly versions with nto* and hton* using symbols
aliasing. Use symbol renaming for the bswap function in this case to avoid
namespace pollution.
Declare bswap* in machine/bswap.h, not machine/endian.h. For little-endian
machines, common code for inline macros go in machine/byte_swap.h
Sync libkern with libc.
Adjust #include in kernel sources for machine/bswap.h.
1999-01-15 13:31:15 +00:00
kleink
95478cea62
strtok() -> strtok_r() to avoid side-effects.
1999-01-11 23:31:50 +00:00
kleink
66208204f2
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
...
of errno.
1999-01-11 23:20:35 +00:00
kleink
920280ae17
2 -> STDERR_FILENO
1999-01-11 23:10:26 +00:00
christos
983a6b1f22
Delint
1998-12-09 14:35:02 +00:00
kleink
0453a51caa
Kill __LIBUTIL_BUILD in favor of the newly added _LIBC indicator completely;
...
suggested by Jason Thorpe.
1998-10-14 21:13:04 +00:00
christos
4a47153ca9
Use posix signal system calls.
...
XXX: Library functions should not unblock signals like this!
1998-09-27 00:00:16 +00:00
christos
6f4f1ab0ad
Preserve the correct errno so that programs know the reason we failed.
1998-09-26 23:59:40 +00:00
tsarna
c89a574ffa
Execute ttyaction on termination of rlogind/telnetd sessions.
...
Also, say a little bit about ttyaction in the getty and login manpages.
1998-08-29 17:31:55 +00:00
lukem
ce83c69e00
first pass at fixing up capitalization of function names and
...
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
thorpej
8d7b6b5dae
Add some braces to make egcs happy.
1998-08-19 00:52:18 +00:00
perry
a843f0f8a5
bzero->memset, bcopy->memcpy, bcmp->memcmp
1998-08-10 02:43:08 +00:00
mycroft
55ac0c2da3
const poisoning.
1998-07-26 21:58:46 +00:00
mrg
2beab49a06
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
thorpej
5b08d89dbe
Put pw_scan() back into libutil and pretent that libutil.so.5.0 never
...
existed.
1998-06-27 05:08:56 +00:00
lukem
c90cd29d64
actually, bump major for pw_scan() removal, even when it was moved to -lc
1998-06-09 06:42:50 +00:00
lukem
65c4c29d59
bump minor (because pw_scan() moved to libc, and old binaries that use libutil.so.4.4 and libc.so.12.26 won't work otherwise)
1998-06-08 14:33:05 +00:00
lukem
433c7b1d19
don't need trailing empty paragraph
1998-06-08 10:58:45 +00:00
lukem
32e5dd1f22
move pw_scan() out of here (into libc)
...
document _PASSWORD_NOWARN and _PASSWORD_OLDFMT inflags to pw_scan()
1998-06-08 03:12:45 +00:00
kleink
1550a56403
Delint last.
1998-05-09 20:59:29 +00:00
kleink
687ea7404c
Fix some arithmetics lossage on typeless pointers.
1998-05-08 16:55:15 +00:00
enami
64c778177c
Fix function return value and arguments in SYNOPSIS.
1998-05-05 00:43:16 +00:00
kleink
34c4557d93
Need <time.h> for time() prototype.
1998-03-30 15:22:29 +00:00
bouyer
50660fb787
Add bswap{16,32,64} functions to libutil. Because of this, bump minor.
1998-03-18 16:40:45 +00:00
perry
312aca536f
add LIBRARY section to man page
1998-02-05 18:45:17 +00:00
perry
b613a27fa7
unregisterify
1998-01-22 15:29:13 +00:00
perry
5e3388b0bf
merge with lite-2
1998-01-22 15:23:05 +00:00
perry
b51ed80fd5
RCS Id Police.
1998-01-09 04:11:49 +00:00
perry
93db5caa95
RCSID Police.
1998-01-05 07:41:06 +00:00
thorpej
fbb903995d
Change an exit() to _exit(), so that it's safe for vfork().
1997-12-31 05:47:15 +00:00