Commit Graph

8543 Commits

Author SHA1 Message Date
christos
3ac7a40466 fix compilation after changes to telopts. I will revisit this and constify
it later.
2006-01-25 04:20:54 +00:00
wiz
bdd062fb4d Bring over changes I had committed to qsieve.6. 2006-01-24 19:17:19 +00:00
elad
c53cd0c067 moduli utils moved from games to usr.bin. 2006-01-24 19:01:45 +00:00
elad
e31e6187a9 Put qsieve/qsafe in usr.bin. 2006-01-24 18:59:23 +00:00
dsl
de841c2752 Make .NOTPARALLEL stop the job engine issuing more than one token (instead
of trying to de-jobify the make.
You can now put .NOTPARALLEL in a submake of a recursive make (where it is
using a job-token pipe from the outer make and have it only run a single job.
You can also specify .NOTPARRALEL in the root makefile of a large recursive
make and have the submakes run multiple commands.
Add some diagnostics printfs (enabled with -dp) to the parser.
2006-01-22 19:54:55 +00:00
christos
2309deb39e restructure as a single level if/then/elif/else 2006-01-22 15:47:10 +00:00
martin
f6234a13ab Do not access out of bounds argv when mixing non-getopt -<digit> arguments
with regular getopt-handled options.
Fixes PR bin/32596.
2006-01-22 15:24:38 +00:00
dsl
363c3a143d Check the 'job_pipe' for the error token 'E' before every job, including
the first one for each make.  This significantly speeds up the detection
of errors in other branches of the make (ie those running in a different
make process).  The cost of reading and writing a byte from the pipe
should be insignificant.
Defer replacing job tokens until we've decided there is an error.
If we detect an error in another branch of the make, then call Fatal(),
setting 'aborting' and failing to return a token leads to infinite loops.
Now parallel makes actually stop with the failing command on the screen.
2006-01-21 19:18:37 +00:00
garbled
c2c322c5a5 Apply patch from PR bin/23836 cmp did not correctly parse skip arguments
given in hex or octal, as the manpage states it can.
2006-01-19 20:44:57 +00:00
elad
ba1244744f sync usage(). 2006-01-15 16:50:05 +00:00
christos
9ebf619229 fix trailing blank munging. 2006-01-15 14:41:45 +00:00
christos
bd35911685 revert the line calculation as it used to be pre-buffer changes. 2006-01-15 14:26:10 +00:00
wiz
a67c9be512 warnx appends a newline, so the string does not have to contain one.
Remove it.
2006-01-13 20:30:40 +00:00
tsutsui
a46df0d20b Don't use data in freed stack. 2006-01-13 16:36:25 +00:00
wiz
9277c02ebe New sentence, new line. Bump date for previous. 2006-01-12 21:54:06 +00:00
wiz
1f5df3a237 Bump date for -e. 2006-01-12 21:52:01 +00:00
garbled
6a2b4183c2 Slight refinement of -t description. Note that it generates a template
with 8 X's.  Change .Bx Free and .Bx Open to .Ox and .Fx.
2006-01-12 21:39:45 +00:00
wiz
592cef634d New sentence, new line. Bump date for previous. 2006-01-12 21:00:58 +00:00
garbled
ddd39082c1 Apply patch from PR bin/28717
This adds a -e option to progress which causes the progress bar to be
sent to stderr.  This allows using progress mid-pipe, such as:
tar -cf . | progress -e bzip -1c | ssh host "cat > file"
2006-01-12 20:33:20 +00:00
garbled
f9abebf063 Applied patch from PR bin/14505 Tested on i386-current. Fixes inability of
cdplay to properly play a cd immediately following an eject command in
interactive mode.  Patch supplied by Sergey Svishchev.
2006-01-12 18:15:59 +00:00
tsutsui
dcf59f2ba1 Add dates of ews4800mips and 3.0 release. 2006-01-09 18:45:00 +00:00
dsl
8cc9d75901 Include the 'preds' and 'successors' in the diag output.
These are the values that are actually used to control what is built.
(I suspect .WAIT info added in the previous delta isn't always useful.)
2006-01-08 17:43:31 +00:00
dsl
07c6949e33 Don't (try to) use files marked .OPTIONAL as implicit sources.
There existance hasn't been verified at the point the implicit rules are
checked.
2006-01-08 12:59:52 +00:00
dsl
94a49912ba Include .WAIT in the debug output for dependency lists. 2006-01-08 11:54:13 +00:00
garbled
ee8c3b64e9 Add missing DPADD for LIBMATH 2006-01-07 07:12:27 +00:00
garbled
d8817d5ac1 Apply modified fix for PR bin/23763
jot(1)'s output now matches the examples given in the manpage.
2006-01-07 07:09:01 +00:00
christos
ed70dac6b1 add more const 2006-01-05 02:13:41 +00:00
christos
68e618cea2 more casts to void 2006-01-05 02:07:29 +00:00
christos
4d09f9add9 - use BUF_SIZE instead of BUFSIZ
- operator precedence in length calculation
- update buffer end pointer when buffer position does not change.
2006-01-04 22:05:26 +00:00
dsl
913c34c213 Expunge last references to jobTokensFree 2006-01-04 21:35:44 +00:00
dsl
1f61a1399d When a parallel make job completes, always put the job token back into the
job_pipe and collect another one for the next job.
If we are aborting, remove all the 'normal' job tokens and add an 'error' one.
If we get an 'error' token, remove any other tokens, re-insert the error
token and exit (with error 'cos that is easier).
Add the current pid to some of the DEBUG(JOB) traces.
Combined effect is that parallel makes actually stop some fairly shortly
after an error, rather than running on long enough to fill the scrollback.
2006-01-04 21:31:55 +00:00
dsl
261501b75e F_DUPFD the job_pipe fds onto higher numbers (>15) to make it less likely
that they will get closed in a complex recursive parallel make.
2006-01-04 21:25:03 +00:00
dsl
68ab653c0c For parallel makes, don't recycle the job token when we decide not to
run anything.
2006-01-04 21:16:53 +00:00
dsl
12dafa0b4a If -s (silent) is specified, don't output the target name before target
output in parallel makes.
After all with -s you wouldn't know the command for a non-parallel make.
Makes (sic) the output of parallel NetBSD build fathomable.
2006-01-04 20:56:05 +00:00
christos
e4a41ed570 fix problem introduced when the computation was changed to unsigned. If
we've exceeded the goal length already the negative number turned into
a large positive one...
2006-01-04 20:44:57 +00:00
perry
c9e98eabc1 de-__P, ANSIfy prototypes 2006-01-04 01:58:05 +00:00
perry
10e955c2f8 de-__P, ANSIfy prototypes 2006-01-04 01:44:06 +00:00
perry
d310ebb16a de-__P, ANSIfy prototypes 2006-01-04 01:30:21 +00:00
perry
ee5c979c9f de-__P, ANSIfy prototypes, and kill register 2006-01-04 01:17:54 +00:00
perry
c2e350ed82 de-__P, add ANSI prototypes, and a teeny bit of KNF. 2006-01-04 01:05:19 +00:00
garbled
0f9fab16a0 Fix a spello, and change the intent of the message slightly. 2006-01-03 00:15:45 +00:00
garbled
fd2134d98b Add repeat mode to cdplay(1) per PR bin/13970
Applied the second patch in the PR, with minor tweaking, and adjusted
manpage for change.
2006-01-02 21:29:53 +00:00
garbled
a25ab7d823 Change "garbled time" panic to a message that gives the user a better
idea of what happened.  Addresses PR bin/12463
2006-01-02 20:18:59 +00:00
christos
13d27fec78 recognize 307 redirect code. 2006-01-02 12:30:01 +00:00
tsutsui
1f5055228d Add preliminary support for System V Boot File System.
Written by UCHIYAMA Yasushi <uch@netbsd>.
2005-12-29 14:53:45 +00:00
rpaulo
fbe17c43c7 Bump date for previous. 2005-12-28 22:53:59 +00:00
christos
2296939e9c PR/32402: Jeffrey Bedard: pr filter dumps core with -s option specified,
when -s is specified with no argument. Option arguments in pr (as documented)
need to immediately follow the option. For example to set the separator char
to `.' you need to use "pr -s." instread of "pr -s .". The second form sets
the separator character to tab, and reads from file `.'. Coredumping is wrong
anyway, so fix that. Grr to POSIX for not forcing pr and a few other utilities
to use getopt(3).
cvs: ----------------------------------------------------------------------
2005-12-28 21:29:16 +00:00
rpaulo
fa0b253ddc Explain the netstat -B flag column. 2005-12-28 17:57:16 +00:00
yamt
87a5de2d3d add rcsid. 2005-12-27 11:29:30 +00:00
perry
f2bc845517 __inline__ -> inline 2005-12-24 21:44:28 +00:00
matt
d5eba984e9 Appease gcc 4.x 2005-12-24 21:14:50 +00:00
perry
0f0296d88a Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:45:08 +00:00
cube
c454f920b9 Having explicit locators is not a sufficient condition to be able to have
children for a pseudo-device.  Depending on an interface attribute is,
though.

Instead of looking at locators, walk the 'attrs' list and look for an
interface attribute (which might have been added just a few lines before
in case there was explicit locators defined).

Fixes PR#32329 by Valeriy E. Ushakov.  Regression test is PSEUDO_PARENT.
2005-12-18 23:43:15 +00:00
christos
267eeacec3 PR/32322: Daniel de Kok: Division by zero in column(1) with certain column
widths.
Cleanup and pass lint.
2005-12-17 18:10:55 +00:00
christos
630ea70860 use putchar consistently. 2005-12-16 04:20:09 +00:00
christos
75bdcdea65 small cleanups from seebs... 2005-12-15 22:37:37 +00:00
christos
9ac95763b7 PR/32305: seebs: Eliminate buffer overflows and simplify code by using
dynamically allocated buffers.
2005-12-15 21:32:00 +00:00
christos
dcf51e5c6a Use LOGIN_CAP even in the pam case. 2005-12-15 14:03:34 +00:00
christos
04095b6d82 PR/32307: Jason V. Miller: su fails to set umask correctly when using pam
and simulating a full login (-, -d, -l)
2005-12-15 14:01:31 +00:00
hubertf
9df5e26cc9 Give a general description what this command does before going into
all the details.
2005-12-15 05:26:36 +00:00
reinoud
1a9677836e Stub to pmap.c to avoid unhandled enumeration value error. Its only used
for printing purposes.

Will be modified later when UDF is finally committed after review.
Comitting has been put on halt due to dispute over a patch.
2005-12-15 01:53:30 +00:00
wiz
2f70583592 Remove unhandled H option from getopt() argument.
Describe -l in usage. Both from Igor Sobrado in private mail.

While here, sort options.
2005-12-13 10:02:04 +00:00
wiz
dbaaaf27a8 Sort options. 2005-12-12 22:49:37 +00:00
wiz
54282824e9 Sync usage with man page. 2005-12-12 22:42:34 +00:00
wiz
c64e5a3705 Improve -v description slightly. 2005-12-12 22:38:28 +00:00
dsl
0f4ad533d7 Add a -D option that acts like -d, but reads the filenames (whitespace
separated) from stdin.
Useful (eg in Makefile.kern.inc) to avoid breaking the systems command
line limit.
2005-12-12 22:05:28 +00:00
hubertf
aa2ac86c1f Fix old name in .Dt tag (CLCONFIG -> VNDCOMPRESS) 2005-12-12 21:04:31 +00:00
christos
74757293f7 add a trace facility for upcalls. 2005-12-11 19:29:27 +00:00
christos
4f17ba81bc Learn about v1 records and sa upcalls. 2005-12-11 11:31:34 +00:00
christos
14a515a88b learn about v1 records. 2005-12-11 11:30:06 +00:00
christos
e297758924 Learn about ktrace v1 records. 2005-12-11 11:29:06 +00:00
cube
4225631532 The loop detection code could not detect the negation of an instance that
made a device its own parent.  Add a test that checks that and stop looping
in that special case (after all, everything is already being handled by the
parent instance).

Reported by Jukka Salmi on current-user.
2005-12-10 13:39:47 +00:00
gavan
f1f29c8b8d Treat EOF the same as EIO. Prevents spinning if an EOF condition is
encountered, such as a USB serial device being unplugged.

Instead of spinning, the process reading from the serial line will exit,
leaving the process reading from the local terminal to exit when it notices
that its child has gone away.
2005-12-09 03:15:42 +00:00
wiz
559504cae5 lexi_co_graphical, with "co". From Igor Sobrado in PR 32231. 2005-12-04 09:14:58 +00:00
tsutsui
6413f86a09 Fix more FALLTHOUGH -> FALLTHROUGH typo. 2005-11-26 13:57:27 +00:00
christos
7cde8ec265 add new files. 2005-11-26 00:36:40 +00:00
he
b5d827cee2 Use of ``vflag'' should be protected by #ifndef SMALL. 2005-11-23 18:34:51 +00:00
mrg
426bb686c4 due to popular demand, don't warn about >4GB files not having their
size correctly stored.  PR#32105 among other requests.
2005-11-22 09:07:03 +00:00
mrg
e3969e9f13 apply a patch from onno van der linden in PR#32070 that fixes
these problems:
	1) gzip -vt just prints the contents of a .Z file
	2) gzip -vt will print OK even if the .gz file is corrupt
	3) gzip -vt prints nothing with a .bz2 file
	4) gzip can loop endlessly with a corrupt .bz2 file
