Commit Graph

18237 Commits

Author SHA1 Message Date
imp
0f74359d5e Integrate changes from OpenBSD's efforts to use the FreeBSD ports system.
Generalize the selection of programs to run based on the existance of files
rather than the OS names that we find.  Add comments about me being the
keeper of the OpenBSD mods of this file.  Use ftp on OpenBSD rather than
fetch since OpenBSD's FTP supports urls and there is no fetch.

Reviewed by:	Joerge Wunch, Jordan Hubbard, and others in ports I've forgotten
Obtained from:	OpenBSD with changes from me.
1996-12-25 18:19:22 +00:00
wpaul
9595ea6d1e More async resolver refinements:
- yp_main.c: Always add the resolver socket to the set of fds
  monitored by select(). It can happen that pending == 0 but we
  still have some data in the socket buffer from an old query.
  This way, the data will be flushed in a timely manner.

- yp_extern.h: remove proto for yp_dns_pending() since we don't need
  it anynmore.

- yp_server.c: call yp_async_lookup_name()/yp_async_lookup_addr()
  functions with the svc_req pointer as an arg instead of the xprt.
  (The svc_req struct includes a pointer to the transport handle,
  and it also has the service version number which the async DNS
  code will need. (see below))

- yp_dnslookup.c:

   o Nuke yp_dns_pending() since we don't need it anymore.
   o In yp_run_dnsq(), swallow up and ignore replies if no requests
     are pending or the ID doesn't match any of the IDs in the queue.
   o In yp_send_dns_reply(), we assume that we will always be
     replying to an NIS v2 client. While this will probably always
     be the case, we do support the v1 'match' procedure, and it
     has a different result struct than v2. For completeness,
     support replying to both NIS v1 and v2 clients.
   o Update the queue entry structure to include a member to
     keep track of the NIS version number.
   o Have yp_async_lookup_name/addr() extract the version number
     from the svc_req structure and save it with the queue entry
     for yp_send_dns_reply() to inspect later.
   o Add some comments.
1996-12-25 18:10:35 +00:00
max
59eadfda91 Merge the en version chnages made in 1.41 -> 1.42.
Submitted by:	Tomoo WATANABE <tomo@maple.elcom.nitech.ac.jp>
1996-12-25 04:19:52 +00:00
ache
11341c053f Handle en_US, en_CA, en_AU now
Should go into 2.2
1996-12-25 02:37:35 +00:00
ache
8a8b76f982 Add missing src-release and src-tools to individual targets list 1996-12-25 01:51:53 +00:00
steve
9079a13346 Fix handling of -o and -a operators in the 3 argument case.
Submitted by: Tom Rush <tarush@mindspring.com>
1996-12-25 00:08:10 +00:00
steve
3d5f13bf93 With these changes sh(1)'s trap command should be POSIX-compliant,
while remaining (becoming :) compatible with other popular shells.
Specifically these changes include:

1) Implement 'trap -l' to get a list of valid signals names.  This
   is useful if you wanted to do something like reset all signal
   handlers to there defaults values, in which case something like
   this will do the trick.

	trap `trap -l`

2) Reformat the output of 'trap' so it can be saved and later eval'd
   to restore the saved settings.

3) Allow the use of signal names as well as signal numbers.

4) Fix trap handling of SIGCHLD so that commands like the following
   (albeit, contrived) won't cause sh(1) to recurse ad infinitum.

	trap uname 0 20

5) Make variables static that are used only in trap.c.

6) Minor 'style(9) police' mods.
1996-12-24 23:59:53 +00:00
wpaul
d594a0a446 Another one-liner: remember to NUL terminate local copy of NIS host
lookup results. Without this, doing multiple host/addr lookups in a
single process yeilds strange results (the buffer is static, and
garbage may be left behind from previous lookups).

I just noticed this in 2.2-BETA. Unless somebody threatens to chop my
hands off with an axe, I'm going to move this to the 2.2-RELENG branch
shortly.
1996-12-24 17:01:49 +00:00
andreas
3d44e7b8d1 corrected Sascha's Mail address. Thanks Joerg for your ,sharp eyes' ! 1996-12-24 15:37:41 +00:00
kato
6072ac782f Synchronize with sys/i386/isa/sio.c revision 1.155 (use breakpoint()
instead of Debugger()).
1996-12-24 11:47:52 +00:00
kato
67efd9fff6 Synchronize with sys/i386/i386/userconfig.c revision 1.79 (cosmetic
change).
1996-12-24 11:44:33 +00:00
joerg
6d981da88a Slightly re-order the sequence of commands issued, so try to send
the START UNIT command before testing whether the device is ready.
Maybe it should be done even earlier, i'm not 100 % sure.

Again, CD changers will most likely benefit from it.

