Commit Graph

5607 Commits

Author SHA1 Message Date
wiz 6623130407 Remove unused ci.c. 2002-07-10 18:55:34 +00:00
wiz 77085dee52 Cleanup, part 1:
Remove sysent.h, unneeded.
Remove __P().
unifdef __STDC__
Remove some #if 0 parts.
Start ANSIfication.
2002-07-10 18:53:56 +00:00
fredb d9aaf825ea Unset connect-time timer on disconnect, as discussed briefly on
tech-userlevel. Without this, using "demand" and "max-connect NNN"
together subjects the user to rather arbitrary disconnects.
2002-07-10 15:00:35 +00:00
jdolecek 78703f950e Put grfconfig(8) manpage to amiga subdir, since it's amiga-only tool.
Adresses part of bin/8733 by Danny Thomas.
2002-07-09 22:18:37 +00:00
wiz 7c42d2fdaf Clean up last (no spaces before parentheses). 2002-07-09 14:13:18 +00:00
tron 4a3185f506 Get rid of __P() here. The rest of the sources doesn't use it, too. 2002-07-09 10:34:44 +00:00
tron cb35c09756 Fix build problem probably caused by some toolchain change. 2002-07-09 10:34:16 +00:00
yamt a8463800e2 don't pass null pointers to printf for "%s". 2002-07-09 04:35:30 +00:00
yamt 84954a6eb7 - use snprintf and strlcpy instead of strcpy, strcat and sprintf in some place.
- remove a unneeded strcpy.
2002-07-09 03:30:05 +00:00
hubertf 534ff5d5e9 This fixes various little problems in the lpd source.
lpd.c           bogus 'c' option in getopt option string

        printjob.c      spelling "prstatic inter" -> "printer"
                        finish ANSIfication

        recvjob.c       finish ANSIfication

Patch contributed by Brian Ginsbach <ginsbach@cray.com> in PR 17520
2002-07-09 01:12:35 +00:00
agc c24c69434f Remove user from supplementary groups when deleting a user and not
preserving information.

Remove BUGS section from userdel(8) accordingly.

Make this utility compile with WARNS=3 - add const-poisoning and
shadow variable name resolution.
2002-07-08 22:17:47 +00:00
wiz a234ffc74d Document -w. Patch from Brian Ginsbach in bin/17518. 2002-07-08 14:05:37 +00:00
wiz 4eed7fe383 Fix typo reported in bin/17516. 2002-07-08 11:32:44 +00:00
drochner 12950c5082 fix error handling if open() fails 2002-07-07 15:13:55 +00:00
bjh21 525b050279 Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their targets' modes/ownership/flags, rather
than ignoring them.

This fixes PR standards/563 (at last).
2002-07-07 11:44:02 +00:00
wiz 0fb8fdab47 ANSIfy, remove __P(). 2002-07-06 22:08:30 +00:00
wiz 557fe0a8de ANSIfy and de-__P() a bit more. 2002-07-06 22:01:40 +00:00
wiz 8fb60bde2d Remove unused files (cf. timed{,c}/timed{,c}-extern.h). 2002-07-06 21:59:26 +00:00
wiz b73d58cd80 Remove __P(). 2002-07-06 21:52:05 +00:00
wiz 56b7e3b326 Remove some unnecessary cruft. 2002-07-06 21:51:49 +00:00
wiz f718edfc2a unifdef __STDC__ 2002-07-06 21:46:59 +00:00
wiz 7146bf3ca6 ANSIfy, remove __P(), unifdef __STDC__. 2002-07-06 21:44:40 +00:00
wiz 5c90fa6755 ANSIfy, remove __P(). 2002-07-06 21:30:26 +00:00
itojun 93b1b1c2c9 avoid trigraph. From: Matt Fredette <fredette@theory.lcs.mit.edu> 2002-07-06 18:21:43 +00:00
wiz 3a0b8f6e80 de-__P(), ANSIfy. 2002-07-06 01:00:15 +00:00
wiz 559abfe369 de__P(), ANSIfy. 2002-07-06 00:56:32 +00:00
wiz d532b687e7 de-__P(), ANSIfy. 2002-07-06 00:55:29 +00:00
wiz cfa755ae92 de__P, ANSIfy. 2002-07-06 00:53:54 +00:00
wiz 5250421372 de-__P(), ANSIfy. 2002-07-06 00:47:55 +00:00
wiz 8891dbdc2d ANSIfy, de-__P(), and remove unused SIG_PF define. 2002-07-06 00:46:12 +00:00
wiz 15badb287b ANSIfy (overlooked some...) 2002-07-06 00:42:27 +00:00
wiz 1de018550a Actually, SIG_PF isn't needed in this file at all -- remove it. 2002-07-06 00:31:07 +00:00
wiz af4c38b82e Use .Aq instead of \*[Lt]...\*[Gt] in two places. End sentence with a dot. 2002-07-06 00:21:14 +00:00
wiz ce6c985b9d De-__P(), ANSIfy the one function that wasn't, and unifdef __STDC__. 2002-07-06 00:18:48 +00:00
christos 5740d23c54 Fix selection code [and remove trailing spaces] from Julio Merino. 2002-07-04 20:50:29 +00:00
itojun 181c9736b9 correct udp-from-broadcast check. From: andre@ae-35.com 2002-07-04 12:35:19 +00:00
itojun aafb24a06b getstring() safer by passing buffer size. millert@openbsd 2002-07-04 06:43:19 +00:00
kleink 41b912792c postive -> positive 2002-07-03 22:28:28 +00:00
wiz 3560ae7f37 Sort options in getopt string. 2002-07-03 22:19:25 +00:00
hubertf 1b7f271a58 * Add missing 'break'
* cosmetic update in getoipt string