2005-11-22 09:05:29 +00:00
rpaulo
e5a1f0391d Convert 3 printf() calls into one puts(). 2005-11-21 22:43:34 +00:00
ross
b4995580bb Fix old-style C code, update to WARNS=4.
Also, move file-scope .c extern decls to the .h file
2005-11-20 19:28:23 +00:00
jld
10e1da626c Style fixes and WARNS. 2005-11-18 22:16:49 +00:00
cube
7230395132 Invert the meaning of a comment to match reality. Pointed out by uwe@. 2005-11-13 17:24:31 +00:00
reed
9695cc3899 Add -false switch. From man page:
-false  This primary always evaluates to false.  This can be used follow-
        ing a primary that caused the expression to be true to make the
	expression to be false.  This can be useful after using a -fprint
	primary so it can continue to the next expression (using an -or
	operator, for example).

This was brought up on the tech-userlevel list in October.

Using -fprint on findutils or new NetBSD find(1) does not do what
I wanted. For example, if saving results of all files that start
with a vowel or saving results of all files owned by group operator,
then the list of files owned by group operator would not include
the files starting with a vowel.

findutils's find has a workaround for this with -false and also a
"," comma opeator. (I made add this comma operator later; you can use
the comma to perform multiple independent tests.)
2005-11-09 00:47:16 +00:00
wiz
5cc6a637b8 Prefer mdoc markup to roff. 2005-11-08 18:54:15 +00:00
wiz
07006c8815 Remove trailing whitespace. 2005-11-08 17:59:45 +00:00
erh
570d41f826 The swap*.o files actually do need to be specified on the individual kernel
build lines instead of in ${OBJS}.  Partially revert previous change.
2005-11-07 18:45:34 +00:00
erh
cd42936263 Remove special hack for swapnetbsd.c when generating the makefile.
Instead, just add it to the list of files.
Make "prefix foo" lines actually work right when foo is an absolute path,
 and make sure the length calculations correspond to the output.
