Commit Graph

127 Commits

Author SHA1 Message Date
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
mrg
23768a9e9a remove possibly dangerous sprintf and strcpy calls. 1997-02-11 08:42:03 +00:00
thorpej
3fe99e29ea Deal with complex EDITOR strings (e.g. `pico -t'). Fixes PR #2520. 1996-12-09 22:23:34 +00:00
gwr
603bda9c4e Use _exit after exec failure (not exit). 1996-11-29 18:50:37 +00:00
gwr
d8201fb9f6 Use snprintf instead of sprintf. 1996-11-22 22:04:25 +00:00
gwr
3d5027bee4 Correct lengths used to build environment strings. (Fixes PR#2948) 1996-11-18 18:54:36 +00:00
lukem
01d3778298 fix spello of 'convenience' 1996-11-17 23:09:55 +00:00
fvdl
44fa942695 The FILES section named '/etc/ttyactions'; remove that 's'. 1996-11-16 20:50:12 +00:00
gwr
9d69345016 Allow the ttyname parameter of ttyaction() to be the full pathname of
the device, because that is what getty and login have handy.  The
"/dev/" part is skipped before scanning the /etc/ttyaction file.
1996-11-14 19:16:01 +00:00
gwr
6ab34f5889 Add ttyaction.3 and ttyaction.c 1996-11-14 17:53:07 +00:00
gwr
5f5eeb9d41 Increment minor version for new function ttyaction(). 1996-11-14 17:52:02 +00:00
mycroft
7cc5f9cd7a Make openpty() work more than once. 1996-11-12 16:39:38 +00:00
lukem
0162911bb5 - fix retval of openpty()
- correct two .Fn references to forkpty()
- describe retval of forkpty(); it can return PID as well
- add xref to fork(2)
1996-11-03 14:27:54 +00:00
ghudson
23beafab63 Document that the caller must do a pw_abort() if pw_mkdb() fails. 1996-06-02 19:26:18 +00:00
ghudson
e257708bf2 Don't delete the lock file if pwd_mkdb fails. The caller will take care
of it by calling pw_abort() or pw_error() as appropriate.
1996-06-02 19:25:43 +00:00
thorpej
7795b4110f Add two functions to libutil:
- getmaxpartitions: get the value of MAXPARTITIONS for the
	  currently running system

	- getrawpartition: get the value of RAW_PART for the
	  currently running system

These functions are necessary since the value of MAXPARTITIONS might
be different across platforms which are binary compatible (e.g. amiga
and sun3).
1996-05-16 07:03:28 +00:00
jtc
e42a94845a Minor reorganization of libutil, including the addition of passward
locking and editing functions.
From Greg Hudson <ghudson@MIT.EDU>
1996-05-15 21:42:23 +00:00
pk
8347998a01 Prototypes (PR#1100). 1995-06-05 19:43:53 +00:00
mycroft
4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
jtc
a8bfd3d17a Merged with 4.4lite
Changed to conform to NetBSD's new RCS Id conventions.
1994-11-17 07:17:53 +00:00
cgd
3a724adbf7 minor cleanup; kill unnecessary casts 1994-05-04 10:55:57 +00:00
andrew
fc3e00430e Support up to 256 ptys. 1994-04-06 08:54:35 +00:00
cgd
f74f70059d off_t 1994-04-01 03:06:40 +00:00
cgd
19601b5460 _double_ major number bump! joy! 1994-03-27 09:18:25 +00:00
mycroft
025a03852f Clean up deleted files. 1994-01-27 23:31:23 +00:00
cgd
7999e08c50 get rid of stuff that doesn't belong here 1994-01-27 23:31:19 +00:00
cgd
b7a2e44720 kill force. 1994-01-25 21:03:26 +00:00
cgd
985686cfed kill the 'prog' arg to getbsize(); it's unneeded. minor rev bump. 1994-01-25 20:06:03 +00:00
jtc
e304028c04 Fix off by one bug in pwcashe routine group_from_gid(). 1994-01-19 21:15:46 +00:00
cgd
3a44018403 get rid of the awful RSS hack 1994-01-07 19:10:06 +00:00
pk
47b4886a7f Return a well-known constant after becoming a daemon. 1993-12-19 08:44:42 +00:00
mycroft
cbe3d33b6d P[GD]_SHIFT --> P[GD]SHIFT 1993-12-15 00:50:45 +00:00
cgd
f7c20a904e look for m68k, rather than hp300 or amiga 1993-12-05 00:33:30 +00:00
cgd
daea3d2f86 add shlib_version file, with version 0.0 1993-11-08 03:48:53 +00:00
mycroft
ababab0671 Forgot to initialize `cp' in setsyserr(). 1993-10-13 15:49:55 +00:00
mycroft
db3323c9ef Remove code for old VM system. Don't use page tables in kvm_procread().
Change `#if DEBUG' to `#ifdef DEBUG'.  Read some symbols from the kernel
only once.
1993-10-02 07:07:43 +00:00
mycroft
669b9e506a Last change was almost correct, but we have to check that the pager actually
has the page.  If not, we go up the shadow chain.
1993-08-16 07:27:06 +00:00
mycroft
9b8df6ad33 Fix an off-by-one error when scanning the vm map for a page. Also, if the
page is not in core, don't recurse into shadow objects if we've already found
a pager.
1993-08-15 13:57:51 +00:00
mycroft
cfafc9262a Fix a bug in virtual to physical address translation on hp300s, and add support
for Amigas.
1993-08-15 01:54:29 +00:00
cgd
7fa14d416e line 860: use CLSHIFT rather than PGSHIFT.
line 927: fix bogus indentation
also make sure first chars of buffers are null char, just in
case nothing rational is read...
1993-08-14 11:47:51 +00:00
cgd
b24744dc1d implement kvm_procread for the hp300. now things mostly work on
the hp300, in terms of kvm.  still minor strangeness re: sendmail...
1993-08-14 11:44:45 +00:00
mycroft
a617b72b1f #include <machine/pte.h>, not <hp300/hp300/pte.h>. Also, make it at least
compile for non-i386 architectures, but exit with an error message (for now).
1993-08-14 02:20:27 +00:00
mycroft
9417ee8681 Add getbsize() from Berkeley, somewhat modified. 1993-08-06 17:03:54 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
dfb9caab49 Add RCS indentifiers. 1993-08-01 07:32:48 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00
mycroft
81c63e588b Read swap in CLBYTES blocks. 1993-07-19 12:37:13 +00:00
mycroft
8ffedb1335 Don't need -I/sys any more. 1993-06-17 13:11:39 +00:00
deraadt
5c20ccab8b kernel string read function takes much less time. could be optimized further,
by making block reads kernel page aligned. (cgd will make the next optimization
in this file)
1993-06-15 07:16:06 +00:00
cgd
566dd48a95 misc minor changes 1993-06-01 01:48:36 +00:00
cgd
5089c41368 update kvm.c for the new way of doing things:
(1) add support for new stack format/PS_STRINGS
	(2) add support for kvm_getenv
the HP300 support in kvm_procread needs to be looked at/filled in,
from example code in kvm_getu, plus hacks
1993-06-01 01:35:01 +00:00
cgd
12279683e7 don't inlude select.h, but keep header cleanups 1993-05-20 11:53:04 +00:00
cgd
2c6296eff4 fix new select stuff 1993-05-20 10:30:31 +00:00
cgd
de5b7fe74a fix problem where kvm_getprocs(), ..., kvm_freeprocs(), kvm_getprocs()
would get no processes.
1993-05-11 06:44:54 +00:00
mycroft
9222eca1f3 Fix memory leak. 1993-04-27 20:58:44 +00:00
cgd
ea0119db71 From: pk@cs.few.eur.nl (Paul Kranenburg)
patch which allows ps(1) and w(1) to lay
their hands on process command line arguments.
1993-04-10 15:02:41 +00:00
cgd
e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00