Commit Graph

3476 Commits

Author SHA1 Message Date
jkh
7fe482c8b0 MF22: correct bogus failure return. 1998-02-13 08:01:01 +00:00
wpaul
8fe3eebc42 Close PR #2206: fix the services.byname target so that it can handle
/etc/services entries with any protocol instead of just udp and tcp.
Rather thani having the awk script explicitly search for 'udp' or 'tcp'
in the second field using index(), use split() to break up the field
at the '/' character if it exists, which extracts the protocol from
the field no matter what it is.

PR: 2206
1998-02-13 03:38:41 +00:00
yokota
6f7f019629 Add an entry for the Brazilian keymap with accent key definitions
in the keymap menu.
1998-02-12 17:53:19 +00:00
wosch
95821ff4ba pwd_mkdb option '-c' was renamed to -C some weeks ago.
PR: bin/5715
Submitted by:  dannyman <dannyman@arh0300.urh.uiuc.edu>
1998-02-11 23:31:24 +00:00
wpaul
02d038fd99 Fix a bug in the database handle caching. This has to do with the way the
underlying database code works. When dealing with first/next queries, you
have the notion of a database 'cursor,' which is essentially a file pointer
for the database. To select the first entry, you do a fetch with the
R_FIRST flag set, then you can use the R_NEXT flag to enumerate the other
entries in the database. Unfortunately, doing a direct fetch with no flag
does _not_ set the 'cursor,' so you can't do a direct fetch and then
enumerate the table from there.

The bug is that cached handles generated as the result of a YPPROC_MATCH
were being treated as though they were the same as handles generated by
a YPPROC_FIRST, which is not the case. The manifestation is that if you
do a 'ypmatch first-key-in-map map' followed by a yp_first()/yp_next()
pair, the yp_first() and yp_next() both return the first key in the
table, which makes the entry appear to be duplicated.

A couple smaller things since I'm here:

- yp_main.c and yp_error.c both have a global 'int debug' in them.
  For some reason, our cc/ld doesn't flag this as a multiply defined
  symbol even though it should. Removed the declaration from yp_main.c;
  we want the one in yp_error.c.

- The Makefile wasn't installing ypinit in the right place.
1998-02-11 19:15:32 +00:00
brian
78287d51b2 Move handle_signals() to before the FD_SETs. handle_signals()
may result in a our modem closing after it's made its way into
the fd_set, resulting in a program exit (with select(): bad file
descriptor) rather than a dropped link.
1998-02-10 22:33:43 +00:00
jkh
c852558573 Form device names correctly with new unit# syntax. 1998-02-10 18:43:11 +00:00
jkh
7ef8a69bf6 Totally change the way that devices are made in the MFS and subsequently
probed in sysinstall.  Rather than make template devices and use up lots
of inodes, also restricting the number of devices that can be dealt with,
mknod all necessary devices as necessary using built-in information.
This removes a number of constraints on the number and type of devices
that sysinstall can see.
1998-02-10 18:31:27 +00:00
eivind
466933731d All our options are new-style now - enable the warning if unrecognized
(that is, old-style) options are found.
1998-02-09 23:59:51 +00:00
jkh
18cd688d96 Remove some ancient cruft discovered during a recent code review. 1998-02-08 20:18:19 +00:00
jkh
c610f2da03 MF22: reset root flags properly. 1998-02-06 04:35:21 +00:00
guido
1c9cf806f1 This seems to fix my problem that after resume/suspend, sometimes
pccard claims that the driver is already allocated.
It works around a race when pccardd gets woken up too late after a resume.

This is a 2.2.6 candidate.
Reviewed by:	nate@freebsd.org
1998-02-04 20:19:39 +00:00
wpaul
dbf89ade74 Fix Makefile.yp so that it no longer creates a temporary file called
/tmp/ypmake, thereby fixing problems with successive map updates
possibly reading stale copies of this file left behind by a previous
failed run.