Provide a way to specify a file that will always be included, and a way
 to omit the prologue ("$S/") on that file.
2005-11-07 03:26:20 +00:00
snj
5a7eec5112 Add NetBSD 2.1. 2005-11-06 20:14:36 +00:00
christos
4f38beeb43 Update documentation for pam, and don't accept flags that we don't support
anymore.
2005-11-01 15:47:43 +00:00
simonb
7dbaeb74a5 Sprinkle some KNF. 2005-10-27 01:43:48 +00:00
nonaka
0827467dac Don't forget original allocated memory address. 2005-10-22 15:32:48 +00:00
ross
2ea481dec5 Edit -s text. 2005-10-19 18:19:41 +00:00
elad
47ebf29d74 Revert, as requested by cube@. 2005-10-19 12:25:51 +00:00
elad
7f482dd3ce Strip trailing slashes before using the path.
PR/31869.
2005-10-19 12:17:22 +00:00
christos
64639a3896 Print symbolic signal names for killpg *sigaction* and *sigvec*. 2005-10-18 01:49:18 +00:00
aymeric
3b6dda9b52 the last revision introduced a bug in the handling of escape characters while
trying to correct a corner case. I will work on a final solution later.
Thanks to David Brownlee for noticing and notifying me.
2005-10-16 15:58:59 +00:00
wiz
34cace8bd1 Bump date for previous. 2005-10-12 20:10:45 +00:00
reed
4129c05469 This adds -fprint function. The primary name "-fprint" (but not the
code) comes from findutils; it behaves the same.

