Commit Graph

25049 Commits

Author SHA1 Message Date
jkh
98e4a60d1d Fix bogon I introduced while adding disks menu to label editor. 1997-10-14 14:41:17 +00:00
phk
2b4a6ad696 ufs_ihashrem() should not be called from the UFS layer, but from the
lower layer (LFS/FFS/?) like the rest of the ihash functions.
Otherwise it is impossible to make a lower layer that doesn't use the
ihash facility.
1997-10-14 14:22:31 +00:00
bde
3532aa6356 Moved `SRCS+= frexp.c' to the correct Makefile.inc.
Sorted SRCS.
1997-10-14 07:43:33 +00:00
bde
100ea42694 Moved `SRCS+= frexp.c' to the correct Makefile.inc. 1997-10-14 07:43:18 +00:00
bde
eff0c86059 Fixed searching of $PATH in execvp(). Do what sh(1) should do according
to POSIX.2.  In particular:

- don't retry for ETXTBSY.  This matches what sh(1) does.  The retry code
  was broken anyway.  It only slept for several seconds for the first few
  retries.  Then it retried without sleeping.
- don't abort the search for errors related to the path prefix, in
  particular for ENAMETOOLONG, ENOTDIR, ELOOP.  This fixes PR1487.  sh(1)
  gets this wrong in the opposite direction by never aborting the search.
- don't confuse EACCES for errors related to the path prefix with EACCES
  for errors related to the file.  sh(1) gets this wrong.
- don't return a stale errno when the search terminates normally without
  finding anything.  The errno for the last unsuccessful execve() was
  usually returned.  This gave too much precedence to pathologies in the
  last component of $PATH.  This bug is irrelevant for sh(1).

The implementation still uses the optimization/race-inhibitor of trying
to execve() things first.  POSIX.2 seems to require looking at file
permissions using stat().  We now use stat() after execve() if execve()
fails with an ambiguous error.  Trying execve() first may actually be a
pessimization, since failing execve()s are fundamentally a little slower
than stat(), and are significantly slower when a file is found but has
unsuitable permissions or points to an unsuitable interpreter.

PR:		1487
1997-10-14 07:23:16 +00:00
itojun
7740727dac if_ep.c clarification/simplification.
- irq = 9 problem (PR 4693)
- mbuf chaining oddity fixed. (PR 4693)
- trailer protocol has gone. (PR 4693)
- removed mbuf kludge, we got higher performance. (PR 4693)
- some indentation fixes

I'm sorry that I couldn't make a 2.2.5-RELEASE deadline.

PR:		4693
Reviewed by:	babkin@hq.icb.chel.su
Submitted by:	hamada@tom-yam.or.jp
1997-10-14 06:56:09 +00:00
wosch
167c2cb9c3 Add the primaries -mmin, -amin, -cmin to find, similar to the GNU find. 1997-10-13 21:06:22 +00:00
jkh
2afa55ca38 Ask for extra confirmation if a newfs has been requested during
an upgrade.
PR:		3368
1997-10-13 17:32:29 +00:00
wpaul
36e2a3d8e9 Improve the innetgr() NIS+ compat kludge. We should only fail over to the
'slow' lookup if we get a YPERR_MAP (no such map in server's domain) error
instead of failing over on any error. In the latter case, if the 'fast'
search fails legitimately (i.e. the user or host really isn't a member
of the specified netgroup) then we end up doing the 'slow' search and
failing all over again. The result is still correct, but cycles are
consumed for no good reason.

Also removed the #ifdef CHARITABLE since the compat kludge is no longer
optional.
1997-10-13 17:09:15 +00:00
ache
b5347d93d3 If uptime < 1 min print in in secs otherwise we got confusing message
"up 1 user"
1997-10-13 15:17:03 +00:00
jkh
4b318a5826 Don't return from cleanup() - if it's removed the playpen then very
bad things will happen if we return to unsuspecting code.
Noted to my great dismay by:	Tim Vanderhoek <hoek@hwcn.org>
1997-10-13 15:03:55 +00:00
jkh
f71ea4919a Consolidate distribution flag checking code. 1997-10-13 12:12:14 +00:00
jkh
dc8100dcbd Allow access to options editor from media screen (sometimes you need it
there!).
1997-10-13 11:45:36 +00:00
jkh
3aa99fd0f5 Only need to call label editor for all drives. 1997-10-13 11:33:27 +00:00
charnier
1f77e4ee4c Use err(3). Add usage.
Use syslog instead of fprintf when being a daemon.
Change sprintf to snprintf obtained from OpenBSD.
Obtained from: OpenBSD
1997-10-13 11:27:55 +00:00
charnier
ff717fa4f4 Use err(3). Sync usage string and man page. 1997-10-13 11:24:01 +00:00
charnier
8459f389a1 Use err(3). Remove multiply defined Id string. 1997-10-13 11:22:39 +00:00
charnier
67de6ed0a2 Remove multiply defined Id string. Hide sccsid string. 1997-10-13 11:18:53 +00:00
charnier
8f640499e9 Use err(3). Add usage() and #includes. 1997-10-13 11:13:33 +00:00
charnier
5b323e1a48 Use err(3). 1997-10-13 11:08:47 +00:00
charnier
615b81821d Hide sccsid[]. Typo in man page. 1997-10-13 11:06:30 +00:00
charnier
9a7de1d4b1 Use err(3). Add prototypes. 1997-10-13 11:05:07 +00:00
charnier
f2b21f6a68 Mdoc'ify man page. 1997-10-13 11:03:36 +00:00
charnier
5e270e4c19 Use err(3). Add prototypes. Cosmetic in usage string. 1997-10-13 11:01:33 +00:00
joerg
aa68663b55 Style police: keep a variable list in alphabetical order, and add
pointless paren's to return statements.

Nitpicked by:	bde :)
1997-10-13 09:36:05 +00:00
kato
d977718fc1 Synchronize with sys/i386/isa/wd.c revision 1.141. 1997-10-13 09:24:04 +00:00
kato
65f863eadb Synchronize with sys/i386/isa/sio.c revision 1.184. 1997-10-13 09:23:14 +00:00
kato
9b1b334b8a Synchronize with sys/i386/i386/userconfig.c revision 1.269. 1997-10-13 09:22:03 +00:00
kato
f1f94ee06d Synchronize with sys/i386/i386/machdep.c revision 1.269. 1997-10-13 09:21:16 +00:00
hoek
69af1b4afb 1) Remove comment about tip(1) not accepting comments in /etc/phones
Forgotten-By: rgrimes, early '94 (see rev 1.3, 1.4).