PR:	 5571
1998-02-04 16:16:58 +00:00
wollman
5d47725872 Install printcap.5 from here. 1998-02-04 15:59:10 +00:00
ache
db44e17ea5 Add comment describing settings
Use 66 lines on the page
1998-02-04 13:03:57 +00:00
ache
9f7f3c2529 Add Russian printer filters, mandatory because hardware code page 866
is different with KOI8-R
1998-02-04 12:00:46 +00:00
charnier
03381089b1 Convert to mdoc. 1998-02-04 07:30:11 +00:00
ache
daf30b2504 Add Genius PnP Mouse (simple one) 1998-02-04 06:46:33 +00:00
brian
939d87b65e Merge from MP branch:
Correct magic number format string
1998-02-04 01:06:23 +00:00
wosch
91b3d9af94 Typo. 1998-02-02 15:46:44 +00:00
steve
c3bc523e8e setpwent now has a void return type, so remove the now bogus cast. 1998-02-01 17:11:07 +00:00
steve
af45e9528b Typo: PAT -> FAT.
PR:		5593
1998-02-01 05:58:42 +00:00
brian
342874fb3a Don't moan about not creating tunX.pid and ttyX.if if RELEASE_CRUNCH
is defined.
1998-01-29 00:44:15 +00:00
brian
77370f92cc Talk a bit about ongoing development. 1998-01-29 00:42:52 +00:00
brian
d284899e7c Make it clear that aliasing is done on the public interface, not
the private one.
1998-01-29 00:40:41 +00:00
jkh
e62c8eeed6 MF22: only fclose() OpenConn if non-NULL. 1998-01-28 04:42:38 +00:00
brian
1c9a27b464 Cosmetic:
Don't mention the authors name at startup.  He's already credited
  in the man page.  Instead, make the message consistent with the
  one given to the diagnostic port (and fix the grammar when entering
  `term' mode).
  Don't credit the zlib author in the man page as ppp isn't linked
  directly with zlib (it's shared).
  Mention when the OpenBSD port was first made available.
1998-01-27 23:14:53 +00:00
yokota
1fb3fbf762 Update the keymap menu. 1998-01-27 14:01:19 +00:00
julian
d7f7b1e670 A bit of the dpt userland utilities that got left out. 1998-01-26 06:26:41 +00:00
julian
c9bbca52f2 Obtained from: Simon Shapiro
Userland utilities to control, and monitor a DPT RAID system.
1998-01-26 06:20:48 +00:00
jmz
96686a66db The status command prints the audio position, the media catalog and the
volume value for the disc. It is now possible to specify additional arguments
(audio, volume, media) to print only a subset of the full status.
This is particularly useful with drives which stop playing when asked to
return the catalog number.
1998-01-26 00:57:54 +00:00
steve
0344603634 Allow comments to begin with multiple '#' characters.
PR:		4452
Submitted by:	Joao Carlos Mendes Luis <Jonny@mailhost.coppe.ufrj.br>
1998-01-25 17:51:10 +00:00
steve
d934dd8e2d Fix a couple of typos.
PR:		5561
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.jp>
1998-01-25 16:22:22 +00:00
yokota
42f3b538cd Fix typo.
PR: docs/5562
1998-01-25 15:49:00 +00:00
brian
4b6b8906a0 Fix error message.
Don't complicate the test compilation mentioned at the start of
the file.
1998-01-24 00:03:14 +00:00
brian
2fa1051841 Stop bogus warnings. 1998-01-23 22:29:16 +00:00
brian
b1b36a2e87 Re-implement the proxy arp sockaddr_dl search routine (again).
It now works :-) and searches all interface aliases.
1998-01-23 21:37:27 +00:00
jkh
5930ad49db In !dists case, invoke the custom dist menu rather than the toplevel
dist menu.  This makes a good deal more sense and should have been
this way all along.
1998-01-23 07:53:44 +00:00
brian
f1d93f530b Don't allow manual dialing unless in auto or interactive mode. 1998-01-23 04:36:42 +00:00
jkh
bc80affadb MF22: match entries for wfd 1998-01-22 21:14:31 +00:00
sos
e22d07fc0f Use /bin/pwd instead of a potentially shell builtin that does
not return the "real" path.
This makes it possible to have the .o files put in the /usr/obj
hierachy instead of in the /usr/src one.
1998-01-22 19:34:31 +00:00
charnier
da58dd2ba5 Add rcsid. Add usage() with up to date flag list. Use err(3). 1998-01-22 07:28:26 +00:00
charnier
ffa2a680a8 Convert to mdoc format. Document missing flags. 1998-01-22 07:26:08 +00:00
jkh
d7243159f2 Add entry for SMC 9432TX cards (tx driver). 1998-01-21 19:25:49 +00:00
brian
dc5134f336 Use the sockaddr_dl with the link#, not the ethernet address
when creating proxy arp entries.
1998-01-21 12:52:14 +00:00
brian
a70d82c35d Don't assume that a computer can have no more than
256 interfaces (mine doesn't).  Instead, find local
interface addresses using sysctl().
1998-01-21 10:55:39 +00:00
jkh
e21210fa71 I must have been smoking crack when I made this change. Using sh -c
in a vsystem() call is just a ludicrous way of calling sh -c "sh -c ..."
Whoops!  I don't know my own bloody code here!
1998-01-21 06:08:35 +00:00
brian
8a229af566 Remove unused #includes.
Make various bits static.
Remove unused variables.
Submitted by: eivind
1998-01-21 02:15:33 +00:00
imp
151ed161b7 Quote filenames more agressively.
Reviewed by:	jkh
Submitted by:	Hubert Feyrer
1998-01-21 00:12:56 +00:00
brian
7443167983 Allow an optional delay when specifying "set openmode active".
The delay defaults to 1 sec (as it always has) unless we've done
a ~p in interactive mode or we've actually detected a HDLC frame.
This is now cleanly implemented (via async timers) so that it is
possible for LCP to come up despite the delay if an LCP REQ is
received.

This will hopefully solve situations with slow servers or slirp
scenarios (where ECHO is left on the port for a second or so before
the peer enters packet mode).

Also, ~p in interactive mode no longer changes the value of the default
openmode delay and -dedicated mode enters packet mode in the right state
according to the value of openmode.
1998-01-20 22:47:48 +00:00