From my manpage addition:

 -fprint filename
	This primary always evaluates to true.  This creates filename or
	overwrites the file if it already exists.  The file is created at
	startup.  It writes the pathname of the current file to this
	file, followed by a newline character.  The file will be empty if
	no files are matched.

Here is an example usage:

find /etc \( -name "*pass*" -fprint file1 \) -o \( -group operator -fprint file2 \) -o -name "w*"

Note that this example will NOT include entry in file2 if it is
matched in first expression. (This also is same behaviour as
findutils, and I have implemented a -false primary to handle that.
I will commit it later.)

This creates the file as command line argument parsing time.
If there is an error somewhere on that line, such as missing values
or mismatched parenthesis, then a file may still be created.
(Even if a later -fprint filename is unwritable.) This is similar
behaviour to findutils. (It has been suggested that this find could
be code to create the files in an extra stage after the command-line
argument parsing and before the actual function processing.)

I will add -fprintx and -fprint0 soon.

This was discussed on tech-userlevel.
2005-10-12 20:03:59 +00:00
cube
437f8925a6 Introduce versioning to config(1). This will allow us to provide a way to
error out in a bit more friendly way when the user is trying to use
config(1) on a too old or too recent source tree.

To achieve that, introduce the "version NUMBER" statement which can be use
about anywhere in the config files.  Also, use two defines, CONFIG_VERSION
(which is the actual version of binary), and CONFIG_MINVERSION, which is
the minimum version the binary supports.

