summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Add missing include for <ctype.h>green2001-11-061-27/+47
| | | | | | | Make sockaddr printing code unbad. Always copy in sizeof(sockaddr_un) bytes for an AF_UNIX sockaddr, despite what the length may be.
* Anding the fsid with 0xffff was causing aliasing problems.dwmalone2001-11-053-4/+4
| | | | | | | PR: 17405, 16320 Submitted by: Mark W. Krentel <krentel@dreamscape.com> Submitted by: Peter Edwards <peter.edwards@ireland.com> MFC after: 2 weeks
* Make filenames const to avoid a few warnings.dwmalone2001-11-055-9/+15
| | | | | | Add FreeBSD tags. Reviewed by: cmp
* Don't use gcc -Wall flag. Add FreeBSD: line.dwmalone2001-11-051-1/+1
|
* Add two Russian holidays (by osa)ache2001-11-051-6/+8
| | | | | | | Lowercase some titles (by me) PR: 31769 Submitted by: "Sergey A.Osokin" <osa@FreeBSD.org.ru>
* Nuke spaces in front of tabs.dd2001-11-041-1/+1
|
* Fix compilation with -DDEBUG.dd2001-11-041-1/+1
| | | | | PR: 31536 Submitted by: Alan Batie <alan@agora.rdrop.com>
* Make cmp work by mmapping chunks of a file, rather than the wholedwmalone2001-11-041-14/+52
| | | | | | | | file at one time. PR: 24732 Submitted by: Andrew L. Neporada <andr@dgap.mipt.ru> MFC after: 2 weeks
* Add myself.shige2001-11-041-0/+1
|
* Add myself.nobutaka2001-11-031-0/+1
| | | | Reviewd by: knu
* Remove a debugging warnx() that got committed by mistake.des2001-11-031-1/+0
|
* Bring Gawk back. There just isn't any other POSIX compliant AWK out there.obrien2001-11-021-1/+0
| | | | The biggest thing missing from Bell-Labs AWK is the character class regexes.
* In order to perform faster when doing "head -n", use a pair ofalfred2001-11-021-7/+8
| | | | | fgetln/fwrite instead of getc/putchar, this seems about five times faster.
* change a global into a local, misc style fixesalfred2001-11-021-7/+5
|
* Really fix this work to work. While rev 1.24 did allow awk to run w/oobrien2001-11-011-3/+3
| | | | complaining; the resulting output was useless.
* Utilize the property of 'echo' in that it removes \n from its input.obrien2001-11-011-1/+1
|
* Add -K support to gprof(1), which enables dynamic symbol resolution fromgreen2001-10-306-4/+89
| | | | | | | | | the currently-running kernel (and supercedes an executable file argument given). With this change, properly-compiled KLD modules are now able to be profiled. Obtained from: NAI Labs CBOSS project Funded by: DARPA
* Switch to the One True AWK from Bell-Labs, away from GNU AWK.obrien2001-10-302-0/+37
|
* localtime() was being called on an int pointer (due to recentdillon2001-10-291-6/+13
| | | | utmp-related commits). fixed.
* Fix long format mismatch with int argdillon2001-10-291-1/+1
|
* o Restore previous inconsistent style to login_fbtab.c, following itsrwatson2001-10-281-22/+22
| | | | | | | modification to add glob support. The submitted patch used a degraded form of KNF. Reviewed by: bde
* Fix time_t == int assumption, convert protocol int to time_t.dillon2001-10-281-1/+2
|
* Fix time_t == int assumption, properly convert protocol int to time_t.dillon2001-10-281-3/+2
|
* Make this compile cleanly when warnings are enabled:schweikh2001-10-288-227/+310
| | | | | | | | | | | | | | - ANSIfy function declarations - braces around initializers structs within structs - add parens in complicated expressions - disambiguate dangling elses - no more implicit int - make functions static where possible - use prototypes - don't use varargs hack for diag() Requested by: joerg MFC after: 2 weeks
* Correct James Cook's year of birth. I wonder how anybody could expectgrog2001-10-271-1/+1
| | | | him to have been born in the 15th century.
* o Modify format of /etc/fbtab to accept glob matching patterns forrwatson2001-10-251-35/+23
| | | | | | | | | | | | | | target devices, not just individual devices and directories. This permits activities such as: ttyv0 0600 /dev/dsp* Whereas previously that was not supported. This change is backwards-compatible, except where device names included globbing characters, which is not the case for any devices listed in MAKEDEV. Submitted by: Maxime Henrion <mux@qualys.com> MFC after: 3 weeks
* Update Labour Day in New Zealand. It's definitely not today. Thisgrog2001-10-251-1/+1
| | | | | year it was on 22 October, which makes me think that it's the 4th Monday in October. At least this way it's correct for this year.
* Fix typo.murray2001-10-231-1/+1
| | | | | PR: docs/31388 Submitted by: Yoshihiko Sarumaru <mistral@imasy.or.jp>
* Add ia64 support (stubs, just like i386, alpha)peter2001-10-233-0/+61
|
* This program uses sysexits(3), so it does not exit 1 on failure.dd2001-10-231-3/+1
| | | | PR: 31415
* Back out part of previous commit: remove #include <sys/proc.h>.des2001-10-222-2/+0
|
* #include <sys/proc.h> where needed (for the stop event definitions) anddes2001-10-227-29/+49
| | | | reorder includes everywhere to conform to style(9).
* Teach truss(1) to display sockaddrs. It currently knows about AF_INET,des2001-10-212-3/+82
| | | | | | | | | AF_INET6 and AF_UNIX sockaddrs, and will recognize accept(), bind(), connect(), getpeername() and getsockname() as syscalls taking sockaddr arguments. Some enterprising soul might want to add (and test) support for the send() / recv() family of syscalls as well. MFC after: 1 week
* Properly handle backslash newline within an identifier or keyword.schweikh2001-10-191-1/+11
| | | | | | | | PR: bin/6015 Submitted by: myself (schweikh) Patch by: Alexey V.Neyman <alex.neyman@auriga.ru> Tested by: indenting my chess problem solver and running its test suite MFC after: 3 weeks
* Fixed most style bugs in previous commit.bde2001-10-191-14/+11
|
* Fixed missing DPADD and misplaced $FreeBSD$ in previous commit.bde2001-10-191-1/+2
|
* Print statistics for AF_IPX.mdodd2001-10-191-0/+2
| | | | Note that the IPX code doesn't update these correctly yet, but should.
* Add libedit support to tftp.mdodd2001-10-192-8/+46
|
* Remove some EOL whitespace. Update usage() to current reality.mike2001-10-171-5/+5
|
* Use whois.example.com rather than non-existent.host in an example.mike2001-10-171-2/+2
|
* If the remote uptime is less than one minute, print the uptime infenner2001-10-171-0/+2
| | | | seconds instead of leaving the uptime field blank.
* Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.sobomax2001-10-162-2/+2
| | | | MFC after: 2 weeks
* Removed unused include of kernel-only file <sys/lock.h>.bde2001-10-131-1/+0
|
* o Treat a buffer as a non-NUL terminated string, because the whoismike2001-10-121-34/+24
| | | | | | | | | | | | | | server may not return a new line character on the final line. o Remove the whois.networksolutions.com fallback code, which is no longer needed. o Instead of determining a hostname by terminating it when we see whitespace, only allow hostname characters and terminate the string when it's not such a character. o Add a small optimization in a for loop. PR: 30968 Reviewed by: -audit MFC after: 4 days
* Minor cleanup, no functional changes:tg2001-10-125-96/+108
| | | | | | - Add/change some comments, - remove superfluous `if (1||x)' and re-indent, - fix initialization of floppyinfo[] to get rid of warning.
* Fixed bugs from revision 1.27. Specifically:ru2001-10-111-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Restore the ability to look up network names in the networks(5) database by passing getnetbyaddr(3) shifted network numbers, but without duplicating the old bug that was fixed in 1.27 (we now only shift netnums with standard netmasks). For example: Before: $ netstat -r [...] 127.0.1/24 localhost UGSc 0 0 lo0 127.0.2/24 localhost UGSc 0 0 lo0 After: $ netstat -r [...] subnet1/24 localhost UGSc 0 0 lo0 subnet2/24 localhost UGSc 0 0 lo0 - Only try to lookup with the forged netmask if the mask was not explicitly specified, like it was before 1.27. For example: Before: $ netstat -r net-44.ampr.org/25 localhost UGSc 0 0 lo0 net-44.ampr.org/25 localhost UGSc 0 0 lo0 After: 44.108.2/25 localhost UGSc 0 0 lo0 44.108.2.128/25 localhost UGSc 0 0 lo0 - Make sure to null-terminate the resulting string. MFC after: 1 week
* Compensate for "Compensate for header dethreading" by backing it out.bde2001-10-109-9/+0
|
* Make this build on ia64.dfr2001-10-091-1/+4
|
* Remove greatly outdated comment that systat(1) takes 2-10% of the CPU time.sobomax2001-10-091-1/+0
| | | | This isn't true nowadays.
* Pad input with null characters if it is not a multiple of 3.ru2001-10-092-1/+7
| | | | | PR: bin/31156 MFC after: 1 week
OpenPOWER on IntegriCloud