Commit Graph

107 Commits

Author SHA1 Message Date
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
mikel
c75f102623 s/void/int/, from Ty Sarna in PR lib/4627
use .Xr when referring to login and getty instead of .Nm
1997-12-04 06:00:19 +00:00
lukem
40d4d52cce * add extra arg to fparseln() - int flags - which is a bitmask.
current flags allow the `un-escaping' of escaped arguments (i.e,
  don't prefix an escaped argument with the escape char)
* other minor cleanups
1997-12-01 02:58:40 +00:00
lukem
253f2b2928 * return on empty lines (with len = 0, and a pointer to an empty string),
rather than parsing until non-blank lines. some callers may want to
  know when a blank line occurs. fix confirmed with christos.
* enhance test code (which is commented out by default) to use len and
  lineno parameters
1997-11-24 13:05:38 +00:00
lukem
0e3b290810 fix .Nx usage (use 1.0 instead of 0.9a, etc), and other minor cleanups 1997-11-24 06:28:50 +00:00
lukem
191d34513d better describe delim[], use ".Nx 1.3a" instead of "1.3A", other minor stuff 1997-11-23 04:07:32 +00:00
enami
6940412e60 Fix typo; update `buf' by return value from realloc(3). 1997-11-18 06:44:51 +00:00
christos
fd7ea84f27 Increase minor number for fparseln 1997-11-16 22:20:14 +00:00
christos
2d0fe6e822 tyop 1997-11-16 22:19:54 +00:00
christos
d0d7e22dc8 PR/4475: Jason R. Thorpe: there is no common function to parse a continued
line.
1997-11-16 22:15:54 +00:00
lukem
b10e61b102 use CPPFLAGS instead of CFLAGS, remove -Wall et al (WARNS=1 already does this) 1997-10-23 03:29:09 +00:00
mycroft
c967784829 Test file type correctly, using S_IS*(). 1997-10-19 18:10:58 +00:00
cjs
8e29c9888e * Add hostname to temporary file to avoid collisions when locking on
an NFS volume and competing with the same pid on another machine.
* Make locking on an NFS-moutned file work properly by checking link
count.
* Make sure correct errno is returned.
1997-10-12 09:58:23 +00:00
cjs
09ced7933a Add pidlock, ttylock, ttyunlock functions. 1997-10-11 02:56:22 +00:00
lukem
5542a7ca43 - define WARNS?=1 in the top-level Makefile.inc, and don't define
anywhere else.
- for now, override WARNS=0 in librpcsvc and libwrap, until they're
  cleaned up
- rcsid police

lib is now clean (except for librpcsvc and libwrap) on the i386, and
this should motivate the other ports to fix any other minor problems
that their compilers pick up that the i386 version doesn't.
1997-10-09 14:36:17 +00:00
lukem
ae6b9c674a WARNSify 1997-10-09 11:58:15 +00:00
phil
c194103914 Back out my dumb change. 1997-09-30 17:13:50 +00:00
phil
83a44e0389 Add a prototype for opendisk so it will compile. (Should we have
a libutil.h for collecting all these prototypes?)
1997-09-30 16:53:12 +00:00
lukem
e6b7ef9676 reorder some checks so that buf is initialised as early as possible
(just after the check for buf != NULL)
1997-09-29 06:08:45 +00:00
lukem
1e372f6cf9 implement opendisk(3), as discussed with Jason Thorpe 1997-09-25 04:53:30 +00:00
kleink
66105c37fc Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
1997-08-25 19:31:43 +00:00
jtc
23bee85a3f Fix files using old TNF copyright notice 1997-07-31 00:01:15 +00:00
phil
01d72f4add Change pw_copy to take an optional 4th parameter (old_pw), a pointer
to a passwd structure.  If a good pointer, make sure old entry in file
is identical to passed passwd (old_pw).  If not, abort.

Update documentation, bump major version due to change to pw_copy.
1997-07-24 08:50:31 +00:00
christos
3a693097b3 Remove accidental copy-right attribution. 1997-07-06 19:35:14 +00:00
christos
bb4dad4f04 PR/3832: Enami Tsugutomo: passwd.c will not compile on NetBSD/alpha 1997-07-06 18:17:21 +00:00
mikel
dea51c3ad3 s/ttyaction/ttymsg/g as noted by Dave Huang <khym@bga.com>
set argument of .Os to NetBSD 1.3
add xref to writev(2), for a better explanation of uio
misc. cleanup
1997-07-01 06:24:01 +00:00
mikel
adf5a16deb indicate new location in error message 1997-07-01 06:10:53 +00:00
christos
023f063691 Add ttymsg.3 to the man pages. 1997-06-29 18:45:24 +00:00
christos
f5646a08d4 - RCSID police
- Add ttymsg.3
1997-06-29 18:44:03 +00:00
mikel
20690bcbac include <fnmatch.h> for fnmatch() prototype
use __CONCAT() to generate pathenv
1997-06-20 06:42:20 +00:00
mikel
6aa3be2874 add parens for gcc -Wall 1997-06-20 06:17:27 +00:00
lukem
ad8e075042 in pw_scan(), parse [gu]id with strtoul() instead of atoi(), and sanity
check a) the parsed value was just a number, b) it doesn't exceed [GU]ID_MAX
1997-05-22 03:08:42 +00:00
mycroft
8feb354e12 Pull in err.h for prototypes. 1997-05-09 18:37:45 +00:00
mycroft
9ba4365fce Allow the full range of UIDs and GIDs. 1997-04-23 18:51:17 +00:00