summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Don't destroy the archive until after you finish pulling usefulkientzle2008-09-041-1/+1
| | | | information out of it. As reported by Giorgos Keramidas.
* Add support for RLIMIT_NPTS to limits(1).ed2008-09-022-54/+68
| | | | | | | | | | | | | After the MPSAFE TTY import we support an additional rlimit, called RLIMIT_NPTS. This limit allows you to cap the amount of pseudo-terminals allocated by one user. We forgot to add support for this limit to limits(1), which means it crashed. Add the proper bits to make it work like it should. Unfortunately not all shells actually implement the RLIMIT, so unfortunately I suspect it to be broken with certain shells. Submitted by: Yuriy Tsibizov <yuriy tsibizov gfk ru>
* Add gprof MIPS MD header and enable building gprof.obrien2008-09-022-2/+46
| | | | Obtained from: Juniper Networks
* Use RUSAGE_SELF for the current process instead of hardcoded valuekevlo2008-09-021-1/+1
|
* Truss and gprof doesn't build for MIPS.obrien2008-09-011-1/+3
|
* Correct a silly typo I introduced: withing -> within.yar2008-09-011-1/+1
| | | | Noticed by: das
* Minimize changes CURRENT<->releng7.obrien2008-09-014-9/+8
|
* pkill(1) first appeared in /usr/bin, but later it was moved to /binyar2008-08-314-1064/+0
| | | | | | | for the convenience of rc.d. Now it has happily lived there for quite a while. So move the pkill(1) source files from usr.bin to bin, too. Approved by: gad
* Add ECN stats.rpaulo2008-08-261-0/+5
|
* MfP4: Verify correct interaction with umask: Add anotherkientzle2008-08-251-6/+27
| | | | | | | file with different permissions and set a non-zero umask during the actual copy tests. The extra entry increases the size of the test archives of course, so adjust the expected sizes.
* Explicitly tell that one needs to start a context address with ayar2008-08-241-4/+11
| | | | | | | | | | | | | backslash if he/she wants to use a non-traditional delimiter, i.e., anything other than a slash. That is, /abc/ works as is, but xabcx needs to be spelled as \xabcx. Add appropriate markup. Bump Dd. Checked with: IEEE Std 1003.1, 2004 Edition MFC after: 3 days
* Update the total archive byte counters when writing entries to disk usingkientzle2008-08-247-13/+19
| | | | | | archive_write_disk. Update cpio to use this to emit block counts in -p mode. Update cpio tests to verify these block counts.
* straighten out the "clean" targetkientzle2008-08-241-6/+2
|
* cpio -v emits a line for every item copied.kientzle2008-08-241-1/+1
|
* Update the passthrough_dotdot test to reproduce akientzle2008-08-241-0/+2
| | | | | | problem reported by Kris Kennaway. PR: bin/124924
* Test for proper handling of "cpio -p .."kientzle2008-08-242-0/+88
| | | | PR: bin/124924
* Test for a bug reported by Bernd Walter: In passthrough mode,kientzle2008-08-243-3/+107
| | | | | | | | | | copying "dir/file" and then copying "dir" results in "File on disk is not older; skipping" for the "dir" because it was implicitly created by "dir/file." Among other sins, this means that "dir" ends up with the wrong permissions and ownership. This is actually a libarchive bug; fix is forthcoming.
* Comment a couple of places where bsdcpio and gcpio 2.9 disagree.kientzle2008-08-223-2/+10
| | | | | | The number of blocks read from ustar archives is just an implementation difference. The failure of bsdcpio to emit a block count to stderr in -p mode is a real bug in bsdcpio.
* The newc-format verification is now a little smarter aboutkientzle2008-08-221-9/+24
| | | | | | following the archive structure. In particular, it no longer crashes if you run it against GNU cpio 2.9 (although it does still complain a lot more than it should).
* Minor cleanup of the -q test: Assert that stdout/stderr are empty for eachkientzle2008-08-221-3/+9
| | | | extraction.
* Don't clean before running tests.kientzle2008-08-221-1/+1
|
* Explain how the test_option_q test works.kientzle2008-08-221-0/+15
|
* Test for -q (aka --fast-read).kientzle2008-08-223-1/+106
| | | | Fix the error uncovered by this test.
* The results for test 2 here are short enough to just be included inline.kientzle2008-08-212-8/+3
| | | | | There's no need to go through the hassle of having a checked-in uuencoded reference file for comparison.
* Use the SCHEME_ knobs rather than knowing what they expand to.obrien2008-08-211-2/+2
| | | | Reviewed by: des
* Lockf was exiting with status 1 if the command did not exit normally.dwmalone2008-08-212-1/+6
| | | | | | | This is easy to confuse with the actual exit status of the program. Instead exit with EX_SOFTWARE if the command doesn't exit normally. MFC after: 1 month
* Add some more tests to verify that "./foo" matches "foo" but "/foo" does not.kientzle2008-08-214-1/+76
|
* Always display the unedited pathname in -t output.kientzle2008-08-214-21/+12
| | | | | | | I would like to provide a way to preview the effects of pathname edits, but pattern selection has to happen against the unedited path, so it seems that we have to show people the unedited path to help in designing selection patterns.
* cpio should restore file flags and ACLs when they're availablekientzle2008-08-201-0/+2
|
* w(1) uses strftime %b with to print the abbreviated month nameache2008-08-201-1/+2
| | | | | | | | | | if a user logged in more than a week ago. This may contain multibyte characters (e.g. when using UTF-8). This string is then aligned on byte-length rathern than char-length, resulting in misalignment and unfinished multibyte characters. PR: 126657 Submitted by: Johan van Selst <johans@stack.nl>
* Integrate the new MPSAFE TTY layer to the FreeBSD operating system.ed2008-08-203-1/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following: - Improved driver model: The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers. If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver. - Improved hotplugging: With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc). The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly. - Improved performance: One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters. Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING. Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
* Better comment the pattern tests; adjust the filenames for thekientzle2008-08-204-12/+22
| | | | | | reference files to match the corresponding source. MFC after: 3 days
* Use kvm_getcptime(3) to fetch the global CPU time stats from a crashdumpjhb2008-08-191-15/+14
| | | | | | | since the 'cp_time' symbol doesn't exist in recent kernels. This fixes iostat and vmstat on crash dumps. MFC after: 1 week
* Fix SVN r181821 by not using FNM_LEADING_DIR wherekientzle2008-08-181-1/+1
| | | | it shouldn't be used.
* Strip leading "./" or ".//" from patterns and filenameskientzle2008-08-181-3/+39
| | | | | | | | | so that "./foo" matches "foo" (and vice versa). This is related to PR bin/119141. PR: bin/119141 MFC after: 4 days
* Don't strip a leading '/' from a pattern to be matched.kientzle2008-08-171-2/+0
| | | | | | | | This aligns the pattern-matching behavior with GNU tar and restores the behavior of bsdtar prior to FreeBSD 6.3. PR: bin/117909 MFC after: 3 days
* Add limited support for units that are related by affine ratherdwmalone2008-08-162-22/+63
| | | | | | | | | | | | | than linear relations. We can now convert degC to degF. 586 units, 56 prefixes You have: 24 degC You want: degF 75.2 You have: degC You want: K (-> x*1 +273.15) (<- y*1 -273.15)
* Test updates: Handling of patterns on command line, error messages.kientzle2008-08-156-1/+40
|
* When generating thread-safe server code, handle procedures with void returndfr2008-08-121-0/+3
| | | | types correctly.
* Delete unused files in the window(1) directory that contain a colon.ed2008-08-094-38/+0
| | | | | | | | | | | | | During the import of the 4.4BSD Lite sources, four files got added to the repository called :tt, :tty, :var and :ww. They seem to contain some kind of debug information. These files aren't used/installed anywhere. Unfortunately the colons in the filenames prevents us from checking out the source tree on file systems that don't support colons (such as FAT). Just remove these unneeded files to keep SVN happy. Reported by: Rohit Tripathi <rohit trip gmail com> MFC after: 3 days
* Use arc4random_uniform(3)ache2008-08-071-1/+1
|
* - acificfrancexchange -> pacificfrancexchangeedwin2008-08-071-1/+3
| | | | | | - Add comments about the pegged currencies. Submitted by: GeJ on #bsdports
* Update the units library file.edwin2008-08-071-104/+195
| | | | | | | | | | | | | | - Merge changes from NetBSD and OpenBSD. - Add the Euro as a primitive unit, add old converted currency and pegged currency (Obtained from Wikipedia) - Rename "dollar" to "usdollar" as primitive unit, remove non-pegged currency and add pegged currency (Obtained from Wikipedia) - Updated the accuracy of a lot of constants (Obtained from Wikipedia) PR: bin/106545 bin/88252 Submitted by: trasz<trasz@pin.if.uz.zgora.pl>, J Vinopal <banshee@abattoir.com> Approved by: bde@ (mentor) MFC after: 1 week
* Move functions which are only locally used into their C files andedwin2008-08-053-23/+23
| | | | | | | | | | make them static. usage() in calendar.c event_*() in io.c PR: bin/118644 Approved by: bde@ (mentor)
* style(9)ify usr.bin/calendaredwin2008-08-056-290/+324
| | | | | | PR: bin/118644 Approved by: bde@ (mentor) MFC after: 1 week
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-2/+2
| | | | | | understand which code paths aren't possible. Reported by: edwin
* Don't close file descriptor number <whatever random garbage was on thecperciva2008-08-041-0/+1
| | | | | | | stack>. Found by: LLVM/Clang Static Checker MFC after: 1 week
* Setting a variable to the same value twice doesn't actually make itcperciva2008-08-042-3/+0
| | | | | | more likely to have the right value. Remove superfluous assignments. Found by: LLVM/Clang Static Checker
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-044-27/+28
| | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer".
* Make quota(1) to compile with WARNS=6:delphij2008-08-041-5/+2
| | | | | | - ANSI'fy showrawquotas(). - Shut up GCC by initializing bgrace and igrace. The situation that caused the GCC warning can never happen though.
OpenPOWER on IntegriCloud