Allowing a range of versions serves several purposes:  first it allows me
to introduce the versioning without requiring it to be used right away in
the kernel tree, which means it will be possible to introduce new features
of config(1) rather progressively in the future.  E.g., using 'no pci' in
a config file could only require the new version in that config file, so
that the rest remains compatible.

In the end, an actual bump of the main config system (i.e., in conf/files)
will only be required when e.g., ioconf.c semantics change.

(Mostly-)silently accepted on tech-kern.  Error messages turned into
correct and meaningful English thanks to Tracy and Perry.
2005-10-12 01:17:43 +00:00
kleink
7031652201 Exit with 2 on usage errors as documented. Noted by Christian Biere in
PR bin/21933.
2005-10-10 22:13:20 +00:00
rpaulo
b17222de0e Mention uptime display. 2005-10-10 10:09:17 +00:00
christos
fbec9f21a4 - Exit with non-zero on errors (from Liam Foy)
- Pass lint.
2005-10-09 18:23:52 +00:00
aymeric
e6da8880e8 bump for latest changes:
. reintroduce ^V as a valid quoting character
. don't swallow quoting characters which are not followed by anything
2005-10-08 13:02:32 +00:00
aymeric
ca7788ba21 accept ^V again as a quoting character. At least one person uses it. (hi abs!)
While there, fix a bug that would swallow a quoting character if it were the
last one.
2005-10-08 12:41:48 +00:00
aymeric
7107bc131e remove the hack that changed backslaches to ^V's when the command is "set" (!).
Now backslashes are understood by argv_exp3().
2005-10-08 12:38:45 +00:00
kleink
a050a27360 Downgrade failure to kill(2) (other than ESRCH) from fatal error to a
warning; otherwise processing aborts and possibly matching killees would
remain unsignalled.  This makes pkill match the Solaris behavior.
2005-10-08 12:05:55 +00:00
drochner
de89d2ef8d s|expr|eval|g, to make the test portable 2005-10-06 17:38:09 +00:00
drochner
a908ca7d51 merge in FreeBSD's rev.1.14:
Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.
2005-10-06 17:28:33 +00:00
drochner
04e008c8e1 import a test for arithmetic expressions from FreeBSD 2005-10-06 17:23:23 +00:00
christos
c2bd98ebb5 From Liam Foy:
- Check for errno being set to ENOTDIR from execvp. This
  will stop an incorrect value being returned if a component
  of the new process image file's path is not a directory.