Patch supplied by Brian Ginsbach <ginsbach@cray.com> in PR 17473.
2002-07-03 22:12:46 +00:00
wiz 84d465bb02 Improve last. 2002-07-03 22:12:38 +00:00
wiz 53e326dd05 Fix error output for negative argument to '-w'.
Also update usage to include -w.
Patches from Brian Ginsbach in bin/17471.
2002-07-03 22:10:28 +00:00
hubertf e925e82dbe Document missing -w option.
Patch submitted by Brian Ginsbach <ginsbach@cray.com> in PR 17472.
2002-07-03 22:07:33 +00:00
christos cb57f0e9bb change the comparisons to account for the unsigness of the variables.
From Julio Merino.
2002-07-02 12:41:26 +00:00
itojun 2a1f4932a0 new CMU boilerplate, from openbsd 2002-07-01 22:19:30 +00:00
wiz 059d2bb6c4 Mdoc nit. 2002-06-30 12:49:29 +00:00
lukem a88aa33faf - be consistent with formatting, and use FSTYPE instead of <fs>
- remove sparc and sun[23] BUGS that aren't relevant in this version
2002-06-30 08:10:40 +00:00
grant 724345d941 update to reflect current state of reality for alpha, pmax, sparc,
sparc64, sun2, sun3 and vax.
clean up examples.
include bugs/caveats from the (now removed) arch installboot man pages.
2002-06-30 04:39:05 +00:00
sommerfeld f80c7eebd7 Since the KERN_CP_TIME sysctl reports total clock ticks across all
cpus and hz is measured in ticks per cpu, divide tick count by ncpu to
determine elapsed time since last sample.

Fixes I/O rate deflation observed on multiprocessors.
2002-06-30 00:10:33 +00:00
itojun 1fd7b003fa it is highly unlikely that protocol # for ip/icmp to change. from deraadt. 2002-06-29 12:12:57 +00:00
itojun 304d46f942 check port number range. sync w/kame, pointed out by deraadt 2002-06-29 07:49:25 +00:00
lukem 0944ed1dd1 tmp_version.c also needs to depend up ${BIND_DIST_DIR}/Version 2002-06-28 16:27:14 +00:00
wiz 2ae2723f67 Sort options in usage. 2002-06-27 22:58:54 +00:00
wiz c89a21963c Spelling fixes, sort options alphabetically, correct copyright date,
and some mdoc improvements.
2002-06-27 22:53:12 +00:00
christos 49cc9b7cd6 clarification on mouse use from Julio Merino 2002-06-27 16:10:03 +00:00
christos 19c9175000 correct for ttyEstat 2002-06-27 15:12:23 +00:00
christos ec14ca749d rename /dev/wsdisplay -> /dev/ttyEstat since it has the same major number
as the other ttyE devices.
2002-06-27 15:07:52 +00:00
yamt bf62cfa448 check return value of snprintf correctly. 2002-06-27 12:05:52 +00:00
christos 784751cd6b PR/17402: Julio Merino: Userland portion for moused (with some changes from me). 2002-06-26 23:13:04 +00:00
wiz 2e935ec638 Don't xref ourselves, use Nm. 2002-06-24 18:22:37 +00:00
wiz d4144f2137 Drop trailing whitespace and sort sections. 2002-06-24 18:20:54 +00:00
grant 551a65be7c add BUGS section (1 entry from bin/11244) 2002-06-24 17:28:07 +00:00
itojun 184465092f correct ftp relay functionality. 2002-06-24 06:03:13 +00:00
perry 46c82860b1 Fix a variable initializer where CLK_TCK was assumed to be a compile
time constant. Soon it won't be.
2002-06-23 17:47:45 +00:00
ross 6a36d10f0d Revise handling of pathnames and quoted strings. Previously, some
filenames had to be unquoted and also had to contain a / or .,
while others had to have no / and no . or be quoted, whereas
arbitrary machine symbols could always be optionally quoted,
which was kind of backwards.

Now, all filesnames use the same rules: quoted, or with a / or .
Arbitrary words can no longer be quoted unless the grammar specifically
allows it, which it now does for filenames, locator values, locator
defaults, compile-with, ident, makeoptions, and options.