While i was at it, also made the debugging case a little more verbose
about why the cdopen() yielded an ENXIO.  (Only in effect when
SCSIDEBUG is specified.)

Should eventually also go into 2.2.
1996-12-24 11:35:24 +00:00
joerg
92da8dac3d Do something Peter Dufault long since intended to do: make a current
error code with ASC/ASCQ 4/1 (``Logical unit is in the process of
becoming ready'') non-fatal.  Retry the operation until it will
eventually either yield a real error condition, or finally succeed.

Devices like CD changers or tape drives with a freshly inserted
cartridge should benefit from this.

Should go into 2.2 after some testing in -current.  I'd like to see
this in the release if possible.
1996-12-24 11:32:41 +00:00
wpaul
d99939c736 Fix some bugs:
- Don't dereference a NULL hostent pointer (if T_PTR lookup fails).

- Today I asked myself: "Self, you wrote this nifty async resolver
  that does a great job handling delayed replies to clients using
  the UDP transport, and the yplib code in libc always uses UDP
  (except for yp_all()). But what if some dork makes a DNS lookup using
  TCP?" Being the only dork on hand at the time, I tried it and was
  enlightened. As I suspected, my transaction ID frobbing hacks cause
  fireworks if called on a TCP transport handle (duh: the structures
  are different). Fix: check the type of socket in xprt->xp_sock using
  getsockopt() and don't use svcudp_get_xid() and svcudp_set_xid() for
  anything except SOCK_DGRAM sockets. (Since accept() gives you a
  new socket for each connection, the transaction ID munging isn't
  needed for TCP anyway.)
1996-12-24 02:44:52 +00:00
wpaul
4ab0d63c8a Make the __dns_getanswer() wrapper work right. For the newer versions
of BIND, we need to tweak some things to that gethostanswer() knows
whether or not we're dealing with an IPv4 or IPv6 address. (This'll
teach me to use a 2.1.0 system for NIS development -- but it's so nice
and stable I just can't being myself to upgrade it. :)
1996-12-24 02:10:24 +00:00
jkh
010a4ef701 Bring these up-to-date with Peter's compat distribution changes. 1996-12-24 00:23:43 +00:00
wosch
0426c0af88 comma typos 1996-12-23 23:09:55 +00:00
steve
dfe5d3d364 Oops, it needs little more caulk to get it right. 1996-12-23 22:29:03 +00:00
steve
6da76fc1dd Apply a little dab of bit caulk to keep those beggars
from leaking out.

Noticed by: bde
1996-12-23 22:16:35 +00:00
jkh
a845028255 BINMODE != BINOWN - I was wondering why the output files were owned by
uid 555. :-)
1996-12-23 21:47:28 +00:00
max
7e8328d6dd Added kernelopts.sgml to SRCS. 1996-12-23 21:30:52 +00:00
max
7ef094a86a Merge the en version changes made in 1.63 -> 1.64.
Submitted by:	Takashi Saeki <saeki@saskg.semicon.sony.co.jp>
1996-12-23 21:30:25 +00:00
max
330eac84f2 Merge the en version changes made in 1.19 -> 1.20. 1996-12-23 21:28:18 +00:00
max
f2f9858ab0 Fixed sgml errors. 1996-12-23 21:19:30 +00:00
max
ca3a8403c8 Add an empty file till the translation is completed. 1996-12-23 21:14:36 +00:00
phk
5ba49176a1 Remove a couple of private malloc() implementations, one of which
was unused afterall.
1996-12-23 20:21:35 +00:00
bde
3ba43f51b4 Use breakpoint() instead of Debugger() in siointr1(). Debugger() doesn't
work in fast interrupt handlers because it calls db_printf() which uses
%es for string stuff and %es isn't initialized.
1996-12-23 19:57:33 +00:00
bde
be356f2ac1 Don't redefine SCSI_NCR_DFLT_TAGS even in if FAILSAFE is defined. 1996-12-23 19:12:29 +00:00
bde
de2eeae4b6 Added undocumented SCSI_DELAY and SCSI_NCR_* options. SCSI_DELAY gets
tested a lot in GENERIC, but the others weren't in any config file and
some of them were broken.
1996-12-23 19:04:20 +00:00
joerg
b4b3d5f49e Fix a logico that sneaked into the manpath handling.
Turn off error messages from locate(1), we can't do very much about
its database not being ok anyway at this time.

Closes PR # bin/2183: whereis returns environ...
1996-12-23 18:55:32 +00:00
bde
60c5bef917 Sorted options. 1996-12-23 18:42:02 +00:00
bde
b3c6afb2ba Fixed spelling of SCSI_NCR_MAX*. 1996-12-23 18:40:40 +00:00
andreas
37671f980c Added Sascha Blank <blank@sliphost37.uni-trier.de> as FreeBSD
contributor because of his valuable bugfix to pgcc-current, which
allows usage of optimization levels >= 3.
1996-12-23 18:40:11 +00:00
bde
970ca1d1d3 Fixed quoting of MAXDSIZ and DFLTDSIZ. The quoting rules changed when
they were put in an options header.