- Cleanup and KNF
2005-10-05 21:20:46 +00:00
hubertf
8457054037 Make it clear where this program can be found.
Requested by wiz.
2005-10-05 17:38:49 +00:00
hubertf
e533c36a54 Add locate.updatedb(8).
Discovered missing while sorting things out for BSDcertification.org.
Ran through wizd(8).
2005-10-05 06:29:03 +00:00
cube
b7505c1571 Stop walking the tree when two conditions are met: we've seen the device
already (one of its instances has been changed), and we have made no change
on any of the instances.

Previously, it stopped as soon as it detected the device had been seen.
While all the instances of the device at stake were eventually seen, the
same wasn't true for its children...

Fixes hpcmips's GENERIC.
2005-10-04 23:00:34 +00:00
cube
a31ff6b408 - Make sure to try aliases of removed device instances when walking
deaddevitab.
- Record the position in the config file of device instances so it is
  possible to tell if a device instance was declared before or after its
  parent's removal.

  E.g.:

     child* at parent?
     no parent

   will have the child instance ignored as an explicit orphan, while

     no parent
     child* at parent?

   will error out because now the child instance is a real orphan.

  That let the POSTPONED_ORPHAN regression test pass.
2005-10-04 20:13:39 +00:00
cube
9ea755eb2f Remove extra new line. 2005-10-04 13:33:20 +00:00
cube
5ec393e9ef Add a flag to mark broken instances. That might happen when there is a
syntax error in the file, yet we want to somehow gracefully go on in order
to print out all the errors in the file, which means we have to take
special care with those structures.

Reported by Simon Burge in private mail.
2005-10-04 13:06:45 +00:00
cube
0dbd1c0e04 - Keep track of the file in which we find the device instance
- Introduce xwarn() for delayed warnings
- Use xerror() and xwarn() in fixdevis() to notify about orphans

That way the correct file is printed when listing orphaned devices.

Reported by Juergen Hannken-Illjes in private mail.
2005-10-04 12:35:00 +00:00
wiz
5219255abf getfsent(3) does not contain any information about the (nonexisting)
function getfstype(), so don't MLINK it. Remove getfstype from other
places that reference it too.

