summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Spell void * as void * rather than caddr_t. This is complicated by thedes2002-04-2810-101/+105
| | | | | | fact that caddr_t is often misspelled as char *. Sponsored by: DARPA, NAI Labs
* Fix a number of warnings. A gcc preprocessor bug relating to macrosiedowse2002-04-281-38/+53
| | | | | | | with variable numbers of arguments made this slightly harder than it should be. Avoid the bug by not doing string concatenation within the macros, and instead add a new function to syslog or print the error messages.
* Oops, remove references to NLOCKED and NWANTED, now that they noiedowse2002-04-282-8/+0
| | | | longer exist.
* Include <netinet/in.h> to squash one more compile-time warning.gad2002-04-251-0/+2
| | | | MFC after: 3 days
* When using %p to print out pointers to struct's, first cast the valuesgad2002-04-251-7/+8
| | | | | | | | to (void *) to satisfy some stricter warning-level checks in the new gcc (on sparc64). Reviewed by: obrien MFC after: 4 days
* PR: 33966hm2002-04-241-6/+6
| | | | | | Submitted by: Nicola Vitale <nivit@libero.it> Reviewed by: hm MFC after: 3 days
* handle ECONNABORTED.ume2002-04-241-1/+3
| | | | | | Submitted by: morito@double-fault.net Obtained from: KAME MFC after: 3 days
* typo in connect(2) error handling.ume2002-04-241-2/+2
| | | | | | Submitted by: Yukiyo Akisada <Yukiyo.Akisada@jp.yokogawa.com> Obtained from: KAME MFC after: 3 days
* Change the name of the 'bin' distribution to 'base'.obrien2002-04-236-26/+26
| | | | | | | This is done since it contains much more than /bin, and also gets in the way when making a combined install+fixit CD. OK'ed by: jkh
* Improve the error message the user sees if the startdaemon routine cannotgad2002-04-231-4/+6
| | | | | | | connect() to the socket for lpd. Tell them this error probably means that the master 'lpd' process is not running. MFC after: 4 days
* Implement new printcap option of "rc" aka "remote.resend_copies".gad2002-04-234-11/+70
| | | | | | | | | | | | This is a boolean option, and if it is specified in a print queue for a remote host, it causes lpd to resend the data file for each copy the user requested on 'lpr -#n'. This is useful for network printers which accept lpd-style jobs, but which ignore the control file (and thus they ignore any request for multiple copies). PR: 25635 Reviewed by: short review on freebsd-audit MFC after: 6 days
* Add 'const' to some casts to fix two warnings that are printed by thegad2002-04-222-4/+4
| | | | | | new gcc (on sparc64). MFC after: 4 days
* Add 'const' to some casts to fix two warnings that are printed by thegad2002-04-221-2/+2
| | | | | | new gcc (on sparc64). MFC after: 4 days
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-2219-26/+26
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Don't needlessly redefine the afterinstall target.ru2002-04-221-6/+1
|
* Add a Makefile for this.jake2002-04-221-0/+6
|
* Underline the default value for rp=, the same way all the other string-typegad2002-04-221-1/+1
| | | | | | default values are underlined (instead of using fake double-quotes). MFC after: 4 days
* Add description of `mc' (max copies), add short-form to long-form mappinggad2002-04-223-0/+6
| | | | | | | | for `tf' (troff filter), and add a cross-reference to chkprintcap in some lpr-related man pages. Submitted by: dwmalone MFC after: 4 days
* Turn blank lines into .Pp . This does not significantly change thefenner2002-04-211-1/+2
| | | | | | rendering of the man pages (turns some sequences of two blank lines into a single blank line), and eliminates 306 errors generated while formatting named.conf.5 .
* Don't load the netgraph line discipline. When it's in use, TIOCMGETbrian2002-04-211-0/+7
| | | | | | | fails and on loss of carrier, the device doesn't become selectable with 0 bytes to read. Problem reported by: ache
* Improve the Bzip2 handling.obrien2002-04-204-19/+35
| | | | Sponsored by: FreeBSD Mall, Inc.
* sysinstall compiles on sparc64.jake2002-04-201-4/+1
|
* Use `The .Nm utility'charnier2002-04-2029-102/+181
|
* Add character translation table between Unix and NetWare accordingbp2002-04-201-9/+9
| | | | | | | to Sweden standards. Submitted by: Roger Olofsson <roger.olofsson@kommun.engelholm.se> MFC after: 1 week
* Change lpd to recognize the '-s' parameter as a preferred synonymgad2002-04-192-13/+26
| | | | | | | | | | for what is currently the '-p' parameter. '-s' is what NetBSD used (and they implemented it before I added -p in FreeBSD), and it also matches the '-s' option in syslogd. Someone in OpenBSD land had also talked about adding a '-s' option, but it hasn't happened yet. MFC after: 5 days
* Remove a safety-setting line which is unnecessary now that the previousgad2002-04-191-1/+0
| | | | | | line is using strlcpy instead of strncpy. MFC after: 4 days
* Fix 'deamon' -> 'daemon' in a comment.gad2002-04-191-1/+1
| | | | | Obtained from: NetBSD, OpenBSD MFC after: 4 days
* Add a little detail to the syslog-msg that comes up when lpd can notgad2002-04-191-2/+3
| | | | | | execute a given filter. MFC after: 4 days
* Explicitly specifies sin6_family & sin6_len of sockaddr_in6 for raw socketsuz2002-04-191-1/+3
| | | | | | | | | | | | | | destination. (Currently lack of their specification does not lead to any problem, because kernel does not check the consistency between actual address and its address family / length on raw socket. However kernel should always check their consistency and stop sending packets if there is a contradiction. Considering backward compatibility of programs, I just fixed rtsol now; I'd like to fix the kernel behavior later.) Reviewed by: ume MFC after: 3 days
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.suz2002-04-199-184/+78
| | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week
* Clean up usage message: don't put optional parameter's in brackets.rwatson2002-04-191-7/+7
| | | | | | | | Update copyright date. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Extracted from: green
* Add variable substitutions for SOCKNAME, IPOCTETSIN, IPOCTETSOUT, IPPACKETSIN,brian2002-04-172-32/+136
| | | | | IPPACKETSOUT, IPV6OCTETSIN, IPV6OCTETSOUT, IPV6PACKETSIN, IPV6PACKETSOUT, OCTETSIN, OCTETSOUT, PACKETSIN, PACKETSOUT and SOCKNAME.
* Make mppath and masterpasswd pointers instead of arrays, and initializedes2002-04-171-2/+4
| | | | | | | | | them to point at static strings that contain the default paths. This makes 'vipw -d' work again (I broke it in rev 1.21; apologies for taking so long to fix it.) Spotted by: Olivier Houchard <doginou@cognet.ci0.org> Sponsored by: DARPA, NAI Labs
* Don't display an extraneous ``: '' with some packets in/packets out diagnosticsbrian2002-04-161-1/+1
|
* Make the way FSM options are processed easier to read by using structuresbrian2002-04-1612-731/+746
| | | | | | | | | | | instead of u_char *. The changes are cosmetic except: RecvConfigAck() now displays the options that are being ACK'd Huge (bogus) options sent from the peer won't cause an infinite loop SendIdent and ReceiveIdent are displayed consistenlty with other FSM data LCP AUTHPROTO options that aren't understood are NAK'd, not REJ'd
* Constify and stylify yppusherr_string().des2002-04-161-6/+11
|
* Correct spacing.dd2002-04-161-1/+1
|
* Remove bogus reference to _use_yp.des2002-04-151-9/+1
|
* When it's necessary to kldload tun(4), don't forget to re-try to openbrian2002-04-153-8/+15
| | | | | | tun0. Submitted by: qhwt@myrealbox.com
* Make the MTRR code a bit more defensive - this should help peopledwmalone2002-04-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trying to run X on some Athlon systems where the BIOS does odd things (mines an ASUS A7A266, but it seems to also help on other systems). Here's a description of the problem and my fix: The problem with the old MTRR code is that it only expects to find documented values in the bytes of MTRR registers. To convert the MTRR byte into a FreeBSD "Memory Range Type" (mrt) it uses the byte value and looks it up in an array. If the value is not in range then the mrt value ends up containing random junk. This isn't an immediate problem. The mrt value is only used later when rewriting the MTRR registers. When we finally go to write a value back again, the function i686_mtrrtype() searches for the junk value and returns -1 when it fails to find it. This is converted to a byte (0xff) and written back to the register, causing a GPF as 0xff is an illegal value for a MTRR byte. To work around this problem I've added a new mrt flag MDF_UNKNOWN. We set this when we read a MTRR byte which we do not understand. If we try to convert a MDF_UNKNOWN back into a MTRR value, then the new function, i686_mrt2mtrr, just returns the old value of the MTRR byte. This leaves the memory range type unchanged. I have seen one side effect of the fix, which is that ACPI calls after X has been run seem to hang my machine. As running X would previously panic the machine, this is still an improvement ;-) I'd like to MFC this before the 4.6 code freeze - please let me know if it causes any problems. PR: 28418, 25958 Tested by: jkh, Christopher Masto <chris@netmonger.net> MFC after: 2 weeks
* Add support for an additional field to the packages/INDEX file. Ifmurray2002-04-131-8/+45
| | | | | | | | | | | | | | | | | | | | | | | present, this field specifies the media volume that the disc is contained on. If the volume of a given packages is different than the current volume of mediaDevice, then the user is prompted -- "This is disc #%d. Package %s is on disc #%d\n" "Would you like to switch discs now?\n" If the user selects yes, then DEVICE_SHUTDOWN is called and the user is then prompted -- "Please remove disc #%d from you drive, and add disc #%d" This works well for a carefully crafted INDEX file, but more work needs to be done to sort dependencies on a given package based on the volume that they reside on, to minimize the amount of disc flipping required of the user. This commit is a no-op for normal INDEX files and FreeBSD CDs. These additional features are only used if the INDEX and cdrom.inf file have multi-volume support.
* Read the CD_VOLUME property from the cdrom.inf file and use it tomurray2002-04-131-0/+7
| | | | initialize the volume ID for the media device in use.
* Add the concept of a volume to the device and package structures. Ifmurray2002-04-132-0/+4
| | | | | these values are different for a given package, then we must prompt the user to insert another disc before the package can be installed.
* Stop "make depend" from attempting to delete non-existent .depend.ru2002-04-111-1/+1
|
* Make kldxref work for Elf64 (which has 32 bit hash tables)peter2002-04-112-7/+7
|
* When binding to transports if getnetconfigent() fails then actuallyalfred2002-04-111-1/+2
| | | | | | print out the correct transport it failed on rather than always spitting out 'udp', also call nc_sperror() to give a more verbose error message detailing the problem.
* Only remove the '\n' at the end of a line if there is one.dwmalone2002-04-101-1/+2
| | | | | | | | I missed this as part of the fix to the PR below. PR: 31265 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 1 week
* Close a very small window during which new (empty) instances of rotated logsheldonh2002-04-101-4/+13
| | | | | | | | | | | | | files are owned by the caller of newsyslog (usually root:wheel) even if alternative ownerships were specified in newsyslog.conf. Note that this is part of a wider problem which is fully addressed in OpenBSD. Anyone with the time and inclination to incorporate the full fix for the wider problem will receive no complaints from me and should feel free to walk all over this delta. PR: bin/36738 MFC after: 1 week
* timed(8) manual page has some incorrect grammertrhodes2002-04-091-4/+2
| | | | | PR: 36457 No objections from: ru
* chown(8) was not describing symlinks correctly, fixed.trhodes2002-04-091-3/+6
| | | | | | PR: 36447 No objections from: ru MFC after: 3 days
OpenPOWER on IntegriCloud