summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.des2001-03-151-1/+1
|
* Add a -W flag that tells netstat not to truncate addresses even if they aredes2001-03-154-32/+68
| | | | | | | | too long for the column they're printed in. Move variable definitions out of netstat.h and into main.c. Clean up some warnings.
* net/route.c:ru2001-03-152-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A route generated from an RTF_CLONING route had the RTF_WASCLONED flag set but did not have a reference to the parent route, as documented in the rtentry(9) manpage. This prevented such routes from being deleted when their parent route is deleted. Now, for example, if you delete an IP address from a network interface, all ARP entries that were cloned from this interface route are flushed. This also has an impact on netstat(1) output. Previously, dynamically created ARP cache entries (RTF_STATIC flag is unset) were displayed as part of the routing table display (-r). Now, they are only printed if the -a option is given. netinet/in.c, netinet/in_rmx.c: When address is removed from an interface, also delete all routes that point to this interface and address. Previously, for example, if you changed the address on an interface, outgoing IP datagrams might still use the old address. The only solution was to delete and re-add some routes. (The problem is easily observed with the route(8) command.) Note, that if the socket was already bound to the local address before this address is removed, new datagrams generated from this socket will still be sent from the old address. PR: kern/20785, kern/21914 Reviewed by: wollman (the idea)
* with my mentor hat on...billf2001-03-151-2/+0
| | | | | | remove the concept of a 'maintainer' of our make. there really isn't a need for any one committer to hold an exclusive lock or serve as a filter for this code.
* Revert previous change -- apparently it's not quite right. It brokewill2001-03-151-15/+9
| | | | | | | | | | src/sys/modules/if_ef and possibly other things. I tested the build with a make based on rev. 1.26, and it worked fine. Since I'm not particularly inclined to figure out what's going on with this, it's probably prudent just to back it out for now. Found by: jkh Suggested by: jhay
* Fix make(1) bug: nested comments may be placed in .if, .else .if, andwill2001-03-151-9/+15
| | | | | | | | | | | | | .endif statements but can't be placed in .elif. Basically, the problem was that ParseSkipLine() didn't handle comments the same way that ParseReadLine() did, and thus you had errors with comments that are on a conditional line (i.e. "^.") rather than a non-conditional line. MFC candidate for 4.3-STABLE and 3.5-STABLE. PR: 25627 Bug found by: jhs Fix submitted by: Seth Kingsley <sethk@osd.bsdi.com> (thanks!!)
* MAXHOSTNAMELEN includes space for a NUL.brian2001-03-146-42/+13
| | | | | | Don't roll our own version of trimdomain(), use the one in libutil. Not objected to by: freebsd-audit
* Count and show incoming UDP datagrams with no checksum.ru2001-03-132-18/+21
|
* Fix top(1) display for SMP systems where the username is longer than 14will2001-03-121-1/+3
| | | | | | | | characters. This should avoid unattractive wrapping for people who are stuck in an 80x24 screen. :-) PR: 22270 Submitted by: William Carrel <williamc@go2net.com>
* reset uid back to the user before doing kerberised change password.assar2001-03-121-0/+1
| | | | | | | root permission is not needed and the kerberos library is paranoid about access control to the ticket file PR: bin/20779
* Updates for Blowfish password hashing.markm2001-03-111-2/+6
|
* Move _PATH_DEFTAPE to <paths.h> to remove all the duplication of definitons,obrien2001-03-082-38/+1
| | | | and remove leading `r'(aw) from it.
* Fix two bugs in null suffix handling. Both occured only after the suffixtmm2001-03-081-6/+19
| | | | | | | | | | | | list was cleared. Rules with null suffixes would not be rebuilt when the suffixes were added again. Adding null suffix rules would fail when a rule for the same source was declared before the suffix list was cleared. PR: 23328, 24102 Reviewed by: will Approved by: rwatson
* If SIGINFO is received during the transfer, print a status line similardes2001-03-071-5/+29
| | | | | | | | to the summary shown at the end of the transfer. Some days, I really hate Unix... Suggested by: cracauer
* Fix a formatting bug (MFC candidate)des2001-03-071-1/+1
|
* Pick up the environment variable ${NM} if it exists and use that to listdfr2001-03-061-1/+2
| | | | | symbols. This allows lorder to be used more easily in a cross-build environment.
* Add (and document) options for showing only listening or connected sockets.des2001-03-062-11/+39
|
* Fix ttynames generation broken with strlcatache2001-03-051-1/+1
| | | | | PR: 25541 Submitted by: Nickolay Dudorov <nnd@mail.nsk.ru>
* Switch from using rand() or random() to a stronger, more appropriate PRNGkris2001-03-051-10/+1
| | | | | | (random() or arc4random()) Reviewed by: bde
* When displaying interface statistics with -i show a '-' for anyjoe2001-03-041-15/+64
| | | | values that aren't updated for a particular network-layer address.
* BDECFLAGS.billf2001-03-041-9/+7
| | | | while I'm here, fix bitrotted debug code generating template.
* Preserve comma as separator when it is not equal to radix characterache2001-03-031-2/+7
|
* Don't use "," as load avg. separator because it can be precision point in someache2001-03-031-1/+1
| | | | locales, so leads to confusion
* Oops, remove tabs sneaked in wrong placeache2001-03-021-2/+2
|
* Use AM/PM time only when available in localeache2001-03-023-7/+10
|
* Add -g group to usage message.imp2001-03-021-2/+4
| | | | | | | Don't treat pointer as a boolean, but instead test it against NULL. Add warning for groups that don't exist Submitted by: ru
* Include -DDEFSHELL=1 in Makefile.dist so people boostrapping willimp2001-03-011-1/+2
| | | | | | | | have a sane default. Also add $FreeBSD$ while I'm here. Pointed out by: bde
* MAXPATHLEN includes the trailing NUL.imp2001-03-012-6/+6
| | | | | | | Correct array sizes to reflect this. Correct NUL termination after strncpy. # Didn't to strncpy -> strlcpy change.
* MAXPATHLEN contains the trailing NUL.imp2001-03-012-2/+2
|
* MAXPATHLEN is enough.imp2001-03-011-2/+1
| | | | | Also, snprinf is guaranteed by the new ansi standard to NUL terminate the string, so we don't need to do that ourselves.
* All temperature scales are centigrades. Use "Celsius" instead.dcs2001-03-011-1/+1
|
* MAXPATHLEN already accounts for the trailing NUL, so no need to add one in.imp2001-03-011-1/+1
| | | | | In addition, since we pass readlink MAXPATHLEN - 1, we would have never have used that extra byte anyway.
* MAXPATHLEN includes the trailing NUL character, so there's no need to add 1imp2001-03-011-1/+1
| | | | to it for the size of path.
* Remove redundant declaration of optind. It has been declared in unistd.himp2001-03-011-1/+0
| | | | for ages.
* o Add support for wall -g. This will send a message to all members ofimp2001-03-013-27/+71
| | | | | | | a given group. o Minor code style cleanups while I'm here Reviewed by: bde, kris, markm, audit@
* The secure temporary directory is always created, so always remove it.jhay2001-02-281-5/+1
|
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-282-3/+3
|
* Use EV_SET() macro to initialize kevent structure.jlemon2001-02-281-7/+5
|
* Add missing prefix for nano, I presume this was missing 'cos of thedwmalone2001-02-281-10/+16
| | | | | | | prefix recusrion bug. Remove units which can be derived using prefixes and other units. Add new prefixes for 2^10, 2^20, etc...
* Give units a bit of a cleanup:dwmalone2001-02-281-32/+26
| | | | | | | | | | | | | | 1) Fix a bug where the recursion on prefixes where if recusrion failed then the next attempt started too far along the string. 2) Up some internal limits that we were about to hit off. 3) Change the constness and signedness of some things and complete missing prototypes. 4) Remove the readerror function 'cos it could print out the wrong wrong file name. Replace it with more useful error messages. 5) Use sizeof when passing buffers to fgets. 6) Warn about empty prefix definitions. Reviewed by: iedowse
* Update HISTORY.obrien2001-02-281-1/+5
|
* Fix indent endless on garbage input (i.e., if it encountered EOF whileobrien2001-02-271-1/+1
| | | | | | waiting for a '}' nesting terminator) Obtained from: OpenBSD rev 1.8
* - An array of 4 32-bit ints for avenrun doesn't work on the alpha becausegallatin2001-02-271-15/+7
| | | | | | | | | | fscale is a (64-bit) long. So just use a struct loadavg. This fixes the recent failure of top on alphas: top: sysctl(vm.loadavg...) failed: Cannot allocate memory - use size_t for sizeof() so as to fix a few int/long warnings on alpha Reviewed by: Thomas Moestl <tmoestl@gmx.net>
* mdoc(7) police: utilize .St macro.ru2001-02-261-1/+3
|
* mdoc(7) police: restore correct order of references in the SEE ALSO.ru2001-02-241-1/+1
|
* Remove directive to install top as group kmem. Remove directive torwatson2001-02-231-2/+1
| | | | install top with setgid bit.
* Adapt the top utility to not use kmem_read to retrieve variables nowrwatson2001-02-231-167/+44
| | | | | | | | available via sysctl(). As a result, top should now be able to run without setgid kmem. Submitted by: Thomas Moestl <tmoestl@gmx.net> Reviewed by: freebsd-audit
* Implement the following options and primaries:knu2001-02-237-7/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | -E Interpret regular expressions followed by -regex and -iregex op- tions as extended (modern) regular expressions rather than basic regular expressions (BRE's). The re_format(7) manual page fully describes both formats. -iname pattern Like -name, but the match is case insensitive. -ipath pattern Like -path, but the match is case insensitive. -regex pattern True if the whole path of the file matches pattern using regular expression. To match a file named ``./foo/xyzzy'', you can use the regular expression ``.*/[xyz]*'' or ``.*/foo/.*'', but not ``xyzzy'' or ``/foo/''. -iregex pattern Like -regex, but the match is case insensitive. These are meant to be compatible with other find(1) implementations such as GNU's or NetBSD's except regexp library differences. Reviewed by: sobomax, dcs, and some other people on -current
* fix usage statement (add missing [-n devs] option)alfred2001-02-221-4/+5
| | | | | | | Submitted by: Maxim Konovalov <maxim@macomnet.ru> Silence a warning by renaming the 'pgtok' #define to 'vmstat_pgtok' so as not to conflict with the 'pgtok' #define in sys/param.h
* Reword the description a little bit more for parallel construction.wollman2001-02-211-1/+1
|
OpenPOWER on IntegriCloud