summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* | o With -L flag show unix sockets listen queues stats. It is usefulmaxim2008-12-312-7/+18
| | | | | | | | | | | | | | | | to know number of not accepted connections for monitoring purposes. PR: bin/128871 Submitted by: Anton Yuzhaninov MFC after: 1 month
* | Include param.h instead of types.h before mount.h so that the nestedrwatson2008-12-291-1/+1
| | | | | | | | | | | | include of param.h can be removed from audit.h. MFC after: 3 weeks
* | Include param.h instead of types.h before user.h so that the nestedrwatson2008-12-299-9/+9
| | | | | | | | | | | | include of param.h can be removed from audit.h. MFC after: 3 weeks
* | 1. Add the ability to tweak the token output before targets in job mode.obrien2008-12-296-4/+57
| | | | | | | | | | | | | | | | | | | | | | | | E.g., .MAKE.JOB.PREFIX=${.newline}---[${.MAKE.PID}] would produce ---[1234] target --- 2. Added ${.newline} as a simple means of being able to include '\n' in the assignment of .MAKE.JOB.PREFIX Obtained from: NetBSD
* | Consistently use Var_SetGlobal().obrien2008-12-293-4/+4
| |
* | Fix up after last commit:trhodes2008-12-271-6/+5
| | | | | | | | | | | | Bump doc date; Kill hard sentence breaks; Fix commas by moving them off their own line.
* | Clarify the behaviour of conditionals when dealing with comparisons.luigi2008-12-261-12/+23
| | | | | | | | | | | | | | | | | | In particular, point out that string comparison can only use != and == (how weird, given that the underlying call to strcmp returns more information), that floating point values are correctly interpreted as numbers, and that the left-hand side must be a variable expansion. MFC after: 3 weeks
* | Right align the CPU column header.rpaulo2008-12-261-2/+2
| |
* | o Fix grammar.maxim2008-12-261-1/+1
| | | | | | | | | | PR: bin/129938 Submitted by: Bruce Cran
* | Remove reference to unimplemented "-c" option.trhodes2008-12-251-4/+1
| | | | | | | | PR: 119338
* | Update the description of -k, output files appear totrhodes2008-12-241-7/+2
| | | | | | | | | | | | | | | | be left regardless of an error, signal, or complete run. PR: 69861 Submitted by: vlad902@gmail.com
* | Update bmake glue for changes in 9.4.3dougb2008-12-231-1/+1
| |
* | Add a basic manual page for elf2aout.trhodes2008-12-232-1/+65
| | | | | | | | | | | | Alter Makefile and remove NO_MAN. PR: 109975
* | Implement a new feature for the "-m" option: if the month number iswollman2008-12-222-21/+45
| | | | | | | | | | | | | | | | | | followed by 'f' or 'p', use the following or preceding month of that number, respectively. Document this. Also includes other minor grammatical and punctuation fixes to the manual page (capitalize Easter, etc.). MFC after: 1 month
* | Fix a typo.wxs2008-12-191-1/+1
| | | | | | | | Approved by: rwatson
* | Do not segfault when procstat -f or procstat -v is called on a process notmarcus2008-12-192-0/+4
| | | | | | | | | | | | | | | | owned by the current user. If kinfo_getfile() or kinfo_getvmmap() return NULL, simply exit, and do not try and derefernce the memory. Reviewed by: peter Approved by: peter
* | Exit with error code 2 when run with -k (continue if errors) and build failed.fjoe2008-12-185-25/+23
| |
* | 1. Update fetch to consistently return 1 on error, as the man page states,murray2008-12-171-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rather than usually returning 1 but in a few instances using a sysexits(3) return value. 2. Remove a few unused variables from libfetch. PR: docs/122470 (1, only) Reviewed by: des > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M usr.bin/fetch/fetch.c M lib/libfetch/fetch.c
* | Fix printing of shared memory limits.ru2008-12-161-5/+5
| | | | | | | | MFC after: 3 days
* | Add support for HTTP 1.1 If-Modified-Since behavior.murray2008-12-152-5/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fetch(1) accepts a new argument -i <file> that if specified will cause the file to be downloaded only if it is more recent than the mtime of <file>. libfetch(3) accepts the mtime in the url structure and a flag to indicate when this behavior is desired. PR: bin/87841 Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially) Reviewed by: des, ru MFC after: 3 weeks
* | This main goals of this project are:qingli2008-12-151-27/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
* | Spell "substitution" correctly.kientzle2008-12-151-3/+3
| | | | | | | | | | | | | | PR: bin/128616 Submitted by: Jaakko Heinonen Pointy hat: Tim Kientzle MFC after: 30 days
* | Improve usage and sync SYNOPSIS with usage.ru2008-12-132-10/+17
| |
* | Sync manpage's synopsis with program's usage().ru2008-12-131-6/+6
| | | | | | | | Trim whitespace at EOL.
* | Apply the same defaults to https as to http.des2008-12-111-2/+3
| | | | | | | | | | Submitted by: Mike Tancsa <mike@sentex.net> MFC after: 1 week
* | Add strndup(3) prototype to string.h.kib2008-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | This change was erronously ommitted from the r185690, and attempt to simply add the prototype to string.h has revealed that several contributed programs defined local prototypes for strndup(), controlled by autoconfed config.h. So, manually change #undef HAVE_STRNDUP to #define HAVE_STRNDUP 1. Next import of the corresponding program would regenerate config.h, overriding the changes in this commit. No objections from: kan
* | Add a -L option to wc(1), for finger compatibility with the GNUkeramida2008-12-062-11/+60
| | | | | | | | | | | | | | | | | | | | wc utility. The -L option can be used to report the length of the longest line wc has seen in one or more files. It is disabled by default, and wc uses the standard `-lwc'. Submitted by: Sheldon Givens, sheldon at sigsegv.ca Reviewed by: kib MFC after: 1 week
* | bsdtar is synced up with 2.5.903akientzle2008-12-061-1/+1
| |
* | bsdtar always supports long options now, so we can removekientzle2008-12-061-2/+2
| | | | | | | | a documentation disclaimer.
* | Only use GCC-specific __dead2 marker when building with GCC.kientzle2008-12-062-1/+11
| |
* | Custom command line parser for cpio; this is a little morekientzle2008-12-065-119/+198
| | | | | | | | | | code but should be a lot fewer cross-platform compatibility headaches.
* | Make the GCC-specific __dead2 markers conditional on whetherkientzle2008-12-062-1/+9
| | | | | | | | we're compiling under GCC.
* | Update format string for kve_start/end.peter2008-12-021-2/+3
| |
* | Merge user/peter/kinfo branch as of r185547 into head.peter2008-12-023-64/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes struct kinfo_filedesc and kinfo_vmentry such that they are same on both 32 and 64 bit platforms like i386/amd64 and won't require sysctl wrapping. Two new OIDs are assigned. The old ones are available under COMPAT_FREEBSD7 - but it isn't that simple. The superceded interface was never actually released on 7.x. The other main change is to pack the data passed to userland via the sysctl. kf_structsize and kve_structsize are reduced for the copyout. If you have a process with 100,000+ sockets open, the unpacked records require a 132MB+ copyout. With packing, it is "only" ~35MB. (Still seriously unpleasant, but not quite as devastating). A similar problem exists for the vmentry structure - have lots and lots of shared libraries and small mmaps and its copyout gets expensive too. My immediate problem is valgrind. It traditionally achieves this functionality by parsing procfs output, in a packed format. Secondly, when tracing 32 bit binaries on amd64 under valgrind, it uses a cross compiled 32 bit binary which ran directly into the differing data structures in 32 vs 64 bit mode. (valgrind uses this to track file descriptor operations and this therefore affected every single 32 bit binary) I've added two utility functions to libutil to unpack the structures into a fixed record length and to make it a little more convenient to use.
| * | Use libutil wrapper for kinfo_get{file|vmmap}()peter2008-12-013-64/+16
| | |
* | | Format the output of -itv for real. In particular:kientzle2008-11-293-13/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Lookup uname/gname if not provided by the archive (I copied the uname/gname lookup cache from bsdtar) * Format device number instead of size for device nodes * Format date. There's still a few improvements that I could copy from bsdtar, especially the locale-aware safe_fprintf() code and the locale-aware setup for day_first date formatting. (And, of course, I need to think through a clean way to push this stuff down into libarchive.) Thanks to Peter Wemm for reminding me of this overlooked TODO item.
* | | When deciding which characters (of a filename, for instance)kientzle2008-11-292-49/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | are safe to print, try to take into account the current locale. This iterates over output strings using mbtowc() to identify multi-byte sequences. If iswprint() claims the corresponding wide character is printable, the original bytes are passed through. Otherwise, we expand characters into C-style \-escape sequences. Submitted by: Michihiro NAKAJIMA MFC after: 30 days
* | | MFp4:bz2008-11-292-13/+23
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring in updated jail support from bz_jail branch. This enhances the current jail implementation to permit multiple addresses per jail. In addtion to IPv4, IPv6 is supported as well. Due to updated checks it is even possible to have jails without an IP address at all, which basically gives one a chroot with restricted process view, no networking,.. SCTP support was updated and supports IPv6 in jails as well. Cpuset support permits jails to be bound to specific processor sets after creation. Jails can have an unrestricted (no duplicate protection, etc.) name in addition to the hostname. The jail name cannot be changed from within a jail and is considered to be used for management purposes or as audit-token in the future. DDB 'show jails' command was added to aid debugging. Proper compat support permits 32bit jail binaries to be used on 64bit systems to manage jails. Also backward compatibility was preserved where possible: for jail v1 syscalls, as well as with user space management utilities. Both jail as well as prison version were updated for the new features. A gap was intentionally left as the intermediate versions had been used by various patches floating around the last years. Bump __FreeBSD_version for the afore mentioned and in kernel changes. Special thanks to: - Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches and Olivier Houchard (cognet) for initial single-IPv6 patches. - Jeff Roberson (jeff) and Randall Stewart (rrs) for their help, ideas and review on cpuset and SCTP support. - Robert Watson (rwatson) for lots and lots of help, discussions, suggestions and review of most of the patch at various stages. - John Baldwin (jhb) for his help. - Simon L. Nielsen (simon) as early adopter testing changes on cluster machines as well as all the testers and people who provided feedback the last months on freebsd-jail and other channels. - My employer, CK Software GmbH, for the support so I could work on this. Reviewed by: (see above) MFC after: 3 months (this is just so that I get the mail) X-MFC Before: 7.2-RELEASE if possible
* | Fix a printing problem when using the -L flag to netstat causedgnn2008-11-281-13/+16
| | | | | | | | | | | | | | by adding the -x flag earlier. Submitted by: Anton Yuzhaninov MFC after: 3 days
* | After visiting a subdirectory, we use chdir("..") orkientzle2008-11-273-19/+57
| | | | | | | | | | | | | | | | | | | | fchdir() to return back to the parent. If those fail, we're just dead in the water. Add a new error value TREE_ERROR_FATAL to indicate that directory traversal cannot continue. Have write.c honor that by exiting immediately. MFC after: 30 days
* | If we're unable to chdir() to a directory that we know exists,kientzle2008-11-271-1/+3
| | | | | | | | | | | | | | | | | | | | that should result in a non-zero return value. In particular, this should address the issue that David Wolfskill ran into with a somewhat flaky NFS mount resulting in a damaged archive even though tar returned success. MFC after: 4 days
* | Use strlcpy() where appropriate.delphij2008-11-191-4/+2
| |
* | ANSIfy the wwend function.rdivacky2008-11-181-1/+2
| | | | | | | | Approved by: kib (mentor)
* | Add myselfpho2008-11-181-0/+1
| | | | | | | | Approved by: kib (mentor)
* | Update ZFS from version 6 to 13 and bring some FreeBSD-specific changes.pjd2008-11-171-35/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bring huge amount of changes, I'll enumerate only user-visible changes: - Delegated Administration Allows regular users to perform ZFS operations, like file system creation, snapshot creation, etc. - L2ARC Level 2 cache for ZFS - allows to use additional disks for cache. Huge performance improvements mostly for random read of mostly static content. - slog Allow to use additional disks for ZFS Intent Log to speed up operations like fsync(2). - vfs.zfs.super_owner Allows regular users to perform privileged operations on files stored on ZFS file systems owned by him. Very careful with this one. - chflags(2) Not all the flags are supported. This still needs work. - ZFSBoot Support to boot off of ZFS pool. Not finished, AFAIK. Submitted by: dfr - Snapshot properties - New failure modes Before if write requested failed, system paniced. Now one can select from one of three failure modes: - panic - panic on write error - wait - wait for disk to reappear - continue - serve read requests if possible, block write requests - Refquota, refreservation properties Just quota and reservation properties, but don't count space consumed by children file systems, clones and snapshots. - Sparse volumes ZVOLs that don't reserve space in the pool. - External attributes Compatible with extattr(2). - NFSv4-ACLs Not sure about the status, might not be complete yet. Submitted by: trasz - Creation-time properties - Regression tests for zpool(8) command. Obtained from: OpenSolaris
* | Fix the code to conform to the "or more" part of the following POSIXdds2008-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | specification and regression test regress:25. "A function can be preceded by one or more '!' characters, in which case the function shall be applied if the addresses do not select the pattern space." MFC after: 2 weeks
* | Include more detailed explanation of this case, since it's prettykientzle2008-11-101-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subtle why it comes out the way it does. Once you realize that it depends on the archiving order, it's also important to realize that filesystem differences aren't going to break this case. (Some of the other tests have had to be extensively rewritten to make them independent of the order in which a particular filesystem returns file entries.) (This commit also serves to note the PR number that I accidentally omitted from the previous commit.) PR: bin/128562 MFC after: 30 days
* | Test --strip-components and fix it to actually work. Jaakko did akientzle2008-11-103-16/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | good job writing this test; it exercises a lot of subtle cases. The trickiest one is that a hardlink to something that didn't get extracted should not itself be extracted. In some sense, this is not the desired behavior (we'd rather restore the file), but it's the best you can do in a single-pass restore of a tar archive. The test here should be extended to exercise cpio and newc formats as well, since their hardlink models are different, which will lead to different handling of some of these edge cases. Submitted by: Jaakko Heinonen MFC after: 30 days
* | Add workaround for a back reference when no correspondinghrs2008-11-091-0/+8
| | | | | | | | | | | | | | | | | | | | | | parenthesized subexpression is defined. For example, the following command line caused unexpected behavior like segmentation fault: % echo test | sed -e 's/test/\1/' PR: bin/126682 MFC after: 1 week
* | New command-line parser for bsdtar.kientzle2008-11-086-356/+455
| | | | | | | | | | | | | | | | | | | | This replaces the getopt()/getopt_long() wrapper, the old-style argument rewriter and the associated configuration glue with a more straightforward custom command parser. In particular, this ensures that bsdtar will have consistent option parsing on every platform, regardless of whether the platform supports getopt_long(). MFC after: 30 days
OpenPOWER on IntegriCloud