Commit Graph

6097 Commits

Author SHA1 Message Date
wiz 83de4abed2 Use "its" instead of "it's" where appropriate.
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
wiz 66793552fe Fix two typos, from Igor Sobrado in PR 20722. 2003-03-15 22:30:37 +00:00
hubertf 89b4984304 Catch one more place that could result in Current not being set properly
(and thus in the execution of "rm -fr /") if ^C is pressed at the wrong time.

See also PR 19436.
2003-03-15 20:54:25 +00:00
agc 9d52ce445c Bump version string for pkgdb_dump changes. 2003-03-15 20:50:13 +00:00
agc 2c442ad8d2 Introduce a pkgdb_dump() function, which dumps the cache file of
(filename, package) pairs.

Modify calling functions to use pkgdb_dump() directly, rather than
sequences of
	pkgdb_open
	{ pkgdb_iter, pkgdb_retrieve }
	pkgdb_close
calls.

Remove the now unnecessary pkgdb_iter function.
2003-03-15 20:49:25 +00:00
wiz 37a402fc28 IPv4/IPv6, not IPV4/IPV6. 2003-03-15 19:26:08 +00:00
wiz 46ebb6111a Correct spelling of "overridden". Found in follow-up to PR 20718. 2003-03-15 19:24:02 +00:00
christos c2b5bf99ef PR/15142: Kevin P. Neal: cron does not pay attention to login_cap(3)
I simplified the patch addressed certain security concerns. I only
allowed setusercontext() to set resource limits/priority and umask,
because these are the values that are relevant from login.conf. The
rest of the settings (uid/gid/initgroups) should be done using e->uid
and e->gid like they were before, not from:

	struct passwd *pwd = getpwnam(getenv("LOGNAME"));

Finally login_cap's (path/env) are irrelevant in this context since
we want to use our e->envp anyway to execute the command.
2003-03-14 21:56:07 +00:00
itojun 626b1896ed correct use of sizeof 2003-03-14 18:43:52 +00:00
itojun b34ce1c186 add missing ND option length validation. from kame 2003-03-14 18:32:42 +00:00
jrf 151509e229 This addresses PR 20156. isalnum(), isdigit() and isspace() are used with
char as a parameter. On platforms with char signed by default, those are wrong.
Thanks to Christian Biere christianbiere@gmx.de for the patch he supplied.
I tested the patch and agc approved it for commit.
2003-03-14 16:56:39 +00:00
yamt 3f4a2b19c2 fix a typo in the previous. 2003-03-14 14:10:00 +00:00
yamt c5c265a7aa use strlcpy instead of strncpy. 2003-03-14 14:08:44 +00:00
yamt f947a8c4c1 use LIST_FOREACH macro. 2003-03-14 14:03:00 +00:00
yamt 44f53bece1 for fork'ed children, use _exit instead of exit. 2003-03-14 13:53:08 +00:00
yamt 3337a32246 - protect from pid reusing.
- fix a null dereference on the error.
2003-03-14 13:46:23 +00:00
thorpej 0164fc61c8 We don't actually need libutil when building as a hostprog. 2003-03-13 04:50:53 +00:00
lukem e5f384735d support 1234 and 4321 as valid byte-order arguments for -B 2003-03-10 10:02:58 +00:00
wiz 97808774c1 Restore RCS Id, lost during last update. 2003-03-09 17:57:50 +00:00
mjl b0d37030cd Revert previous changes. Add a comment to the source explaining the
reason things are as they are -- Perry said:
This (using err("mailwrapper")) is intentional. Mailwrapper plays ugly
games with argv[0] and thus it is often difficult for people to know
that the error isn't from "mailq" or "sendmail" but from
mailwrapper -- having mailwrapper add an indication that it was really
mailwrapper running was a requested feature.
2003-03-09 08:10:43 +00:00
christos a9085b5c40 disable YP and HESIOD in config.h, and mention why... (thanks uwe) 2003-03-09 01:55:48 +00:00
christos 37deef3cda adjust to 6.1b2 2003-03-09 01:36:38 +00:00
mjl f20e680162 Correct args to err(), no need to include "mailwrapper:" prefix manually.
Triggered by posting to OpenBSD mailing list.
2003-03-08 22:57:51 +00:00
perseant af18198dff Add option to check partial-segment data checksums. 2003-03-07 22:50:09 +00:00
fvdl c6fc01f541 Use both -I. for generated .h files, and -I${.CURDIR} for include "foo" 2003-03-07 01:31:30 +00:00
fvdl 2130087152 This seems to need a -I${.CURDIR} these days. 2003-03-07 01:06:05 +00:00
martin 5005fdb656 Run "arrival" scripts too in the inital pass on startup.
Open the routing socket before this pass to close a small window where
we would miss messages at startup (and get state kept by the scripts
out of sync).
Patch supplied by KOIE Hidetaka in private mail.
2003-03-06 13:33:29 +00:00
wiz 54ad96333d Build map-mbone, mrinfo, mrouted, and mtrace from usr.sbin again instead
of gnu/usr.sbin, now that the license has been cleared.
2003-03-05 22:09:07 +00:00
wiz 22c010e66d Update license, from OpenBSD. 2003-03-05 22:04:59 +00:00
wiz e6f08c9f93 Move back here from gnu/dist/mtrace now that mrouted license is cleared. 2003-03-05 22:02:03 +00:00
wiz 9aeb2c2f6a Add license, from OpenBSD. 2003-03-05 21:59:59 +00:00
wiz ba718fd8b9 Move back here from gnu/dist/mrinfo now that mrouted license is cleared. 2003-03-05 21:58:20 +00:00
wiz d67d82e27f Add license, from OpenBSD. 2003-03-05 21:56:26 +00:00
wiz b22b38318c Move back here from gnu/dist/map-mbone now the mrouted license is cleared. 2003-03-05 21:55:51 +00:00
wiz 7f3982ff72 Add RCS Id; new sentence, new line; at least one mdoc fix; sort sections. 2003-03-05 21:48:59 +00:00
wiz 6b7e50194b mdocified man page from mpech@openbsd.org 2003-03-05 21:40:08 +00:00
wiz 2dd997ff9e ANSIfy one more. 2003-03-05 21:32:51 +00:00
wiz ff2bebb731 Use vsnprintf instead of vsprintf. From OpenBSD. 2003-03-05 21:15:18 +00:00
wiz b4cca63351 Add license (from Xerox), from OpenBSD. 2003-03-05 21:12:26 +00:00
wiz f74dd12ce6 License update from Stanford, via OpenBSD. 2003-03-05 21:07:14 +00:00
wiz c60d41a9de Move back from gnu/dist/mrouted, now that it's available under a BSD
license.
2003-03-05 21:05:38 +00:00
jmmv fc6e93306c Make the global XConsole variable static. 2003-03-05 10:51:43 +00:00
martin 549d82b84d Add support for watching coming/going pccard interfaces.
Patch from KOIE Hidetaka in PR bin/20584.
2003-03-05 09:03:49 +00:00
jmmv b74771a131 Create a pidfile while running (which can be tuned with the new "pidfile"
configuration variable). Ok'ed by christos.
2003-03-04 22:31:15 +00:00
jmmv 2ea5d53fe3 Avoid writing things to the fifo if it was not opened. 2003-03-04 19:43:09 +00:00
jmmv 73b21378a4 Check if configuration data exists before freeing memory. 2003-03-04 19:28:59 +00:00
jmmv 1d2af97bbf Remove trailing whitespace. 2003-03-04 17:16:15 +00:00
jmmv ba49f26643 Configuration file is optional, as well as sections inside it. 2003-03-04 14:38:25 +00:00
jmmv 68e2c80483 Add support to parse a configuration file, /etc/wsmoused.conf by default.
This file lets users tune the behavior of the daemon in a easy way, without
having to mess with command line options (nor in rc.conf).
It will also simplify future integration of new functionality within the
program as multiple "modes" of operator are recognized.
The new wsmoused.conf(5) manpage contains all related details.

