summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* ctime() expects a time_t, but qup->dqblk.dqb_btime is an int32_t, so forcognet2008-08-031-6/+9
| | | | | | | | | big endian platforms where time_t is 64bits (ie armeb and sparc64), it will be a problem. Use a temporary time_t to work around this. Submitted by: Matthew Luckie <mjl AT luckie DOT org dot nz> MFC after: 3 days
* calendar.holiday: Buinea-bissau should be Guinea-Bissauedwin2008-08-031-1/+1
| | | | | | PR: conf/126199 Submitted by: comet--berkeley (aka Pablo Picasso) <comet@transbay.net> Approved by: bde@
* A few style and whitespace fixes.jhb2008-08-021-11/+9
| | | | Submitted by: bde
* POSIX says that octal escapes have the format \ddd in the format string,das2008-08-021-1/+2
| | | | | | | | | but \0ddd in a %b argument, with a length restriction of 3 octal digits in either case. This seems silly, but it needs to be right so it's possible to write an octal escape followed by an ordinary digit. Solaris printf(1) and GNU printf(1) also behave this way. Example: "printf '\0752'" now produces "=2" instead of garbage.
* Tweak the support for using ldd on 32-bit objects a bit further.jhb2008-08-013-39/+68
| | | | | | | | | | | | | Specifically, build a 32-bit /usr/bin/ldd32 on amd64 which handles 32-bit objects. Since it is a 32-bit binary, it can fork a child process which can dlopen() a 32-bit shared library. The current 32-bit support in ldd can't do this because it does the dlopen() from a 64-bit process. In order to preserve an intuitive interface for users, the ldd binary automatically execs /usr/bin/ldd32 for 32-bit objects. The end result is that ldd on amd64 now transparently handles 32-bit shared libraries in addition to 32-bit binaries. Submitted by: ps (indirectly)
* Try to make this code slightly less painful to read.des2008-07-312-690/+673
|
* Add POSIX -p flag to make(1).ed2008-07-302-4/+19
| | | | | | | | | | | | | | | | This article [1] describes the -p flag for make(1): Write to standard output the complete set of macro definitions and target descriptions. The output format is unspecified. We already support a similar flag (-d g1), but unlike -p, it still executes commands. Our implementation just turns it into -d g1, but also sets flag `printGraphOnly', which will cause make(1) to skip execution. [1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html Reviewed by: imp PR: standards/99960
* MfP4: Preserve permissions by default.kientzle2008-07-301-0/+1
| | | | | | | | | | | | | | | | | | In particular, this fixes the oddity that -dumpl would apply umask to copied dirs (which are created in the target tree) but not to "copied" files (which are only linked). After this change: $ ls -ld a a/b a/b/c d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a drwxr----x 3 tim tim 512 Jul 29 20:09 a/b dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c $ (echo a; echo a/b; echo a/b/c) | cpio -dumpl o $ cd o $ ls -ld a a/b a/b/c d--x-w-r-- 3 tim tim 512 Jul 29 20:08 a drwxr----x 3 tim tim 512 Jul 29 20:09 a/b dr----x-w- 2 tim tim 512 Jul 29 20:09 a/b/c
* Fix buildemax2008-07-291-1/+1
|
* Fix buildemax2008-07-291-0/+1
|
* Add --no-preserve-owner, which seems to be required by some ports.kientzle2008-07-293-0/+5
| | | | Thanks to: Erwin Lansing
* Fix text in the comment why we check for ELF32_R_TYPEedwin2008-07-281-8/+5
| | | | | Approved by: bde@ MFC after: 2 days2 days
* Fix a small typo in the procstat(1) manpage: messsage queue.ed2008-07-281-1/+1
| | | | | Approved by: philip (mentor) MFC after: 3 days
* - Fix mtree example so it works.simon2008-07-261-0/+7
| | | | | | | - Document --version. Reviewed by: kientzle MFC after: 1 week
* Adding myself as a new ports committerpgollucci2008-07-231-0/+1
| | | | | Reviewed by: gabor (mentor) Approved by: araujo (mentor)
* Sync with NetBSD's license changes.delphij2008-07-232-10/+4
|
* After the commit of SVN rev 180236, wilko@ noticed that the approachedwin2008-07-211-4/+18
| | | | | | | | | doesn't work on the Alpha platform: machine/elf.h doesn't include sys/elf32.h there. PR: related to bin/124906 Approved by: bde@ MFC after: 1 week
OpenPOWER on IntegriCloud