summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* - Remove the -i argument when running a command to simplify things ajeff2008-03-053-14/+177
| | | | | | | | little bit and to prevent users from specifying a private mask that may later restrict other group changes. - Add a man page which brueffer generously contributed to. Sponsored by: Nokia
* - Verify that when a user supplies a mask that is bigger than the kerneljeff2008-03-051-8/+7
| | | | | | | | | | mask none of the upper bits are set. - Be more careful about enforcing the boundaries of masks and child sets. - Introduce a few more CPU_* macros for implementing these tests. - Change the cpusetsize argument to be bytes rather than bits to match other apis. Sponsored by: Nokia
* It seems some don't care for the anchient joke. Add WITHOUT_OLD_JOKEobrien2008-03-041-0/+2
| | | | to your CFLAGS if you fall into this camp.
* No need to tell make to DTRT with "make love", just do it.obrien2008-03-042-11/+0
| | | | | Also remove the 2002/08/31 bootstrapping aid for upgrades from year old (mid-2001) systems.
* <limits.h> is necessary for using INT_MIN, so included it hereimp2008-03-041-0/+1
| | | | | | | | explicitly rather than relying on name space pollution to pull it in for us. NB: The usage of INT_MIN is somewhat bogus and suspect to my eye, but this commit doesn't address that issue.
* Move a stray paragraph on .Ev MAKEFLAGS to where it belongs.yar2008-03-041-14/+14
|
* Revise the description of how .Ev MAKEFILE and .Va .MAKEFILE relate.yar2008-03-041-21/+27
| | | | | | | | | The most important point is that -f option(s) are never copied from .Ev MAKEFILE to .Va .MAKEFILE by make(1), which is consistent with handling the command line. (-f silently sit in .Ev MAKEFILE and go to make's children unless overwritten via .Va .MAKEFILE) Bump .Dd.
* Split descriptions of .Ev MAKEFILE and .Va .MAKEFLAGS for clarity.yar2008-03-041-2/+2
|
* Note 7.0 was the first version that FreeBSD/pc98 had a MACHINE of pc98imp2008-03-041-8/+7
| | | | instead of i386.
* Linux requires -D__dead2= and -D__unused= to get rid of theimp2008-03-041-1/+1
| | | | | sys/cdef.h-isms in the make source. The variant of linux I tried it on doesn't have arc4random, so -Darc4random=random too.
* - Add my birthday.jadawin2008-03-031-0/+1
| | | | Approved by : thierry (co-mentor)
* Fix SYNOPSIS and usage().ru2008-03-032-9/+10
|
* Typo in comment spotted by Hasso Tepper.fanf2008-03-021-2/+2
| | | | Obtained from: DragonFlyBSD
* - Add cpuset to the build.jeff2008-03-021-0/+1
| | | | Sponsored by: Nokia
* Add a simple utility for manipulating cpusets. Man page will be availablejeff2008-03-022-0/+335
| | | | | | | | | | soon. - Lists of cpus may be specified with -l with ranges specified as low-high and commas between individual cpus and ranges. ie -l 0-2,4,6-8. - cpuset can modified -p pids, -t tids, or -s cpusetids. - cpuset can -g get the current mask for any of the above. Sponsored by: Nokia
* - Do not malloc buffer for 0-size member when reading from archive.kaiw2008-03-021-11/+17
| | | | | | | | | | | | | - Fix a malloc buffer overrun: Use a while loop to check whether the string buffer is big enough after resizing, since doubling once might not be enough when a very long member name or symbol name is provided. - Fix typo. Reported by: Michael Plass <mfp49_freebsd@plass-family.net> Tested by: Michael Plass <mfp49_freebsd@plass-family.net> Reviewed by: jkoshy Approved by: jkoshy
* A fix for other ways of triggering joe@'s bug.fanf2008-02-291-9/+12
|
* Allow #if defined SYM as well as #if defined(SYM). Fix an abortfanf2008-02-291-18/+31
| | | | | | caused by files that have #endif and no newline on the last line (reported by joe@). Also fix a benign uninitialized variable bug. Update and tidy the copyright.
* Now that we're way past our conversion from GNU awk to BWK awk, we don'tobrien2008-02-281-7/+3
| | | | need to primarily install as a non-conflicting name.
* Add my birthday.ganbold2008-02-271-0/+1
| | | | Approved by: keramida(mentor)
* - Add my birthdaygahr2008-02-261-0/+1
| | | | Approved by: miwi (mentor)
* Implement from scratch a -l option for du(1), to match the same optionkeramida2008-02-252-11/+23
| | | | | | | | | | | | of the GNU utility. The default behavior of our original `du' is to count hardlinked files only once for each invocation of the utility. With the new -l option they count towards the final size every time they are found. PR: bin/117944 Submitted by: keramida Reviewed by: des, obrien MFC after: 2 weeks
* Make again BSD ar(1) the default system ar(1), now properly handlingru2008-02-251-14/+1
| | | | | | | | | | | | | source upgrades by falling back to GNU ar(1) as necessary. Option WITH_BSDAR is gone. Option _WITH_GNUAR to aid in upgrades is *not* supposed to be set by the user. Stop bootstrapping BSD ar(1) on the next __FreeBSD_version bump, as there are no known bugs in it. Bump __FreeBSD_version to anticipate this and to flag the switch to BSD ar(1), should it be needed for something. Input from: obrien, des, kaiw
* Bump .Dd for revisions 1.83 and 1.84.ceri2008-02-241-1/+1
|
* Tag -ilname and -lname as GNU extensions.imp2008-02-241-1/+4
| | | | | Correct their descriptions to indicate that it is the contents of the symbolic link that are matched.
* style(9) whitespace fix: A space is mandated after keyword 'return'.kaiw2008-02-241-5/+5
| | | | | Submitted by: jkoshy Approved by: jkoshy (mentor)
* Since the program is installed as 'bsdranlib', we need tokaiw2008-02-241-1/+2
| | | | | | | | | check if it is invoked as 'bsdranlib'. Reported by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: jkoshy Approved by: jkoshy (mentor)
* Handle properly when insert zero size objects into the archive:kaiw2008-02-241-3/+9
| | | | | | | | | | | | | | | | Do not mmap 0-size objects and do not try to extract symbol from 0-size objects, but do treat 0-size objects as qualified objects and accept them as an archive member. (A member with only the header part) Note that GNU binutils ar on FreeBSD ignores 0-size objects, but on Linux it accepts them. [1] But, since this is a rare usage, we can safely ignore the compatibility issue. Reported by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Pointed out by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> [1] Reviewed by: Michael Plass <mfp49_freebsd [AT] plass-family [DOT] net> Reviewed by: jkoshy Approved by: jkoshy (mentor)
* The matching in -lname and -ilname are on the contents of the linkimp2008-02-241-5/+10
| | | | | | | | itself, not on the type of the file. As such, do a readlink to get the symbolic link's contents and fail to match if the path isn't a symbolic link. Pointed out by: des@
* Implement a number of primaries present in GNU find, but not presentimp2008-02-235-5/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in our find. The following are nops because they aren't relevant to our find: -ignore_readdir_race -noignore_readdir_race -noleaf The following aliaes were created: -gid -> -group [2] -uid -> -user [2] -wholename -> -path -iwholename -> ipath -mount -> -xdev -d -> -depth [1] The following new primaries were created: -lname like -name, but matches symbolic links only) -ilname like -lname but case insensitive -quit exit(0) -samefile returns true for hard links to the specified file -true Always true I changed one primary to match GNU find since I think our use of it violates POLA -false Always false (was an alias for -not!) Also, document the '+' modifier for -execdir, as well as all of the above. This was previously implemented. Document the remaining 7 primaries that are in GNU find, but aren't yet implemented in find(1) [1] This was done in GNU find for compatibility with FreeBSD, yet they mixed up command line args and primary args. [2] -uid/-gid in GNU find ONLY takes a numeric arg, but that arg does the normal range thing that. GNU find -user and -uid also take a numberic arg, but don't do the range processing. find(1) does both for -user and -group, so making -uid and -gid aliases is compatible for all non-error cases used in GNU find. While not perfect emulation, this seems a reasonable thing for us.
* Fix typo.brueffer2008-02-231-1/+1
|
* This patch adds a new ktrace(2) record type, KTR_STRUCT, whose payloaddes2008-02-236-13/+258
| | | | | | | | | | | | | | | | | | | | | | | consists of the null-terminated name and the contents of any structure you wish to record. A new ktrstruct() function constructs and emits a KTR_STRUCT record. It is accompanied by convenience macros for struct stat and struct sockaddr. In kdump(1), KTR_STRUCT records are handled by a dispatcher function that runs stringent sanity checks on its contents before handing it over to individual decoding funtions for each type of structure. Currently supported structures are struct stat and struct sockaddr for the AF_INET, AF_INET6 and AF_UNIX families; support for AF_APPLETALK and AF_IPX is present but disabled, as I am unable to test it properly. Since 's' was already taken, the letter 't' is used by ktrace(1) to enable KTR_STRUCT trace points, and in kdump(1) to enable their decoding. Derived from patches by Andrew Li <andrew2.li@citi.com>. PR: kern/117836 MFC after: 3 weeks
* Fix essential bugs and warnings.ru2008-02-221-5/+4
|
* Hide BSD ar(1) under the MK_TOOLCHAIN option.ru2008-02-221-1/+2
| | | | Reviewed by: obrien
* Clean up created turds.obrien2008-02-221-0/+1
|
* We build important toolchain statically. So build BSD 'ar' staticallyobrien2008-02-221-0/+1
| | | | when its replacing GNU 'ar'.
* Re-introduce the new BSDLed 'ar' to the build.obrien2008-02-223-2/+19
| | | | | | It is installed as "bsdar" unless WANT_BSDAR is defined. Discussed with: kaiw
* Fix static linkage.ru2008-02-211-2/+2
|
* Back out previous commit. Restore Binutils ar as default. Disconnectkaiw2008-02-211-4/+0
| | | | | | 'BSD' ar to the build. Requested by: des
* * Connect ar(1) to the build and make it default ar. Rename GNUkaiw2008-02-211-0/+4
| | | | | | | | | | | | binutils ar and ranlib to gar and granlib, respectively. * Introduce a temporary variable WITH_GNUAR as a safety net. When buildworld with -DWITH_GNUAR, GNU binutils ar and ranlib will install as default ones and 'BSD' ar will be disabled. * Bump __FreeBSD_version to reflect the import of 'BSD' ar(1). Approved by: jkoshy (mentor)
* Import ar(1) front-end. (aka 'BSD' ar)kaiw2008-02-217-0/+1989
| | | | | | | | | | | | | | | | | | Reviewed by: jkoshy Approved by: jkoshy (mentor) Tested by: erwin (ports build test on pointyhat) Sponsored by: Google Summer of Code 2007 Reviewed by (earlier version): Jaakko Heinonen <jh[AT]saunalahti.fi> Tested by (earlier version): Steve Kargl <sgk[AT]troutmask.apl.washington.edu> Tested by (earlier version): Martin Voros <martin_voros[AT]yahoo.com> Tested by (earlier version): swell.k[AT]gmail.com Tested by (earlier version): joel Tested by (earlier version): Alexey Shuvaev <shuvaev[AT]physik.uni-wuerzburg.de> Tested by (earlier version): Arjan van Leeuwen <avleeuwen[AT]gmail.com> Thanks to gabor@ for building ports for it. Thanks to erwin@ and kris@ for scheduling the ports build test on pointyhat. And thanks to many others for their feedback.
* getopt(3) returns -1, not EOF.ru2008-02-191-1/+1
|
* Allow appending to archives on block devices as well askientzle2008-02-191-1/+1
| | | | | | archives in regular files, since both are seekable. Thanks to: Reinoud Zandijk (@netbsd.org)
* remove Vette Dinsdag. It was on the wrong day of the week, and not really a ↵edwin2008-02-181-1/+1
| | | | | | term I'm familiar with. Of course this can happen since naming of events and happenings during Carnaval are very localized Approved by: grog@
* Make the human readable numbers printed with the -h option a bitmpp2008-02-181-4/+6
| | | | | | | | more human readable by telling the human print routines to use a smaller buffer to format the value. This makes it so a value that was previously being printed as 600000K will now print as 586M.
* Make netstat -rn more resilient to having the routing table change out fromjhb2008-02-141-19/+43
| | | | | | | | | | | under it while running. Note that this is still not perfect: - Try to do something intelligent if kvm_read() fails to read a routing table structure such as an rtentry, radix_node, or ifnet. - Don't follow left and right node pointers in radix_nodes unless RNF_ACTIVE is set in rn_flags. This avoids walking through freed radix_nodes. MFC after: 1 week
* Change another argument and a variable both related to netname() tomarius2008-02-111-3/+3
| | | | | | be also 32-bit on all archs. MFC after: 3 days
* Fix a few obvious errors in the znew(1) script.yar2008-02-091-4/+3
| | | | | PR: bin/120249 Submitted by: Jaakko Heinonen <see the PR for email>
* WARNS fixes:dwmalone2008-02-094-10/+12
| | | | | | | | | | 1) Add missing parens around assignment that is compared to zero. 2) Make some variables that only take non-negative values unsigned. 3) Some casts/type changes to fix other constness warnings. 4) Make one variable a const char *. 5) Make sure termwidth is positive, it doesn't make sense for it to be negative. Approved by: dds
* Add support for displaying a process' current working directory, rootmarcus2008-02-091-4/+26
| | | | | | | | | | | | | | | | | | | | | | | | directory, and jail directory within procstat. While this functionality is available already in fstat, encapsulating it in the kern.proc.filedesc sysctl makes it accessible without using kvm and thus without needing elevated permissions. The new procstat output looks like: PID COMM FD T V FLAGS REF OFFSET PRO NAME 76792 tcsh cwd v d -------- - - - /usr/src 76792 tcsh root v d -------- - - - / 76792 tcsh 15 v c rw------ 16 9130 - - 76792 tcsh 16 v c rw------ 16 9130 - - 76792 tcsh 17 v c rw------ 16 9130 - - 76792 tcsh 18 v c rw------ 16 9130 - - 76792 tcsh 19 v c rw------ 16 9130 - - I am also bumping __FreeBSD_version for this as this new feature will be used in at least one port. Reviewed by: rwatson Approved by: rwatson
OpenPOWER on IntegriCloud