Noted by jmc@openbsd.
2005-10-03 14:56:32 +00:00
christos
180fd9f68f PR/31452: Zafer Aydogan: Show uptime in top display (written by Simon Burge) 2005-10-03 05:34:51 +00:00
cube
2fb411a123 Don't return immediately when detecting that a devbase has already been
seen:  aliases might have to be activated, too.  Fixes GENERIC of alpha
and amiga.
2005-10-02 21:22:56 +00:00
chs
9c47d944e4 optimize pool_caches similarly to how I optimized pools before:
split the single list of pool cache groups into three lists:
completely full, partially full, and completely empty.
use LIST instead of TAILQ where appropriate.
2005-10-02 17:29:31 +00:00
cube
895e5687a9 Allow 'maxusers' redefinition. 'maxusers 0' will cancel the existing
value and make config(1) use the machine-dependent default.
2005-10-02 00:18:09 +00:00
cube
7aa6070d4e o Keep track of negated devices in deaddevitab
o  Rework do_kill_orphans() to use that information and mark explicitely
   orphaned devices (i.e., the ones whose missing ancestor has been
   negated)
o  Make a distinction between erroneous orphans and explicit orphans.
   Error out on the former, ignore the later (but print a warning when -v
   is used)

Yes, now config(1) will actually stop if you comment out a parent.  That
should help people still hoping adjustkernel is relevant these days :)
2005-10-01 23:30:37 +00:00
christos
c05266af8a fix setmode error handling. 2005-10-01 20:23:54 +00:00
he
92c0ed8788 The nusers variable is actually a size_t, so print with %zd, not %d. 2005-10-01 13:33:21 +00:00
wiz
57f7dd924d Sort option descriptions. Use more macros. New sentence, new line.
Add missing .El.
2005-10-01 00:03:47 +00:00
cube
7b7c582a4f Introduce two new statements:
no device at <attachment>

     <attachment> can take two forms:  either numbered/wildcarded, in which
     case only exactly matching instances will be removed, or plain (with
     no number or wildcard), in which case all matching instances will be
     removed.

     When <attachment> is a plain interface attribute, all instances using
     that attribute (either directly or through an explicit device) will be
     removed.

     E.g.:
             auich* at pci? dev ? function ?
             audio0 at audiobus?
             audio1 at auich?
             audio* at auich0

             no device at auich0     -> removes audio*
             no device at auich?     -> removes audio1
             no device at auich      -> removes audio1 _and_ audio*
             no device at audiobus?  -> removes audio0
             no device at audiobus   -> removes audio0, audio1 and audio*

  no <device>

     As in the previous case, <device> can either be numbered/starred, in
     which case all exactly matching instances are removed, or plain, in
     which case all instances of the device are removed.

    E.g.: (continuing previous example)

             no audio* -> removes 'audio* at auich0'
             no audio  -> removes all audio instances
2005-09-30 22:51:46 +00:00
cube
c130d400ba Rework the way orphan device instances are handled. To achieve that, keep
track of instances attaching at root, and walk down the tree of active
device instances.  Then, all instances that are not marked active are
found as orphans.

Doing it that way allows us to simply ignore orphan devices, instead of
warning about them and still keep them in the configuration.  Now, orphaned
instances are considered as never having existed.

In the end, this allows 'no <device> at <attachment>' to be much more
efficient, as the user doesn't have to negate all descendents of the
instance s/he actually wants to negate.  Warnings are still emitted,
though.

While there, make official a side-effect of the previous lack of action
against orphaned instances:  config(1) used to warn about instances that
attach at a numbered device when no instance of that device with that
number existed, even though there was a starred instance of the device.

E.g. (provided by Alan Barrett):

    pciide* at pci? dev ? function ? flags 0x0000
    wdc0    at isa? port 0x1f0 irq 14 flags 0x00
    wdc1    at isa? port 0x170 irq 15 flags 0x00
    atabus* at ata?
    wd0     at atabus0 drive 0

