Commit Graph

5343 Commits

Author SHA1 Message Date
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