Also, locator name symbols can be quoted, so mac68k's "no drq" locator
still works. ("no drq" doesn't appear in any machine description so I
presume it's just for the dmesg. )
2002-06-22 02:09:12 +00:00
ross 5ac0b7aefd Return new terminal QSTRING for quoted strings, instead of the
usual symbol name type WORD; quoted strings can now only be used
where they appear in the (revised) grammar. See gram.y 1.34.
2002-06-22 02:04:28 +00:00
atatat 851e916f1b Provide a means for vnconfig to indicate which devices are in use, and
by which files (hmm...why can't I unmount that file system over
there).  Currently this is just the device and inode number of the
file backing the vnd, but hopefully consing up full pathnames can be
done at some point.
2002-06-21 19:09:29 +00:00
agc 2d3a1701d3 Avoid hardcoding /usr/bin/ftp in the pkg_add binary.
Fixes provided by Stoned Elipot <seb@script.jussieu.fr> in PR 17323
2002-06-21 14:49:40 +00:00
itojun ce924b0f55 sync with 8.3.2. 99% of conflicts were due to $NetBSD$ tag. 2002-06-20 11:42:53 +00:00
itojun d56d2a76af new copyright notice for VJ. via openbsd.
update copyright notice.  mckusick says that Van signed the standard
  Berkeley copyright assignment form, therefore the new license should
  be on these files. I just copied in the notice that Kirk mailed me.
2002-06-18 22:32:16 +00:00
itojun 7dd411b55d userland access to apm emulation. 2002-06-18 05:24:44 +00:00
thorpej 8d88f50760 Fix some printf formats in debug code. 2002-06-18 02:57:53 +00:00
augustss 75ccf77ae3 Don't use -Dlint when compiling to get rid of unused copyright strings,
use -Wno-unused to get rid of the warning instead.
XXX This is not the right way either, but at least it compiles on ppc now.
2002-06-16 21:40:03 +00:00
matt 100b7b43f1 Eliminate unintended trigraph. 2002-06-15 01:57:08 +00:00
matt b8282a1148 Remove extra/redundant argument to syslog. 2002-06-15 01:28:39 +00:00
tron 6db3449490 Add new option "xlatecookie" to amd(8) to support NFS v3 mounts with cookie
translation. The changes were provided by Mark Davies in PR bin/17245.
2002-06-14 15:16:53 +00:00
wiz d1677084c1 Use getopt instead of manual command line grovelling, put usage
in a function and adapt it the man page, and some lint cleanups.
2002-06-13 15:27:09 +00:00
wiz ff7391b803 Note -f is vax only. 2002-06-13 15:25:58 +00:00
wiz 07daf36181 Use a defined value instead of a magic number; make a global local;
more ANSIfication.
2002-06-13 13:49:08 +00:00
wiz 663979c9bb #ifdef i386 -> #ifdef __i386__ (ok'd by fvdl)
Don't shadow variable.
WARNS=2
2002-06-13 13:32:47 +00:00
wiz e8288082fa de-__P, ANSIfy. 2002-06-13 11:01:08 +00:00
wiz 9e20e355d7 Fix Xref from i4bipr to irip. 2002-06-13 09:15:39 +00:00
wiz 59cf1ed286 Do not xref to ourselves, use Nm. 2002-06-12 21:48:09 +00:00
lukem 334bc46aa5 - getlist(): add "int create" arg, which creates list if it's not present
(using guts of now defunct addlist())
- use TAILQ_*() macros appropriately when manipulating tailqs
2002-06-11 04:39:52 +00:00
fredette dcff733bb9 Use NLIST_ELF32 for hppa. 2002-06-10 14:28:14 +00:00
yamt 80a776becb constify and make WARNS=2 clean. 2002-06-10 09:14:26 +00:00
grant 091e72dbd4 be more explicit about creation of /etc/usermgmt.conf 2002-06-10 08:33:05 +00:00
grant ef33e31e46 mention that -D creates defaults file if it doesn't already exist and if
we are running as root.
2002-06-10 07:53:48 +00:00
itojun 5b43820fcf WARNS=1 clean. patch submitted to dhcp-bugs@isc.org. 2002-06-10 00:30:33 +00:00
itojun 6ed8672880 no need for KAME_SCOPEID any longer 2002-06-09 19:59:55 +00:00
itojun f79eb4420d retire greconfig(8) - you can use ifconfig(8) for everything it can do. 2002-06-09 19:31:43 +00:00
yamt 56268cdf57 constify. 2002-06-09 14:14:49 +00:00
yamt 51111fe65d - make last arg of findmatchingname void*.
- move some duplicated functions into lib/.
2002-06-09 13:23:44 +00:00
yamt cc8d347c9a - free memory allocated by findbestmatchingname.
- use static buffer instead of "malloc and don't free"
  for dirname_of.
- fix indent.
2002-06-09 11:56:59 +00:00
yamt 830edd8ed3 rewrite strip_txz:
- don't match against filenames like "a.tgz.a"
- more buffer overrun checks.
2002-06-09 10:40:47 +00:00
martin e2f0c79cdc Avoid a NULL pointer access if passed bogus parameters.
Unify exit codes to EXIST_SUCCESS/EXIT_FAILURE.
2002-06-09 09:05:51 +00:00
yamt f2a19ed936 - fix buffer size checks
- define PKG_PATTEN_MAX and PKG_SUFFIX_MAX and
  use them instead of constants like 255.
- add asserts and buffer size checks.
2002-06-09 03:50:13 +00:00
yamt ae85a7c2df - constify.
- avoid unneeded strcpy.
- add more error checks. (avoid segv
2002-06-09 03:38:59 +00:00
yamt f214a6095e avoid a magic constant. 2002-06-09 03:32:45 +00:00
itojun db47036241 use strchr 2002-06-09 02:47:03 +00:00
itojun ba39243377 use strchr not index 2002-06-09 02:45:26 +00:00
itojun 0b52cc9109 avoid more hardcoded octals. openbsd 2002-06-08 23:43:24 +00:00
itojun b4daa6bb72 avoid hardcoded octals. openbsd 2002-06-08 23:40:12 +00:00
itojun 5da007343b avoid hardcoded octals 2002-06-08 23:37:47 +00:00
itojun 61ef51d198 comment out paragraph that does not fit to NetBSD 2002-06-08 21:19:08 +00:00
itojun b7330b38e8 do not use deprecated ioctls 2002-06-08 18:11:46 +00:00
yamt 10bf6fcc59 constify and make auto const variables static. 2002-06-08 17:24:09 +00:00
itojun f78cc67c13 avoid fd_set overrun. sync w/kame 2002-06-07 16:45:30 +00:00
is 5653ebf6ef gspahextoc has been EOLed. 2002-06-07 12:00:10 +00:00
is cdb48f999d This isn't in use anymore - gspa can create initialized C arrays directly. 2002-06-07 11:42:28 +00:00
wiz 982dfd0a48 Xref mopcopy instead of mopa.out. Mark up AUTHORS section. 2002-06-07 11:23:55 +00:00
wiz cb8469b275 Xref elf(5). 2002-06-07 11:23:31 +00:00
wiz 5164e3e814 Xref mopcopy instead of mopa.out. 2002-06-07 11:23:19 +00:00
itojun d6bd155256 use arc4random 2002-06-07 00:45:46 +00:00
itojun 6cebe67965 avoid fd_set overrun. sync w/kame 2002-06-07 00:45:15 +00:00
itojun 8a4859803b remove unmaintained option (#ifdef FAITH4). sync w/kame 2002-06-07 00:20:45 +00:00
itojun 2ad320ffb1 void SEGV on freeaddrinfo(NULL) 2002-06-07 00:00:19 +00:00
thorpej 7d0a93d974 Rename mopa.out to mopcopy, since it handles more than a.out these days. 2002-06-06 23:00:56 +00:00
thorpej 63e6bdedae Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
2002-06-06 22:52:25 +00:00
itojun 2f7d82e63d support scoped IPv6 address properly. PR 16810. 2002-06-06 21:28:49 +00:00
itojun 8dbe673a81 add syslogd and rpcbind, which links to libwrap by itself
VS: ----------------------------------------------------------------------
2002-06-06 21:27:49 +00:00
fvdl d06e65a248 Use NLIST_ELF64 for x86-64. 2002-06-05 19:39:15 +00:00
christos 4062b8f15f PR/10566: Brian Stark: explicitly document all ipv6 options.
While I am there, fix dup {+,-}ipv6 description.
2002-06-05 13:12:05 +00:00
lukem 90028da4e1 Functionality improvements:
- Add `no' keyword, which can be used in the following ways:
	no file-system SOMEFS
	no makeoptions FOO
	no options OPT1[,OPT2[,...]]
	no pseudo-device somepseudo
  This turns off a previous file-system/makeoptions/options/pseudo-device
  entry for the same item.
  Grammar support for 'no device DEV at ATTACH' added, but not
  implemented yet.

Code changes:
- Convert many simple lists to TAILQs
- Convert prefix to SLIST
- Remove argument names from prototypes.
- Don't bother with custom alloc code for hashtables; just use emalloc()
  like everything else.
- Implement ht_remove(), to remove an entry from a hash table.
  Add removed entries to a freelist for later reuse.
- Don't selectbase() devices and pseudo-devices at definition time; instead
  do it at one pass after the config file has been parsed in fixdevis().
- Rename nvhead to nvfreelist; a more apt name...
- Minor code cleanups.
2002-06-05 10:56:17 +00:00
itojun 00a0a65271 on internal udp echoback service, reject request if source address is a
broadcast address.
2002-06-05 10:03:31 +00:00
itojun 47af351cc9 recover backward compatibility in -I behavior. sync w/kame 2002-06-03 19:27:39 +00:00
itojun d3583acf8c more KNF/nroff. from deraadt via kame 2002-06-03 04:41:34 +00:00
itojun b21f26fdc1 typo 2002-06-03 04:31:29 +00:00
itojun 016477e967 more posix-compliant arg parsing. sync with kame. help from deraadt 2002-06-03 03:34:36 +00:00
itojun 4bb986ded2 KNF, from openbsd via kame 2002-06-02 23:43:21 +00:00
wiz ce2e5815e6 Wording and grammar improvements. 2002-06-02 14:56:47 +00:00
itojun a3a7b3dc05 missing memset() for sockaddr. from deraadt 2002-06-02 13:47:02 +00:00
isaki 53175db820 Add x68k stuff. 2002-06-02 10:44:30 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
wiz aa912aee09 Sort SEE ALSO. 2002-06-01 09:21:21 +00:00
wiz eb6d65caac Widen tag for list. 2002-06-01 09:21:11 +00:00
grant 9210200e15 add usermgmt.conf man page.
user -e and -f now accepts "month day year" (ala chpass(1)) and
seconds-since-epoch.
correct man pages accordingly.
2002-06-01 06:28:06 +00:00
itojun 0c16d570ac no need for inetd_dummy variable. from openbsd 2002-06-01 03:41:33 +00:00
itojun 0062113f7e minor KNF 2002-06-01 00:32:41 +00:00
itojun 2dc34bbe40 cleanup main() by splitting it up in two. inspired by openbsd change 2002-06-01 00:28:52 +00:00
itojun 69c161be36 socklen_t cleanup. make MULOG code actually compile (is there anyone using
it?  otherwise, i'd like to nuke it)
2002-06-01 00:15:08 +00:00
itojun d816e24b39 avoid fd_set overrun. 2002-05-31 22:10:18 +00:00
itojun 559a9eafce strlcpy 2002-05-31 21:24:26 +00:00
christos 1d1ced8220 use setproctitle(3); from itojun. 2002-05-31 14:28:20 +00:00
itojun b31318e482 KNF, from openbsd via kame 2002-05-31 10:22:11 +00:00
itojun 83d7d548f9 sync with 3.7.1 (2002/5/31) 2002-05-31 09:45:44 +00:00
itojun 53ae45711d fail if the default class is larger than the ctl class.
report by Paul Civati <paul@xciv.org>
2002-05-31 06:53:48 +00:00
matt 5d837662a3 Use to htobe16, not htons 2002-05-31 05:54:36 +00:00
thorpej 8165e606cc d_namlen is a uint8_t, and thus will always be < MAXMANLEN + 1 (256),
so there is no need to assert it.
2002-05-30 18:16:41 +00:00
thorpej 617898cca8 Need <string.h> for strcmp() prototype. 2002-05-30 18:01:03 +00:00
wiz a16433eede Sort SEE ALSO. 2002-05-30 16:09:59 +00:00
wiz 565b0695e4 Add RCS Id, and drop a trailing space. 2002-05-30 16:07:59 +00:00
itojun 2cc8b1799d detect endianness correctly by using BYTE_ORDER. 2002-05-30 14:48:44 +00:00
itojun 2234e66e0e embed correct machine/machine_arch info into binary. PR 17103.
(fixes 1.18 -> 1.19 change)
From: Takeshi Nakayama <tn@catvmics.ne.jp>
2002-05-30 14:25:34 +00:00
agc 4e784ca27b Include <string.h> to get the prorotype for memset(3). 2002-05-30 12:52:29 +00:00
agc 7ad2a4aeb4 Include <string.h> to get the prorotype for memset(3). 2002-05-30 12:29:04 +00:00
agc 0bb4958e16 Cast the difference of two pointers to an int so that it can be compiled
on more esoteric architectures.
2002-05-30 11:45:02 +00:00
itojun ef188effbf strlcpy. rtm_seq is an int. use pidfile(3). sync w/kame via openbsd 2002-05-29 23:11:13 +00:00
itojun 1675bb6f17 more strlcpy. from openbsd via kame 2002-05-29 22:23:06 +00:00
christos d2b4e689bf more ### removal. 2002-05-29 21:47:35 +00:00
christos 24e2c85e3d grr, remove error ### 2002-05-29 21:47:08 +00:00
drochner fa2ebc9b56 add mscdlabel 2002-05-29 19:40:52 +00:00
drochner d923fb475a to complement my recent kernel changes: add a small tool to build a
disklabel (in-core one, of course) from a CD TOC, which is useful
to access previous sessions on a multi-session CD
2002-05-29 19:39:06 +00:00
christos db34dc6d9c new files 2002-05-29 19:07:12 +00:00
christos 2e3d854ebd Resolve conflicts. 2002-05-29 19:06:30 +00:00
christos 2aa61ebdb8 import pppd-2.4.1 2002-05-29 18:30:02 +00:00
wiz 0e143d0a98 Grammar improvements. 2002-05-29 14:48:49 +00:00
itojun cde8ec7d66 KNF, strlcpy, memory leak fix, random other cleanups. sync w/kame 2002-05-29 14:40:31 +00:00
wiz 8b32b6b12c Drop a space, and two grammar fixes. 2002-05-29 08:51:28 +00:00
itojun b09ce00be9 use new SIOCGIFINFO_IN6. random other cleanups. 2002-05-29 08:04:39 +00:00
christos d8b387a57b update resolv.conf if we have new nameservers. Don't require a domain, because
it is not needed.
2002-05-28 15:04:01 +00:00
grant 787bbf3204 fix typo 2002-05-28 04:39:08 +00:00
wiz c1c6716d11 Add man page for gspa(8). 2002-05-27 21:12:54 +00:00
wiz 988835347a Be consistent in where -c output is written. 2002-05-27 21:11:56 +00:00
wiz 27dda7204b Sort options in usage. 2002-05-27 21:11:41 +00:00
drochner 4b313df18b correct partition structure initialization for new union
(does someone share my inpression that this tool is useless?)
2002-05-27 16:39:29 +00:00
itojun c264025d4e grab max hlim/ttl from kernel via sysctl. sync w/openbsd 2002-05-26 14:45:43 +00:00
itojun 00c1d95307 typo in port number setting 2002-05-26 13:14:03 +00:00
itojun ef38c9fcf1 KNF and other cleanups. from openbsd via kame 2002-05-26 05:32:13 +00:00
wiz 0df8aade00 ANSIfy, and some KNF. Sort options in getopt-switch. Drop some unneeded
include files.
2002-05-25 14:46:01 +00:00
wiz a16dbed217 Sort options in man page, don't mention non-existing '-S' option,
use some more markup and improve existing one.
Sync usage() with man page.
2002-05-25 14:21:02 +00:00
wiz 13076c6ae6 Grammar fixes and a markup fix. 2002-05-25 14:07:09 +00:00
tron f1cf41859a Fix build problem caused by recent changes to "libwrap". 2002-05-24 11:29:40 +00:00
tron 23e50f2c66 Fix build problem caused by recent changes to "libwrap". 2002-05-24 09:57:25 +00:00
simonb c9e9cab056 We don't need the code to discard setgid privileges if we aren't setgid! 2002-05-22 13:12:27 +00:00
itojun 861f132ad1 use pidfile(3). sync w/kame 2002-05-21 23:35:18 +00:00
itojun 1b614e8939 minor sync w/kame (prototype location) 2002-05-21 23:16:39 +00:00
tsutsui 8157a94d99 Define and use both HOSTTOTARGET32() and TARGET32TOHOST() properly.
(just for consistency)
2002-05-21 16:49:19 +00:00
tsutsui 6734af58f9 NEWS_BOOT_BLOCK_OFFSET is now changed to 0, so use NEWS_BOOT_BLOCK_BLOCKSIZE
to allocate buffer to read LABELSECTOR.
2002-05-21 14:59:38 +00:00
itojun 313e584cb8 correct bitmask computation. more KNF. sync w/kame 2002-05-21 14:29:52 +00:00
itojun 33413b2866 KNF. a memory leak fix. sync w/kame 2002-05-21 14:22:05 +00:00
lukem 6a574a38b0 I made a mistake when converting Izumi Tsutsui's back-end to the shared
bbinfo.c module;  news* boot blocks occupy all of the first 16 sectors,
with a jump instruction to skip the label at bytes 64..511.
Replace news_clearboot() and news_setboot() callbacks with common
news_copydisklable() callback, and set bbinfo_params->offset to
NEWS_BOOT_BLOCK_OFFSET (which is now 0), and ->headeroffset to 0.

(Thanks to Izumi for picking this up; the perils of working on code at 2am)
2002-05-21 00:38:08 +00:00
wiz f02ecb7d7a No .Pp before section headers, and use .Nx instead of NetBSD in one place. 2002-05-20 20:24:49 +00:00
lukem d22f5cff9c - use uint8_t instead of char for boot block blobs
- bbinfo_params:
	- replace "int littleendian" with "bbinfo_endian endian"
	- add comments
- shared_bbinfo_clearboot():
	- add callback method to shared_bbinfo_clearboot()
	- don't clear from 0..headeroffset; use a callback to do that
- add news68k and newsmips support.
  From Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>, with a rework by me to
  take advantage of the new shared_bbinfo_clearboot() callback.
  (XXX: untested yet)
2002-05-20 16:05:26 +00:00
lukem ba66837514 more cosmetic tweaks 2002-05-20 15:04:25 +00:00
lukem a59ed8d893 cosmetic tweaks 2002-05-20 14:56:10 +00:00
lukem 2a775954a9 - clean up display of supported machines & fstypes to ensure that last
column gets a trailing "," if there's more entries to come.
- if getmachines() or getfstypes() is called with 3 NULL params, just
  print the list of supported items.
- in usage(), call getmachines() and getfstypes() with 3 NULL params.
  (i got sick of typing "installboot -m asdf" to get a list of
  supported machines during testing :)
2002-05-20 14:38:38 +00:00
wiz 01ff6324be Make ngroups, which is the size of a static array, static too. From
Todd Miller in bin/16871.
2002-05-19 17:38:36 +00:00
lukem b4c170fd08 Enable sun3, using same sun68k backend as sun2.
XXX: sun3 port still needs to be cut over to using sun68k bootxx...
2002-05-17 17:42:36 +00:00
wiz 9e98569eee Space before comment after #endif. 2002-05-16 19:57:22 +00:00
wiz 6e749bff5c Comment out token after #endif. 2002-05-16 19:48:18 +00:00
wiz 77c1358a2b Remove superfluous #endif. bin/16840 by der Mouse. 2002-05-16 09:55:50 +00:00
lukem 86dee8f439 Set pmBootSize of the block 2 applepartmapentry ("NetBSD Partition")
to roundup(size-of-bootxx, 512) instead of hardcoding it to 1024.

(Gets the new boot floppy working slightly further - still broken tho)
2002-05-16 01:35:44 +00:00
lukem a6fac9a778 ensure that members of apple_drvr_map and apple_part_map_entry are big endian 2002-05-15 15:43:01 +00:00
lukem 4ee46bcf79 advertise macppc support. other tart-ups 2002-05-15 13:39:22 +00:00
lukem 2b7c014c1c add setboot callback to write the Apple partition map 2002-05-15 13:38:42 +00:00
lukem 1d0ec965d1 don't print a warning if the callback failed; rely upon the callback
to do that for us.
2002-05-15 13:34:27 +00:00
lukem bc6c7991bf add missing prototype for static function 2002-05-15 09:58:19 +00:00
lukem 35749caf16 bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).
2002-05-15 09:56:59 +00:00
lukem 966b42a3e6 bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).
2002-05-15 09:44:54 +00:00
martti 592f55864b Include user's PATH (pkg/16828 by HAMAJIMA Katsuomi) 2002-05-15 08:17:56 +00:00
lukem 932b752477 - add fsstat (fstat(2) on fsfd) and s1stat (fstat(2) on s1fd) in ib_params,
and use instead of replicating the effort in various locations
- if filesystem is not a regular file, use sync(2) instead of fsync(2)
  after the bootstrap has been written
- move <sys/stat.h> and <stdint.h> into "installboot.h"
2002-05-15 02:18:22 +00:00
lukem f3c2131045 - add fsstat (fstat(2) on fsfd) and s1stat (fstat(2) on s1fd) in ib_params,
and use instead of replicating the effort in various locations
- if filesystem is not a regular file, use sync(2) instead of fsync(2)
  after the bootstrap has been written
2002-05-15 02:17:06 +00:00
lukem 714021421e `-b bno' isn't supported. (sync with similar fix in arch/sparc.c) 2002-05-14 15:29:50 +00:00
lukem 1279ab0cf5 pull in <sys/bootblock.h> in "installboot.h" instead of in arch/*.c
(and remove <dev/dec/dec_boot.h>, since <sys/bootblock.h> has that stuff now)
2002-05-14 06:40:32 +00:00
lukem 1bdd92ee90 user visible stuff:
- add `-B s2bno', to provide the starting block for the secondary bootstrap.
  intended for use on platforms where the blocks of the stage2 bootstrap
  are hardcoded into the stage1 bootstrap (currently: sparc, sun2)
- don't support `-b s1bno' for sparc or sun2, since the primary is always
  at a fixed location on the disk.
- if `filesystem' is a regular file, use fsync(2) instead of sync(2)

code changes:
- add hardcode_stage2(), which uses -B s2bno and the size of the
  provided secondary bootstrap (as an actual file, not as part of the
  `filesystem' argument) to provide a sequential list of blocks from s2bno,
  each block being the appropriate file system size (from
  params->fstype->blocksize)
- add blocksize and needswap run-time parameters to ib_fs
- in *_match(), set params->fstype->blocksize to the underlying block size
  (8KB for raw), and params->fstype->needswap as appropriate
- rename IB_STARTBLOCK to IB_STAGE1START, and add IB_STAGE2START
- use hardcode_stage2() to implement raw_findstage2() and IB_STAGE2BLOCK
  support for ffs_findstage2()
- improve some comments, add some prototypes, ...
2002-05-14 06:18:50 +00:00
scottr 6cd097bc12 Pack the RMP packet layout definitions -- with ELF, 32-bit words
are by default aligned on 32-bit boundaries. Update a semi-related
comment with this info.
2002-05-14 04:58:56 +00:00
martti 53761afc9a Run /etc/postinstall if it's found 2002-05-13 12:43:16 +00:00
martti 67c70b98e1 ipf regression tests are in regress/sys/kern/ipf 2002-05-13 06:35:47 +00:00
itojun c68a2428ba correct handling of "unique" policy. bump version to 20020507
(corresponds to filename in ftp://ftp.kame.net/pub/kame).
2002-05-13 02:10:34 +00:00
agc 9dd6d667fa Only define DEF_LOG_DIR if it's not already set. 2002-05-10 13:17:57 +00:00
itojun fd53f7c428 drop support for rsh/rlogin relaying.
use of .rhosts authentication should be discouraged with relaying service.
sync w/kame
2002-05-09 14:24:03 +00:00
pk a4a641e5be Stop directory entry search if d_reclen == 0. 2002-05-07 12:22:23 +00:00
lukem 1b44564120 sparc now has a back-end 2002-05-06 23:18:20 +00:00
pk efad6f6e12 Add sparc module. 2002-05-06 16:24:45 +00:00
lukem e427ebdd56 s/bootinfo.h/bootblock.h/ 2002-05-06 13:34:18 +00:00
lukem 3efe6f707b add missing "sys/". noted by Martti Kuparinen <martti.kuparinen@iki.fi> 2002-05-06 12:16:55 +00:00
lukem 5123a119e3 replace <dev/sun/sun_boot.h> with <sys/bootinfo.h> 2002-05-06 05:28:30 +00:00
lukem b0dfae0396 document what uses the optional secondary arg. add sun2 example 2002-05-06 02:30:28 +00:00
lukem ce61e6de03 - sanity check bbi_block_count determined from bbinfo
- use warnx() instead of warn() in a couple of places
2002-05-06 01:49:48 +00:00
agc 0a602aa3de Handle multiple ranges on the command line and in the defaults file,
based on some code from Todd C.  Miller, which in turn was based on a
patch from Brian Poole <raj@cerias.purdue.edu>.

Look first in any uid ranges specified on the command line, in the order
they were given on the command line, and then in any ranges specified in
the defaults file.

With thanks to Brian for nudging me a number of times to fix this.
2002-05-03 10:31:14 +00:00
agc 2de2bc02d6 Fix for skeleton directory changes to defaults file from Brian Poole
<raj@cerias.purdue.edu>

Previous behaviour as follows:

# useradd -D -k /foo/bar
group           users
base_dir        /home
skel_dir        /foo/bar
shell           /bin/csh
class
inactive        0
expire          Null (unset)
range           10200..10300
range           10600..10700
# useradd -D
group           users
base_dir        /home
skel_dir        /etc/skel
shell           /bin/csh
class
inactive        0
expire          Null (unset)
range           10200..10300
range           10600..10700
2002-05-03 10:11:16 +00:00
agc 3db3295859 Fix from Brian Poole <raj@cerias.purdue.edu> for improper handling of
UID ranges. Previous behaviour is demonstrated below...

# useradd -D
group           users
base_dir        /home
skel_dir        /etc/skel
shell           /bin/csh
class
inactive        0
expire          Null (unset)
range           10200..10300
# useradd -D -r 10200..10300 -r 10400..10500
# useradd -D
group           users
base_dir        /home
skel_dir        /etc/skel
shell           /bin/csh
class
inactive        0
expire          Null (unset)
range           10400..10500

The second command should have put 2 ranges back into the config file,
but it really only put one because the first range on the command line
was marked as a duplicate (but when it got to writing the config file,
it only wrote command line ranges, so the 10200 got skipped).  Fix
this by initializing defrc to 0 and then only looking after defrc for
duplicate ranges.
2002-05-03 10:05:28 +00:00
agc 00ee66cd54 Modifications from Brian Poole <raj@cerias.purdue.edu>, via OpenBSD:
+ if the cd built-in fails, don't try to copy the directory hierarchy
  with pax - s/;/&&/ in a shell command
+ clean up after ourselves if a rename fails - remove the newly-created
  group file.
2002-05-03 08:07:02 +00:00
lukem 6206a1d7eb remove commented out debug printf() accidentally committed in the last rev.
noted by YAMAMOTO Takashi<yamt@mwd.biglobe.ne.jp> in private email.
2002-05-02 13:53:10 +00:00
lukem 033fe17be5 tweak asserts 2002-05-02 13:03:32 +00:00
lukem 80ae5fb69d implement "raw" file system type. this can be used when the primary
bootstrap is being installed at a particular block offset and the underlying
filesystem doesn't matter (e.g, alpha ustarboot in ustar floppies)
2002-04-30 14:45:12 +00:00
lukem d9e55fca47 display sector start & count in decimal rather than hex 2002-04-30 14:24:33 +00:00
lukem 1a478e4092 add some more assert()s 2002-04-30 14:21:17 +00:00
lukem fa2a19276b consistently use sizeof(bb) instead of SUN68K_BOOT_BLOCK_MAX_SIZE 2002-04-29 13:07:41 +00:00
lukem 8feb052770 s/_SRC_TOP_/NETBSDSRCDIR/ 2002-04-26 16:23:14 +00:00
itojun cd1e16de59 upgrade to KAME racoon as of 2002/4/26.
file descriptor leak fix.
null encryption algorithm key length fix (should use 0).
couple of null-pointer reference fixes.
set port # to 500 in ID payload (possible interop issue - spec is unclear).
correctly match address pair on informational exchange
2002-04-26 02:25:13 +00:00
tv 4887cf3412 HAVE_CONFIG_Hize. Also get *_boot.h from "../../sys/" when HAVE_CONFIG_H,
rather than creating more stubs.
2002-04-25 18:11:53 +00:00
atatat 29bf0c2821 Implement CRON_TZ and CRON_WITHIN to provide finer control over job
execution.  CRON_TZ sets the time zone within which a job is
considered for execution (but not in which it runs), and CRON_WITHIN
allows jobs to be skipped whose execution is delayed for any reason
(eg, the system was sleeping or the load average is too high for
timely execution).
2002-04-25 14:45:05 +00:00
itojun 3f18342704 handle ECONNABORTED at accept(2). correct error handling for connect(2)
sync w/ kame
2002-04-24 12:14:42 +00:00
lukem 2c1cfc8e8c - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
  from being useful (and given that every other variable can be
  extracted using make -V, the behaviour was unusually inconsistent
  given that the original reason for clearing it doesn't seem to be
  relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
  (and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
2002-04-24 08:18:45 +00:00
lukem 2fddf94b34 convert from "sun68k_bbinfo.h" to <dev/sun/sun_boot.h> 2002-04-24 01:35:25 +00:00
hubertf 19f6d0bbcb Add more error checking, and tell the user what's up when he runs
into descriptor-shortage. Can be caused when installing deeply-nested
binary pkgs like kde.
2002-04-23 10:14:59 +00:00
lukem 1608f561f2 after consideration, don't bother with compat symlinks, as it might
cause end-user confusion if the syntax changed between
/usr/mdec/installboot and /usr/sbin/installboot
2002-04-23 02:39:33 +00:00
bjh21 1723b1333c When printf'ing a size_t, cast it to unsigned long and use a %lu format.
This gets rid of a warning when compiling for ARM.
2002-04-22 23:24:10 +00:00