Some error message cleanup and minor manpage fixes too.

Ok'ed by christos.
2003-03-04 14:33:55 +00:00
martti f925d156c3 Checksum files produced by "etcupdate -a" should not be stored in /etc
as / might be a read-only filesystem (PR#20201).
2003-03-03 14:07:11 +00:00
wiz 7be6adb676 Bump date for mini-sendmail reference; add its pkgsrc path to SEE ALSO section. 2003-03-03 07:28:29 +00:00
mrg 5de60e100f allow /etc/etcupdate.conf (and ~/.etcupdate.conf) to set IGNOREFILES to a list
of files that etcupdate will ignore; never considering them for updating.
2003-03-01 12:59:54 +00:00
enami 70378aeac7 - Account the number of lines consumed so that -xw displays header
frequently enough.
- As we are initializing dk_select to 0 (via dkinit), no need to check it.
- Re-order the code in display() to highlight the fact that -x is
  exclusive with others.
- If user really specified some drives and none of them are found,
  just bail out rather than falling back to default behaviour.
- Other misc. cosmetic changes while I'm here.
2003-03-01 07:40:58 +00:00
enami 51a7567d63 Sync with the behaviour change. 2003-03-01 07:35:41 +00:00
christos d0ee51001e PR/20435: KOIE Hidetaka: iostat -x ignores drive selection. 2003-03-01 05:38:11 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz b517ab4402 .Nm still needs "". 2003-02-23 23:40:47 +00:00
perseant 8685c52d63 Make the "-O" (start filesystem offset) flag to newfs_lfs work correctly,
and update fsck_lfs and dumplfs to deal with it.  Note that while the argument
to -O is given in disk sectors, it must be a multiple of the fragment size,
and although it can be lower than the label or superblock, it can't intersect
either.
2003-02-23 04:32:05 +00:00
martin 89fe22c05c Not all size_t's are equal to int... 2003-02-21 07:23:43 +00:00
simonb aeb8d0ecad Show the address of segment 0. 2003-02-21 04:01:07 +00:00
christos c837eea5e5 - pass lint
- use size_t where appropriate
- use err/warn instead of printf, and don't hide the error messages from ioctl.
- keep units in sync (someone added integer in the header file and forgot
  to update envsys.c)
2003-02-20 20:57:08 +00:00
dsl c17244d768 Create session before setting logname - we don't want to change the
parents logname (or any other children pre-empted in that window).
2003-02-19 09:21:15 +00:00
perry 399b25deea Clarify a bit, fix up the examples somewhat, etc. 2003-02-18 02:17:38 +00:00
perseant b397c875ae Add code to UBCify LFS. This is still behind "#ifdef LFS_UBC" for now
(there are still some details to work out) but expect that to go
away soon.  To support these basic changes (creation of lfs_putpages,
lfs_gop_write, mods to lfs_balloc) several other changes were made, to
wit:

* Create a writer daemon kernel thread whose purpose is to handle page
  writes for the pagedaemon, but which also takes over some of the
  functions of lfs_check().  This thread is started the first time an
  LFS is mounted.

* Add a "flags" parameter to GOP_SIZE.  Current values are
  GOP_SIZE_READ, meaning that the call should return the size of the
  in-core version of the file, and GOP_SIZE_WRITE, meaning that it
  should return the on-disk size.  One of GOP_SIZE_READ or
  GOP_SIZE_WRITE must be specified.

* Instead of using malloc(...M_WAITOK) for everything, reserve enough
  resources to get by and use malloc(...M_NOWAIT), using the reserves if
  necessary.  Use the pool subsystem for structures small enough that
  this is feasible.  This also obsoletes LFS_THROTTLE.

And a few that are not strictly necessary:

* Moves the LFS inode extensions off onto a separately allocated
  structure; getting closer to LFS as an LKM.  "Welcome to 1.6O."

* Unified GOP_ALLOC between FFS and LFS.

* Update LFS copyright headers to correct values.

* Actually cast to unsigned in lfs_shellsort, like the comment says.

* Keep track of which segments were empty before the previous
  checkpoint; any segments that pass two checkpoints both dirty and
  empty can be summarily cleaned.  Do this.  Right now lfs_segclean
  still works, but this should be turned into an effectless
  compatibility syscall.
2003-02-17 23:48:08 +00:00
is ca86df3f7e Actually make additional arguments in mailer.conf useful, and document
them.
Reviewed by perry and wiz.
2003-02-17 21:18:46 +00:00
drochner 2b294580b8 add copyright notices 2003-02-17 20:07:06 +00:00
tron 62c4d50f34 Because signals are delivered synchronously via kqueue(2) there is no
reason to block and release them at various places.
2003-02-16 18:16:26 +00:00
tron 39e99fe8e3 Now that signal handling is done via kqueue(2) we need to enter
the event loop even if no sockets were created. This should fix
PR bin/20369 by Martin Husemann.
2003-02-16 17:57:34 +00:00
grant 806593a806 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 16:11:34 +00:00
tron 726769ad02 Improve kqueue(2) utilization:
- Don't invoke kevent(2) for every single event change. Instead collect
  event changes and try to do them in the event loop.
- Handle signals via kevent(2) to avoid race conditions for SIGHUP (which
  probably exist in the select(2) based implementation, too).
2003-02-13 11:47:27 +00:00
christos 50455a9139 PR/20318: Johnny Billquist: rwhod does not compile with -DDEBUG 2003-02-12 17:49:35 +00:00
tron d289c0d46f KNF. 2003-02-12 10:03:47 +00:00
tron 8be719490d Rewrite inetd(8) to use kqueue(2) for enhanced performance and scalability. 2003-02-12 08:52:03 +00:00
christos 3e354b00a7 ufs is ffs not ufs. 2003-02-11 16:17:13 +00:00
mrg 3b06b649fe revert previous 2003-02-11 00:45:02 +00:00
mrg dcd2b71575 no need for "pstat -T" to copyout() the entire vnode list , which can
take a Long Time on systems with large numbers of vnodes.
2003-02-10 23:58:27 +00:00
augustss 889cc758e5 Make this compile on non-NetBSD machines. 2003-02-05 22:47:38 +00:00
perry 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
martti 18e623daf9 Use md5 instead of sum (bin/20196). 2003-02-04 08:33:03 +00:00
thorpej 9abf2fa449 Update for callout changes, and show TCP timers in relative, rather
than absolute ticks.
2003-02-04 01:22:08 +00:00
thorpej a2ca4434b0 Test CALLOUT_PENDING, not CALLOUT_ACTIVE. 2003-02-04 00:20:50 +00:00
agc 7cb1f145f5 Add a check for the length of the login name given by the user.
Provided by Ben Collver in PR 20154
2003-02-03 12:20:46 +00:00
abs e6dc31f0dc Crank PKGTOOLS_VERSION to 20030202 for last_file fix 2003-02-02 20:54:17 +00:00
abs fd83215c8b Allow '%D' to be used when no last_file available. Fixes binary package
installation of gnome-dirs.
2003-02-02 12:59:53 +00:00
wiz cd68fb44fb guarantee, not guarentee. Idea from miod@openbsd. 2003-02-02 10:24:38 +00:00
christos acc1cc5b41 undo mallocvar.h change! 2003-02-02 02:25:50 +00:00
tron 083ed45586 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 21:05:54 +00:00
wiz b7e50f132b Make '?' work in interactive mode. Fixes PR bin/19949 by Christian Biere. 2003-02-01 17:13:14 +00:00
wiz 69ffc10a99 Switch soft and hard, per PR 20135. 2003-01-31 12:53:32 +00:00
wiz 9115df8c49 success, not sucess. Noted by mjl. 2003-01-28 22:35:02 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
mrg ab09fc008e make this build on alpha after daddr_t->64bit 2003-01-28 08:22:08 +00:00
mrg a1f69dd514 make this build on alpha after daddr_t->64bit 2003-01-28 07:44:54 +00:00
thorpej a151e17b89 Allow pseudo-devices to be declared with an interface attribute. For
such pseudo-devices, create cfdrivers for them which carry the appropriate
attributes.  This allows devices in the config file to be attached to
pseudo-devices.
2003-01-27 05:00:54 +00:00
uwe 85b406eda9 s/ulong/unsigned long/. ulong is for SysV compatibility, there's no
point in using it in our code.  This change makes makefs(8) compile on
host systems without ulong.
2003-01-27 01:34:09 +00:00
uwe 59e06de8b5 When built as a host tool, don't search /dev as we only use sunlabel
on the disk image.  This ifdefs out a call to getrawpartition() so we
don't have to provide a compatibility replacement for it.
2003-01-27 01:29:06 +00:00
christos c5011d1086 PR/20065: John F. Woods: Fix pluggin compilation 2003-01-26 17:34:19 +00:00
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
wiz e92b96aa79 grammar fix. 2003-01-24 13:08:22 +00:00
martti c7d6e073eb Add a new -a flag (automatically update files which have not been
locally modified). Patch provided by Sverre Froyen in a private mail,
slightly modified by me.
2003-01-24 13:06:06 +00:00
gehenna c8d83dee30 Accept the block-device-only devices.
Reported by ragge.
2003-01-23 15:05:45 +00:00
gehenna d0c0162e9c Not necessary to put fixdevmtab in global section. 2003-01-23 15:03:44 +00:00
gehenna 02681cddbc check the duplication or the inconsistency before evaluating fopts. 2003-01-23 15:01:54 +00:00
gehenna 27e67caceb reject the duplication of the same device-major lines. 2003-01-23 14:57:40 +00:00
gehenna 2c4d3430fb fix typo. 2003-01-23 14:55:39 +00:00
jmmv 4c30a46c79 Fix typo in first form synopsis: -k does not require -r. Okay'ed by wiz. 2003-01-22 20:50:47 +00:00
itojun 9c298b2da2 sysctl/setsockopt takes int, not u_long. 2003-01-21 09:15:54 +00:00
itojun 8a8d344fd5 fix arg size to IPV6_UNICAST_HOPS socket option. Hiroki Sato 2003-01-21 07:55:17 +00:00
simonb d7b879c6ec Grrr. So much for my ability to use grep(1) effectively. Pointed out
by Stephen Degler in private mail.
2003-01-20 07:12:12 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
simonb 46f45ff547 KNF- blank line at start of a function with local variable declarations. 2003-01-20 01:14:35 +00:00
atatat dd0a8acd21 The next release will be 2.0, not 1.7. 2003-01-19 21:25:36 +00:00
wiz 1abdd319af No trailing whitespace, please. 2003-01-19 00:13:21 +00:00
jrf bf7aac421e Added -v extension. Approved by Klaus (kleink). 2003-01-18 18:37:07 +00:00
kleink b3df6303a9 Rename `sigset' locals to avoid symbol shadowing warning. 2003-01-16 09:38:37 +00:00
mhitch e7852b0563 Add support for amiga. 2003-01-15 06:33:13 +00:00
augustss 9ef59a8538 Flush stdout before callong daemon(). Fixes bin/19657. 2003-01-12 13:49:54 +00:00
christos 1748ad5426 fix usage [add -r] 2003-01-11 23:44:47 +00:00
agc 17a35e2e99 Introduce the notion of "preserving" an installed package.
A preserved package may not be deleted by pkg_delete(1) (unless the -f
option is given), and the preserved capability will be carried into
any binary package. pkg_add(1) will also keep the preserved capability
if it was present in the binary package.

The "preserve" capability can be given to a package by using the
PKG_PRESERVE definition in a package Makefile in pkgsrc.

Ride on the recently-bumped lib/version.h for new functionality.
2003-01-10 11:55:44 +00:00
agc 51ace543e3 Order the getopt(3) options alphabetically. 2003-01-10 10:55:25 +00:00
agc 295b90edfd order the getopt options alphabetically. 2003-01-10 10:43:50 +00:00
agc 82e88920e0 Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).
Bump lib/version.h due to added functionality.
2003-01-10 10:17:21 +00:00
taca eb37d628b3 Fix compile error with DEBUGMAIN. 2003-01-07 15:04:54 +00:00
tron 7c891035f6 Use "%u" instead "%d" in format string for bytes count reported at
termination. This should fix PR bin/19713.
2003-01-07 09:02:21 +00:00
christos 4a51bd3d7b update for struct renaming; noticed by David Laight. 2003-01-06 15:23:11 +00:00
hubertf 6824dad608 fix english 2003-01-06 14:43:01 +00:00
wiz c053751628 compatibility, not compatiblity. 2003-01-06 13:26:24 +00:00
wiz 45ad5c9584 successful with only one l. 2003-01-06 12:46:05 +00:00
wiz 5a91827c81 through, not throught. 2003-01-06 12:29:48 +00:00
wiz 7d667a5da9 Stanford, not Standford. From Chad Loder. 2003-01-06 12:18:02 +00:00
agc 60c7c151cc In pkgdb_remove(), use the return value from (*db->del), rather than
explicitly setting and checking errno.

Do some CSE in pkgdb_iter().

Use the db access functions in the proper manner.
2003-01-06 10:03:44 +00:00
thorpej 7ee41d4310 Need to -I${RPC_XDIR} now, since we don't generate the .h file
locally anymore.
2003-01-06 02:26:53 +00:00
christos cee2d9b418 exit 0 when -r 2003-01-05 22:16:22 +00:00
agc 9d61d2fff1 Add an enumerated type which is used in pkgdb_open() to specify
read-only or read-write mode.

Modify the return value of pkgdb_open() to have a more logical boolean
value.
2003-01-05 21:49:51 +00:00
agc 1b535c4ef0 Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and
errx(3).

Plug a memory leak by modifying the signature of
_pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that
buffer and return it.
2003-01-05 21:27:20 +00:00
sommerfeld 8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
pooka 732f4c9fa5 Add ${MACROS} to ${ROFF} usage to make output readable
from jbernard@mines.edu in misc/19685
2003-01-05 12:24:22 +00:00
chris 8eae0df210 Update -r option to display data in correct units, IE temperature in degC or
degF, fan speed is now correct, and indicators will now show ON/OFF.
2003-01-05 01:56:42 +00:00
lukem 9e74ffcba8 Change default permissions of newly created directories from
"0700, modified by umask", to "0777, modified by umask".
This matches the behaviour of mkdir(1) and just about every other command...

This change is useful when running with '-W', where the mode of the
new directory won't be changed to what's specified in the specfile.
(I.e, an UNPRIVED build, with a umask of 022).
2003-01-04 13:10:52 +00:00
wiz 79ebccc3b5 Sync SYNOPSIS with DESCRIPTION. From Igor Sobrado in PR 19654. 2003-01-04 01:10:47 +00:00
uwe 045242f27d Restore changes made in revision 1.20 and lost during last upgrade.
We pass HAVE_MAP_{NIS,HESIOD} on the command line, based on
USE_{YP,HESIOD} make variables, so #if 0 them here.
2003-01-03 14:07:56 +00:00
takemura bb756166c0 Used ioctl command WSMOUSEIO_GETID to identify touch panel device. 2003-01-03 04:41:49 +00:00
augustss 167e6beba4 Add -r to synopsis. 2003-01-02 14:01:30 +00:00
wiz 8b0cfb2d8e New sentence, new line. Bump date for -r description. 2003-01-02 13:55:29 +00:00
augustss 532c81c75d Document the -r flag. 2003-01-02 11:55:52 +00:00
jschauma 432d470724 Fix typos pointed out by Igor Sobrado in PR misc/19621. 2003-01-02 00:22:29 +00:00
augustss 9381d1a428 Include <paths.h> 2003-01-01 12:16:40 +00:00
augustss a57c1af9e5 ANSIfy. 2003-01-01 12:14:21 +00:00
explorer 0c77fcf312 add ENVSYS_INDICATOR and ENVSYS_INTEGER types 2002-12-31 05:27:29 +00:00
jmmv 5968c8244d Fix a typo in the yesno() function: add a missing question mark.
Approved by martti.
2002-12-27 19:47:43 +00:00
grant 653b2f1552 File types belong under 'type', not 'uname'. 2002-12-27 06:31:51 +00:00
itojun b1a19ea0e1 debugging log message committed by mistake (rev 1.8). catched by lukem 2002-12-26 14:11:28 +00:00
jmmv 0a970e7423 Add a new flag, -l, which swaps mouse buttons; this is useful for left
handed users.

Patch provided in my own PR bin/19143 with some minor changes as suggested
by wiz.
2002-12-25 19:13:53 +00:00
jmmv c29a82ed73 Fix a bug that caused the program to enter an infinite loop when selecting
an empty line.

This closes my own PR bin/19160. Reviewed by wiz.
2002-12-25 19:04:27 +00:00
lukem 3cbfaf0af4 Add -C, which dumps the specification with the full path name first,
and then all the other fields.  (I.e, like -D except with the name
first instead of last).
Consistenly strsvis(3) encode path names (even for -C and -D).
2002-12-23 04:40:19 +00:00
wiz ea577b210e Debugging is usually spelled with three gs. 2002-12-22 13:50:35 +00:00
wiz dfb66d510f instead, not insteed; from Adrian Mrva. 2002-12-21 12:58:38 +00:00
wiz 51146674bf Foundation has only one a, from Adrian Mrva. 2002-12-21 12:57:44 +00:00
wiz 7f3797c977 directory has a c. From Adrian Mrva. 2002-12-21 12:52:13 +00:00
lukem 05ac799971 enable sunlabel 2002-12-21 12:49:34 +00:00
wiz 0691bb2061 Fix order of letters in calculated, from Adrian Mrva. 2002-12-21 12:48:51 +00:00
wiz 79a9d12419 always has only one l, from Adrian Mrva. 2002-12-21 12:48:05 +00:00
wiz db8b42a060 hardware with a d, from Adrian Mrva. 2002-12-21 12:47:21 +00:00
wiz 299ca8dc8b Sync with dist spelling fixes. 2002-12-21 12:40:49 +00:00
wiz 34574e798b outgoing with a final g, not t; from Adrian Mrva. 2002-12-21 12:32:24 +00:00
lukem 52c78c8a7d - make "device" non optional and remove "-d device", and actually make
it work with "device"...
- tweak the docco a bit
2002-12-21 08:11:28 +00:00
lukem 133ea6e570 improve help display
minor KNF
2002-12-21 06:53:29 +00:00
wiz 46dd4805d4 Drop trailing whitespace. 2002-12-18 19:37:26 +00:00
hannken 487a4fb83a Set explicit database layout. Default is filesystem block size
and hashdb doesn't work for bucket size >= 65536.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2002-12-15 18:23:00 +00:00
takemura 56d35e34e6 Saved screen size (minX, maxX, minY, maxY) as well as calibration samples.
This change breaks parameter file format compatibility.
2002-12-15 09:13:21 +00:00
christos 11e29bdcef don't use hand-rolled MNT_FLAGS 2002-12-11 22:19:58 +00:00
bouyer c841e4e679 Add SIGINFO support. 2002-12-10 22:42:00 +00:00
fvdl 174b474772 Include -DNLIST_ELF64 for x86_64. 2002-12-10 17:59:41 +00:00
lukem 92a480785a correct description of -D 2002-12-09 13:42:08 +00:00
thorpej f33f7a14c5 Avoid strict alias warning. 2002-12-06 15:21:08 +00:00
thorpej 4c278745df Avoid conflict with reserved identifier "logf". 2002-12-06 15:17:18 +00:00
thorpej 61456e3f52 Avoid conflict with reserved identifier "exp". 2002-12-06 15:15:29 +00:00
thorpej 0f8f1290fe Avoid conflict with reserved identifier "log". 2002-12-06 15:00:14 +00:00
jonb e2fdabc65c Fix the way $EDITOR is started so the variable can have flags in addition
to the name of the binary to run.
2002-12-05 22:54:45 +00:00
bouyer fecc966e36 Add new command-line flags, which ease edquota use in bach scripts:
- -f, which allows to restrict edquota to only one quota-enabled filesystem
- -s and -h, which allows to set soft and hard limits respectively, without
  the need to edit a file.
2002-12-04 21:01:13 +00:00
rtr f88de63c1b Document additional line required to emulate sendmail using postfix.
Without line error will be appended to mailed output of daily script.
Solves part of PR bin/18800.
Patch provided by Ryo HAYASAKA <ryoh@jaist.ac.jp>
2002-12-01 11:35:33 +00:00
lukem 4d5f70e6b6 add DPADD for ${LIBUTIL} 2002-11-30 06:04:57 +00:00
lukem 6e171ecdf8 clean up {LD,DP}ADD. no need to set WARNS=1 here 2002-11-30 06:00:42 +00:00
lukem d348d3d723 tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30 03:10:53 +00:00
lukem d55058d0cc oops; libutil is (currently) needed by ../mtree/spec.c for fparseln 2002-11-30 02:09:44 +00:00
lukem f9b27e4de2 - remove -lutil; nothing here needs it
- no need to reference ../../bin/dd now that strsuftoll(3) is in libc
2002-11-30 02:06:51 +00:00
christos 7fc3700a4c ops_autofs.c is gone. 2002-11-29 23:25:06 +00:00
christos 1339a09219 catch up with 6.1b1 2002-11-29 23:23:59 +00:00
lukem d08243260c convert from strsuftoull() (from ../../bin/dd) to strsuftoll(3) in libc 2002-11-29 13:06:32 +00:00
grant 0a51ab8aee replace use of alloca() with the more portable malloc()/free(). 2002-11-29 08:31:06 +00:00
grant 58306652d2 avoid non-constant initializer errors by changing hack to workaround
gcc warning to a slightly different hack.
2002-11-29 02:07:34 +00:00
taca 445a837973 Add 'p' option to TARX_CMD's argument for preserving file mode.
This fixes the problem that pkg_add(1) drops setuid/setgid bit.

This problem occurs on pax(1) based tar environment.
pkgtools/pkg_install should be fixed, too.
2002-11-28 23:52:31 +00:00
agc 64f5916734 Don't use special-case code for the '_' modifier, just add it to the
modifier table.  Fixes a problem pointed out by Rene Hexel.
2002-11-26 14:46:45 +00:00
fvdl 3658e0287e Add x86_64 if clause to get correct types. 2002-11-25 22:33:39 +00:00
jdc 99d5546aa4 Add a call to use_default_colors(). 2002-11-25 09:11:35 +00:00
fvdl 03adc171d1 Don't explicitly add -Wall -Werror -g to CFLAGS, the .mk infrastructure
already takes care of this, and this makes NOGCCERROR builds fail.
2002-11-24 21:54:38 +00:00
jschauma d571e4f803 Do not abort incomplete deletion if the cwd was removed. Instead, warn,
stay in no-longer existing dir and continue with removal of db-files;
otherwise, the packages contents would be removed, but the package not
uninstalled.  Pointed out by Grant in PR pkg/18384.  OK'd by hubertf.
2002-11-23 22:31:18 +00:00
simonb 1bee87041f Add CWARNFLAGS+=-Wno-format-y2k so this builds again with the pc532
toolchain.
2002-11-20 05:33:58 +00:00
itojun a426f44395 sync w/ kame source from 2002/11/20.
- plug some memory leaks
- correct phase 2 proposal reqid handling
- check for fd_set overrun
2002-11-20 03:35:57 +00:00
atatat 15d85dcb14 Alter config so that it emits a config_time.src file (the source file
for config_time.h) that contains, for example:

/* Sun Nov 17 05:37:51 2002 GMT */
#define CONFIG_TIME     1037511471
#define CONFIG_YEAR     2002
#define CONFIG_MONTH    11
#define CONFIG_DATE     17
#define CONFIG_HOUR      5
#define CONFIG_MINS     37
#define CONFIG_SECS     51

These values represent the current time as of when config was last
run, so that functions (eg, inittodr()) can use these values instead
of being updated once every year or so with the "current" time.

The associated modification to Makefile.kern.inc makes config_time.h
depend on this depend on this and the kernel Makefile, so that
granularity of kernel builds is not reduced.
2002-11-19 04:29:19 +00:00
atatat 399c5e40ce Define KERNEL_BUILD at the top of the emitted kernel Makefile. This
means that the appropriate combination of checking for KERNEL_BUILD,
RELEASEDIR, DESTDIR, and/or BSD_PKG_MK, can allow the setting of COPTS
or CFLAGS (or anything else) depending on the specific task at hand.
Personally, I think that per-kernel install rules are the best part.
2002-11-19 04:24:16 +00:00
thorpej 42ea935cff Add a "package" keyword, which makes it somewhat easier to add 3rd
party software packages to the kernel.  The statment:

package "../path/to/some/directory/files.package"

is equivalent to the sequence:

prefix "../path/to/some/directory"
include "files.package"
prefix
2002-11-17 23:36:19 +00:00
thorpej aceaa7e184 When emitting -I directives for prefix'd paths, use EXTRA_INCLUDES
rathern than INCLUDES, so that it works with sys/conf/Makefile.kern.inc.
2002-11-17 22:10:05 +00:00
wiz c59faa6fa4 Bump date. Sort options. New sentence, new line. Other minor fixes. 2002-11-17 01:26:30 +00:00
dyoung 8804a2c4e6 Removed deprecated flags from wiconfig(8) manual page. 2002-11-16 22:56:06 +00:00
dyoung 3e30600b49 Add flag -g, set fragmentation threshold. Also, query RSSI->dBm
conversion constant.

Remove flags

  -c Create IBSS: use ifconfig wi0 mediaopt adhoc, which turns on the
                  802.11-compliant behavior
  -e enable WEP: use ifconfig wi0 nwkey ...
  -f set channel: use ifconfig wi0 chan ch
  -k set WEP keys: use ifconfig wi0 nwkey ...
  -n set desired SSID to join in IBSS mode: use ifconfig wi0 nwid id
  -p set the desired port type: use ifconfig wi0 mediaopt ...
  -q set SSID to create: use ifconfig wi0 nwid ...
  -t set TX rate: ifconfig wi0 media ...
  -A set authentication type: ifconfig wi0 nwkey ...
  -S set maximum sleep interval: ifconfig wi0 powersavesleep ...
  -P enable power management: ifconfig wi0 powersave
  -T select WEP key for transmitted packets: ifconfig wi0 nwkey n:k1,k2,k3,k4
  -Z unimplemented

which duplicate ifconfig functions. This leaves flags

  -a access point density
  -o print out statistics counters
  -s set station name for Lucent WaveMANAGER software
  -M enable/disable "microwave oven robustness"
  -R enable/disable roaming function

which affect wi(4)-specific parameters, and flags

  -D scan once for access points
  -d maximum data length
  -m set MAC address
  -r set RTS/CTS threshold

which affect 802.11-standard parameters and activities (so may not
belong in wiconfig, in the long-term). The new flag, -g, also
affects an 802.11 parameter.
2002-11-16 22:39:57 +00:00
itojun 07780ab297 die if strdup failure 2002-11-16 15:43:52 +00:00
itojun 9593086444 use strlcpy 2002-11-16 04:34:13 +00:00
itojun 881cb512fa strncpy -> strlcpy to ensure string termination 2002-11-16 04:29:01 +00:00
itojun 7bd25b06e9 die if out-of-range address is specified to -p 2002-11-16 04:20:42 +00:00
itojun 343d3d8f80 die if out-of-range uid/gid is specified. 2002-11-16 03:59:36 +00:00
itojun 240664d004 strto* audit. 2002-11-16 03:36:17 +00:00
agc ab7e447f08 Bump version number after adding "alpha" and "beta" version modifier
recognition.
2002-11-14 11:57:15 +00:00
agc 03ce8889fa In addition to the existing "rc" modifier for a package version, add
support for "alpha" and "beta" versions, which sort before "rc".  Move
to table-based modifier recognition.
2002-11-14 09:40:23 +00:00
enami 69a28166e0 Fix .Nm usage. 2002-11-09 12:10:48 +00:00
agc d6b0aed068 When deleting a user with preservation, use a password of
"*************" rather than a single asterisk - it's just as difficult
to hash to the longer password since the asterisk character itself is
not in its alphabet, and pwd_mkdb now thinks it's a valid DES password.
2002-11-08 11:53:20 +00:00
agc 7843f87c3d Factor out some common code. 2002-11-08 11:44:37 +00:00
rafal ecf0596577 Convert to use getifaddrs(3) to get interface names; this is mostly removal
of grotty code to unpack data structures returned by the SIOCGIFCONF ioctl.
2002-11-08 03:40:28 +00:00
fvdl d4f83aa2bb Use a non-blocking SVC for TCP connections. 2002-11-08 00:14:50 +00:00
jrf 2547287233 Corrected the comment and error message. 2002-11-07 21:06:04 +00:00
jrf fb826ed9ad Detect NULL characters in a config file and error out. 2002-11-07 20:07:07 +00:00
jdolecek 01188cb460 constify structs, print also pipes for -f 2002-11-06 09:32:26 +00:00
thorpej 54a7ee3470 Allow more than one interface to be specified on the command line. 2002-11-05 14:18:04 +00:00
grant f437cb0639 s/anyways/anyway/ 2002-11-05 07:34:31 +00:00
thorpej 314b43faa0 For ELF, set d->loadaddr to 0, as we do for a.out.
On both my 4000/60 and SIMH, a boot program NOT loaded at 0 consistently
is loaded +0x5200 too high in memory, which which causes a fatal trap back
into the console even before the self-relocating code can run.  "wHATEver."
2002-11-05 06:08:29 +00:00
thorpej 1a49eb0ca9 Make sure to fill in the load address in the dest. MOP header. 2002-11-05 05:06:05 +00:00
thorpej ac17ec7137 Show the load address in hex. 2002-11-05 04:54:26 +00:00
enami 0ad4042cc2 ... and fix typos which makes wrong display. 2002-11-02 06:35:30 +00:00
enami a65c9b21f2 Cosmetic changes. 2002-11-02 06:32:10 +00:00
wiz fdc93ee90f Add tag for yesterday's state. 2002-11-02 02:07:43 +00:00
simonb c79652b287 Print a newline between lines in -x mode. 2002-11-01 14:02:21 +00:00
mrg 3cf4c73d05 iostat(8) and systat(8) support for separate read/write disk statistics.
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics.  "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
petrov 664489a4cb follow-up rpcgen changes. 2002-10-31 08:39:13 +00:00
wiz e597be7d4e Fix typo. Found by Adrian Mrva. 2002-10-29 16:18:06 +00:00
wiz c1f53358ea Fix typos. Found by Adrian Mrva. 2002-10-29 16:16:58 +00:00
wiz a125d07668 Fix typos. Found by Adrian Mrva. 2002-10-29 16:12:25 +00:00
itojun 41b5d4f9af use strtoul, not atoi.
don't print strerrno() if errno == 0 on fatal().
sync w/kame
2002-10-26 20:10:02 +00:00
hubertf 4d58bf2551 Properly re-implement hilighting of the dialogue with the ftp(1)
process.

Thanks again for the throughout notification I got before that
was removed! :(
2002-10-26 14:43:43 +00:00
hubertf 4d4c17a923 use size of the right buffer 2002-10-26 12:37:00 +00:00
thorpej 2b3b2f08d6 Rather than relying on pure luck to get the log file on STDERR_FILENO,
explictly dup2 the log file dscriptor to STDERR_FILENO and close the
original.
2002-10-26 01:47:52 +00:00
thorpej d2ed7ebdd1 * Use STDOUT_FILENO instead of 1.
* Pass the file descriptor to request_init() (libwrap) so that
  it can actually do something useful later in fromhost().
2002-10-26 01:46:31 +00:00
wiz 3ced2f4983 Mention moused(8). From Julio Merino in PR 18801. 2002-10-25 21:02:45 +00:00
wiz 433a9df61c Mention wsmoused(8). From Julio Merino in PR 18801. 2002-10-25 21:02:25 +00:00
wiz e4a36f578d Whitespace nit. Use .Nm instead of crossreferencing ourselves. 2002-10-24 16:22:49 +00:00
jonb 996cd2788d Add a better hint about proper kernel configs than just "See Also sysctl(8)" 2002-10-24 16:06:05 +00:00
itojun 22a4160612 be more picky about argument parsing (check ERANGE from strtoul). sync w/kame 2002-10-24 12:54:14 +00:00
itojun f062d0205a make args u_long not to lose accuracy due to conversion/overflow.
from mark@openbsd
2002-10-23 03:48:07 +00:00
itojun 1d2f66eb21 add DPADD 2002-10-23 01:11:09 +00:00
itojun 86c2fb8d52 style 2002-10-23 01:09:50 +00:00
itojun 0a52cefa4d add DPADD 2002-10-23 01:09:37 +00:00