Should be in 2.2.
1996-12-23 18:23:14 +00:00
wpaul
fbe1d95900 Change declaration of yp_errno from int to enum ypstat so that it
matches what's in ypserv/yp_extern.h (which I changed when I added the
async DNS stuff). The conflict broke the build of rpc.yppasswdd.

Pointed out by: bde
1996-12-23 18:15:41 +00:00
max
f5a25d1ebd Some translation improvement.
Submitted by:	Yoshiaki Uchikawa <yoshiaki@kt.rim.or.jp>
1996-12-23 14:01:37 +00:00
joerg
3f002b8b0a Cosmetic (wrt. the screen display) change: when re-enabling a device,
make sure it won't go into the PCI section.  Disabling and re-enabling
ed0 made it to the wrong section.

Submitted by:	msmith
1996-12-23 12:33:08 +00:00
joerg
fad157aa33 Add my description for how to add a new-style kernel option, including
Bruce's comments.
1996-12-23 12:20:05 +00:00
tg
b22a0e6e57 Add Mikhail Teterin for his jbig port. 1996-12-23 07:50:46 +00:00
jkh
7def3b1706 *Ahem* - opt_rlimit.h does not exist in the LKM case. This was another
2.2 build-breaker.. :(
1996-12-23 06:37:23 +00:00
steve
c9faf62a80 Don't use _POSIX_PATH_MAX to limit the size of the path, instead
use 'getcwd(NULL, 0)' just as pwd(1) does.

Suggested by: bde
1996-12-23 05:31:48 +00:00
peter
b6b474ae72 Add commented out samples on how to activate the compat libs during build.
Note that nothing is stopping somebody from cd'ing to src/lib/compat/<dist>
and doing a 'make all install' there by hand.
1996-12-23 05:17:09 +00:00
peter
46b1d1f894 Build the compat dists via the standard build with the rest of the tree
rather than as a special case.

Reviewed by:	jkh
1996-12-23 05:10:31 +00:00
peter
6c1ee6b728 In the spirit of Christmas, I give ye a gift!
- A major 11th hour, last second,  untested commit!

Build some infrastructure to clean up the compat lib distributions, and
also allow them to be installed from the source tree rather than having
to to and get the tarballs from freefall or a CD.  Some tweaks to
/etc/make.conf are in the pipeline to enable it.

This came about because it became apparent that we'd have to change the
compat21.tgz tarball to fix the NIS problem with 2.1.x binaries.  Since
it's tar..gz.uu, doing this would have caused a huge repository change
and we may as well try and fix it once and for all.  Now, adding/removing
libraries should have MUCH less repository impact.

Peril sensative sunglasses: on!
Flame proof suit: on!
Concept reviewed by a stream of ascii representing the opinion of: jkh
Changes casually reviewed by: jkh (but not actually tested)
1996-12-23 05:07:37 +00:00
asami
a45ab5c14b Suggested by: msmith
Add a little more sophistication to the md5 grep command.

Change the md5 checksum logic a bit.  Now, the message is printed
out for every successfully/unsuccessfully matched checksum, and it
aborts at the end if there was a mismatch.  Also, make missing checksum
and IGNORE file inconsistency fatal, as there is now no reason to have
a missing checksum.
1996-12-23 02:49:35 +00:00
davidn
678cf2c173 Correct file modes on updated /etc/skeykeys. 1996-12-23 02:27:29 +00:00
mpp
89e44cd0e4 Some more man page cleanup. 1996-12-23 02:19:12 +00:00
mpp
853fbca176 Minor mdoc/style fixes. 1996-12-23 02:03:15 +00:00
joerg
365b171ddf Fix a bug in the wt driver that could cause memory corruption.
Closes PR # kern/1065.

While i was at it, also reject IO requests that are not an integer
multiple of the device blocksize.

Submitted by:	vak@crox.net.kiae.su (Serge V.Vakulenko)
Confirmed by:	Georg-W. Koltermann (gwk@cray.com)
1996-12-23 01:53:13 +00:00
jkh
ba341fe3e8 Someone needs to teach Nate about the C pre-processor in general and the
workings of #error in particular.  He also broke the 2.2 build with this
change, leading me to wonder whether or not the changes were ever even
tested.  Folks, I'm happy to see people work directly on 2.2 like
this and will continue to encourage Nate to make direct commits, but
please TEST before committing!  I think that's a more than reasonable
prerequisite, and this code could never have worked at all, leading me to
believe that Nate skipped this most basic of steps.
1996-12-23 01:24:44 +00:00