With this commit, config(1) will no longer warn about 'wd0 at atabus0'.
2005-09-30 22:36:20 +00:00
christos
ae3dca21e8 Patches from Liam Foy to:
- Use realloc instead of allocating 1000 structures.
- Remove NUSERS nonsense. If this is kept, shouldn't
  who(1) comply with it too?
- Be consistent with who(1). Add two identical options
  from who(1). These are -q and -H.
- General Cleans:
	- Move globals into local scope
	- Re-write a macro to remove an uneccessary
	  variable.
	- Use UT_NAMESIZE.
	- Remove unecessary header etc.

And from me, KNF, pass lint.
2005-09-30 17:58:24 +00:00
wiz
179b01d905 Fix typo reported by David A. Holland in PR 31422. 2005-09-30 13:46:56 +00:00
rpaulo
b04eff3537 ANSIfy. de-P(). Syle nits. 2005-09-25 18:56:33 +00:00
rpaulo
ff2bab1c59 tcp_callrpc(): bring in the FreeBSD version of this call. It uses the
"new" rpc functions and works with IPv6.
2005-09-25 18:50:28 +00:00
elad
851adad0b8 Use crypto/rmd160.h. 2005-09-25 14:34:54 +00:00
elad
a375b7cdb7 Use crypto/rmd160.h. 2005-09-24 22:40:32 +00:00
christos
c4445bc71c rename osockaddr to talkd_sockaddr and use that instead. 2005-09-24 16:40:01 +00:00
perry
cb4a630e29 in several comments:
implizit -> implicit
  explizit -> explicit
2005-09-24 15:30:35 +00:00
christos
c9f5645213 use getgrnam_r; from Jon Nemeth 2005-09-21 12:24:11 +00:00
he
c8a9612d27 Initialize pw to placate -Wuninitialized for sh3. 2005-09-20 15:48:17 +00:00
mrg
1a05f328bc apply a patch from christian biere:
- if we have an open fd, use it instead and, eg, fstat(2), of the file name
and stat(2).
- signed/unsigned variable fixes
- misc. cleanup
2005-09-20 05:12:15 +00:00
wiz
f38e8b27b1 Sync usage with man page. 2005-09-19 22:43:21 +00:00
elad
f36ecf9e54 Document -k and -p.
Noted by wiz@, perry@.
2005-09-19 15:12:09 +00:00
elad
f6deb21161 Add -k key and -p password.
Slightly modified diff from V. Hari.
PR/15736.
2005-09-18 21:50:20 +00:00
elad
c8399f93d6 Fix buffer overflow. We don't really care about trimming the filename here.
PR/28739, from Michael Santos.
2005-09-17 19:18:31 +00:00
chs
7bdb7511a0 fix build problems with parallel make: always descend into the tools dir
and add some .WAITs to avoid deciding to build a tool again before
the previous instance finishes.
2005-09-17 16:52:02 +00:00
mrg
84cb5f3013 oops. fix previous by keeping the stat() inside #ifndef SMALL. pointed
out by dsl.
2005-09-15 18:51:33 +00:00
mrg
bdc7967496 in file_compress() always stat() the input file. this patch avoids
reading from uninitialised space as provided by John Hein in PR#28995.
2005-09-15 09:30:21 +00:00
mrg
5c0ab9e0af fix signed/unsigned mismatch reported by Christian Biere in PR#31180
using his provided patch.
2005-09-15 09:11:30 +00:00
rpaulo
caaefabc19 Don't print a warning about stale utmp{,x} entries if security.curtain
sysctl is equal to 1. We can still detect stale utmp entries if that
knob is off.
2005-09-15 00:58:49 +00:00
drochner
360dbbc86f make bpf stats #ifndef SMALL,
fixes build of x_netstat
2005-09-14 15:35:26 +00:00