summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Don't overflow in command-line argskris2000-10-091-2/+2
| | | | Submitted by: Mike Heffner <mheffner@vt.edu>
* Add :L and :U variable modifiers. These convert the variable's value towill2000-10-092-0/+38
| | | | | | | | | all-lower or all-upper case characters, respectively. These were added to further reduce differences between NetBSD/OpenBSD and FreeBSD make(1) to propagate OpenPackages. PR: 19959 Submitted by: Gaspar Chilingarav <nm@web.am>
* Add :C/// variable modifier, which is similar to :S/// in functionalitywill2000-10-092-0/+414
| | | | | | | | | | | | | | but allows for regex. I removed NO_REGEX since no one could give a reason to have it, and since we don't use make in bootstrap tools, it's not needed. This is mostly added to synch up with NetBSD/OpenBSD so as to eliminate roadblocks in the OpenPackages project (see http://www.openpackages.org/). It's also quite useful, and costs us only about 3 kilobytes of space. PR: 21605 Submitted by: Hubert Feyrer <hubertf@NetBSD.org> Reviewed by: silence on -arch Obtained from: NetBSD
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-081-1/+1
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* Use the correct timestamp for the -C -p case when the comparison fails.bde2000-10-081-2/+2
| | | | | A garbage timestamp was used for at least installing /dev/null with -C -p when the target doesn't already exist.
* Document the fact that sockstat now lists Unix domain sockets, and the newdes2000-10-071-3/+27
| | | | command-line options for selecting what to display.
* Total rewrite. This was actually the first non-trivial Perl script I everdes2000-10-071-26/+129
| | | | | | | | | | | | wrote, and as such was not very pretty. Changes that may cause problems for people who use sockstat in scripts: - sockstat(8) now displays Unix domain sockets in addition to IPv4 and IPv6 - the last period in local and foreign addresses is changed to a colon to make the port number easier to spot - IPv4 and IPv6 sockets are listed separately (IPv4 first, then IPv6, then Unix)
* List the -t option in usage().alex2000-10-061-1/+1
| | | | | PR: 21734 Submitted by: Giorgos Keramidas <keramida@ceid.upatras.gr>
* List the options in alphabetic order.alex2000-10-061-1/+1
| | | | | PR: 21734 Submitted by: Johan Karlsson <k@numeri.campus.luth.se>
* It may happen so that the local talk daemon is not running.ru2000-10-051-0/+1
| | | | Let the user know...
* Do not allow `finger -m /somefile' as well.ru2000-10-051-3/+3
|
* Replaced unsafe use of sprintf() with snprintf().ru2000-10-031-2/+2
|
* Don't allow finger /somefile, only allow filname expansions frombrian2000-10-021-0/+10
| | | | | | inside /etc/finger.conf PR: 21704
* Instead of printing '(null)' if there is no tty, print 'no tty'.n_hibma2000-10-021-1/+5
| | | | | In the case where the program is executed by a daemon running in the background the terminal might not have a tty. The '(null)' is confusing.
* Assume MAINTAINER. I will be taking the job of merging NetBSD/OpenBSDwill2000-09-291-0/+2
| | | | | | | improvements (including :C & :L, among others). After that, I'll be coming up with other ways to improve make(1). Discussed in spirit with: peter
* Add ia64 support and fix problems when cross-building when the host hasdfr2000-09-291-13/+15
| | | | a different pointer size from the target.
* *** empty log message ***peter2000-09-252-12/+28
|
* Do not call freeaddrinfo(res0) twice.ru2000-09-251-0/+1
| | | | PR: bin/21476
* Don't assume ai0->ai_canonname will always be filled in. Print thewollman2000-09-241-1/+6
| | | | | | user-supplied host name if we can't get a canonical name. Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
* Implement IPv6 support. Also restructure the way multi-homed hostswollman2000-09-221-57/+91
| | | | are treated, regardless of protocol.
* Delete a bogus reference to T/TCP -- the problem still exists on Standardwollman2000-09-221-3/+1
| | | | TCP.
* Fix buffer overflow when DISPLAY is longer than 43 characters. Thisimp2000-09-201-4/+7
| | | | | | | | | | is not exploitable because telnet doesn't run with elevated privs. Didn't fix all the other potential buffer overflows. Would be a good task for someone who has lots of time to carefully study each case because cut and paste solutions are dangerous for this code base. Added $FreeBSD$ in the same way that command.c did it.
* Fixed the printing of header for IPv4 routing table without -l option.ru2000-09-181-1/+1
| | | | Broken in rev 1.44.
* Correct a few typos, including a mis-represented option (-s instead ofsheldonh2000-09-181-4/+4
| | | | | | -h for NIS host). Submitted by: Peter Avalos <pavalos@theshell.com>
* Remove unneded -ltermcapache2000-09-162-4/+5
|
* Remove unneded -lmytinfoache2000-09-161-2/+2
|
* cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace ↵jkh2000-09-141-2/+6
| | | | | | -I/usr/src/usr.bin/kdump/../.. Fix ioctl.c creation to deal with the depend case more properly. Submitted by: Ruslan Ermilov <ru@sunbay.com>
* Fix ioctl.c creation to deal with the depend case more properly.jkh2000-09-141-2/+6
| | | | Submitted by: Ruslan Ermilov <ru@sunbay.com>
* remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.jkh2000-09-142-2/+2
| | | | Approved by: sef
* Don't drop out when we've processed argc - 1 names.... argumentsbrian2000-09-121-7/+3
| | | | | | may expand to more than one user. PR: 21228
* Activate hesinfo.nectar2000-09-081-0/+1
| | | | Noticed by: Don Lewis <Don.Lewis@tsc.tdk.com>
* Fix breakage introduced in rev.1.7. yystacksize and yysslim are global andn_hibma2000-09-071-0/+4
| | | | | | | should be prefixed by YYPREFIX as well. Only relevant if -p <yyprefix> is used. Used in cases where multiple parsers are used in executable.
* Major update to the way synchronization is done in the kernel. Highlightsjasone2000-09-071-3/+3
| | | | | | | | | | | | | | | include: * Mutual exclusion is used instead of spl*(). See mutex(9). (Note: The alpha port is still in transition and currently uses both.) * Per-CPU idle processes. * Interrupts are run in their own separate kernel threads and can be preempted (i386 only). Partially contributed by: BSDi (BSD/OS) Submissions by (at least): cp, dfr, dillon, grog, jake, jhb, sheldonh
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-066-4/+352
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* Reintroduce functionality and error checks that were boneheadedly removeddes2000-09-062-2/+13
| | | | | | in the previous commit. Pass me the pointy hat. PR: bin/21061
* When we have both a rcsid and sccsid, ifdef 0 the sccsid. Thisimp2000-09-041-0/+2
| | | | | appears to be the standard FreeBSD way to do this. style(9) is silent about this, however.
* getopt and friends are declared in <unistd.h>imp2000-09-0419-41/+13
| | | | getopt returns -1 not EOF.
* optarg and optind are declared in unistd.h.imp2000-09-043-6/+0
| | | | h_error is declared in netdb.h
* Use dirname(3).des2000-09-031-68/+4
|
* Use basename(3).des2000-09-031-62/+4
|
* Don't try to set the mtime of the output file if it's not a regular file.des2000-09-021-1/+2
| | | | Pointed out by: cwt
* Don't unlink the target file if it's not a regular file.des2000-08-311-1/+2
|
* Restore support for displaying raw IPv4 sockets andru2000-08-301-2/+2
| | | | | | correct the author's name. Were broken in rev 1.6. Approved by: des
* Invoke netstat(1) and fstat(1) with full path.des2000-08-301-2/+2
|
* Get rid of the old version.green2000-08-291-60/+0
|
* Use a C version of which(1).green2000-08-292-8/+146
| | | | | Submitted by: Dan Papasian <bugg@bugg.strangled.net> Reviewed by: jhb
* After positive feedback from a few folks, activate a switchover topeter2000-08-284-155/+36
| | | | | | | | | using killall.c instead of the perl version that depends on procfs. The C version uses sysctl(). The program is based on a hack that was originally written about 6 years ago and has evolved somewhat since then. (which is why it is a superset of killall.pl, rather than being a clone.) With apologies to: wosch
* Add 'shot', using the definition used by bars and shotglasses.billf2000-08-271-0/+1
|
* Try and fix up some bogus indentation leftovers from emacs severalpeter2000-08-271-2/+2
| | | | years ago.
* Sigh, today is not my day. Convert a verbose while() .. loop into a for()peter2000-08-271-4/+1
| | | | | | loop. Submitted by: billf
OpenPOWER on IntegriCloud