2) Use 555-#### examples to avoid potentially expensive accidents.

3) Escape @ in example pn capability (see related FAQ.sgml question).
1997-10-13 03:17:09 +00:00
fsmp
e1eb6ef445 Disable the TEST_CIL code till I can commit the complete solution.
Noticed by:	Peter Wemm <peter@netplex.com.au>
1997-10-13 00:01:53 +00:00
julian
5edc58c755 if we free all the links to a node, then by definition
we freed the name we used to find it..
SO DON'T free it again later!

pointy hat over here please..
1997-10-12 22:27:11 +00:00
brian
6643d67546 Un-spam ip_sum (arrgh - I don't know how this made
it into my patches :()
1997-10-12 21:43:55 +00:00
imp
7479bf72ed Make mountd use -r by default. Hopefully this will cut down the number
of complaints that FreeBSD's mountd doesn't allow mounting of swap files
for OSes like SunOS, NetBSD and OpenBSD.
Submitted by:   Joerg Wunsch
1997-10-12 20:37:20 +00:00
phk
36e7a51ea1 Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
Distribute all but the most fundamental malloc types.  This time I also
remembered the trick to making things static:  Put "static" in front of
them.

A couple of finer points by:	bde
1997-10-12 20:26:33 +00:00
wosch
8ae70d2227 Delete ctm_scan program. There is no manpage for ctm_scan
and nobody use it.

Reviewed by: phk & Richard Wackerbarth
1997-10-12 19:58:53 +00:00
jkh
63cf77c18c Back out my LALT -> META change until we figure out a way to make it
work sympathetically with the function keys.
1997-10-12 19:57:49 +00:00
wosch
3ddcf87422 Support output format html.
Add make variables INFO2HTML, TEX, DVIPS, DVIPS2ASCII.
1997-10-12 18:54:34 +00:00
sos
88c80cb8cc Fix bug when using DEVFS, drives on second controller sisn't appear
in the device filesystem.

Submitted by:	Andre Albsmeier <Andre.Albsmeier@mchp.siemens.de>
1997-10-12 16:22:01 +00:00
jkh
ce13ade8fa Update to reflect current affairs. 1997-10-12 16:21:36 +00:00
jkh
efc02b6453 Separate the siamese twins that were the partition and label editor.
Now you can use one without entering the other and it will DTRT.
These changes just allowed me to do the most straight-forward new disk
installation I've ever managed with sysinstall.
1997-10-12 16:21:21 +00:00
peter
f8166c2605 Try and fix some style problems 1997-10-12 15:24:39 +00:00
peter
5e16d91d2d Attempt to support IPX.
Suggested patch by: Vasily V. Grechishnikov <bazilio@ied-vorstu.ac.ru>
 (plus cut/paste, whitespace and typo fixes)
1997-10-12 14:14:27 +00:00
joerg
0e8a4e7303 Do not account the tape change time for ETA estimations.
PR:		bin/4369
Submitted by:	blank@fox.uni-trier.de (Sascha Blank)
1997-10-12 14:09:13 +00:00
joerg
8eaf7f4121 Make df(1) exit with non-success status if something went wrong.
PR:		bin/4415
1997-10-12 13:55:43 +00:00
joerg
238c0273fe The unit for the B option is 1 KB, not `dump records'.
PR:		docs/4223
1997-10-12 13:10:26 +00:00
peter
beb1572d35 Fix a serious bug in the recursion processor. When descending a tree,
the descend can jump several directories down in one hit, eg: when a user
mentions multiple directories on the command line, eg: "cvs diff
sys/i386/isa/snd sys/sys".  The problem is that the chdir()s are
pushed/popped to account for this, but the "full path" merely has
the last component chopped off on the way back up.  This busts lots
of things when the recursion is backing up more than one directory (such
as in the example).  This causes 'cvs diff' to emit bogus Index: lines,
'cvs update' to do really stupid things, 'cvs commit' to record incorrect
pathnames etc.  I'm not sure that what I've done is quite correct, there
seems to be a comment that implies some sort of problem with "." vs. ""
equivalence or not, perhaps this is a problem on some other OS's, but
I've not (yet) found any problems.  This bug has been present since
at least cvs-1.8.1.

This should fix problems noted by several people including asami and jmg.
1997-10-12 12:47:05 +00:00
jkh
468930a717 Now that nested menus work properly, stop using the kludged-up
DITEM_RECREATE flag.
1997-10-12 12:11:14 +00:00
jkh
90cf2421d2 Fix improperly re-entrant code which caused the menu spammage we've
been seeing since 2.2.1.
Pointed-in-the-right-direction by:	phk
1997-10-12 12:09:46 +00:00
kato
74b4da4ea8 Synchronize with sys/i386/isa/isa.c revision 1.106. 1997-10-12 12:02:20 +00:00