summaryrefslogtreecommitdiffstats
path: root/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicatedougb2010-05-141-1/+0
|
* mdoc: move remaining sections into consistent orderuqs2010-05-134-22/+22
| | | | | | | This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run Reviewed by: ru
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-132-4/+4
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* - Missing full stopsbrueffer2010-05-121-6/+6
| | | | | | | | | | | - Upper case the first character of an description - Section headings do not need to be quoted. From OpenBSD's make.1, revision 1.81 - Plural of suffix is suffixes. From OpenBSD's make.1, revision 1.61 - s/seperating/separating/ PR: 135165 Submitted by: Alan R. S. Bueno <alan.bsd@gmail.com> MFC after: 1 week
* mdoc: remove stray anduqs2010-05-111-1/+0
| | | | | Found via: mdocml Reviewed by: brueffer
* Enable liblzma support in libarchivemm2010-05-105-10/+10
| | | | | | | | Adjust dependencies for programs using libarchive Add xz and linkage against liblzma to rescue system Approved by: kientzle, delphij (mentor) MFC after: 2 weeks
* Add two public headers missing in r207842mm2010-05-103-6/+3
| | | | | | | Adjust CFLAGS for lzmainfo, xz, xzdec Approved by: delphij (mentor) MFC after: 2 weeks
* Import of liblzma, xz, xzdec, lzmainfo from vendor branchmm2010-05-106-1/+115
| | | | | | | | Add support for xz and lzma to lesspipe.sh (xzless, lzless) Bump __FreeBSD_version Approved by: delphij (mentor) MFC after: 2 weeks
* bsdcpio 2.8.3kientzle2010-05-0815-562/+675
|
* FreeBSD is now using bsdtar 2.8.3.kientzle2010-05-081-1/+1
|
* Config updates.kientzle2010-05-081-7/+19
|
* Various manpage updates, including many long-option synonyms that were ↵kientzle2010-05-081-101/+209
| | | | previously undocumented.
* Merger of the quota64 project into head.mckusick2010-05-072-158/+89
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This joint work of Dag-Erling Smørgrav and myself updates the FFS quota system to support both traditional 32-bit and new 64-bit quotas (for those of you who want to put 2+Tb quotas on your users). By default quotas are not compiled into the kernel. To include them in your kernel configuration you need to specify: options QUOTA # Enable FFS quotas If you are already running with the current 32-bit quotas, they should continue to work just as they have in the past. If you wish to convert to using 64-bit quotas, use `quotacheck -c 64'; if you wish to revert from 64-bit quotas back to 32-bit quotas, use `quotacheck -c 32'. There is a new library of functions to simplify the use of the quota system, do `man quotafile' for details. If your application is currently using the quotactl(2), it is highly recommended that you convert your application to use the quotafile interface. Note that existing binaries will continue to work. Special thanks to John Kozubik of rsync.net for getting me interested in pursuing 64-bit quota support and for funding part of my development time on this project.
| * Final update to current version of head in preparation for reintegration.mckusick2010-05-0618-672/+794
| |\
| * \ Update to current version of head.mckusick2010-04-28103-1721/+4370
| |\ \
| * | | Debugging nits found while testing the new 64-bit quota code.mckusick2010-03-161-0/+1
| | | |
| * | | IFH@204581des2010-03-04424-2808/+33810
| |\ \ \
| * | | | Fix warnings + minor style issuesdes2010-03-041-33/+30
| | | | |
| * | | | Update to work with quotafile functions in -libutil.mckusick2009-10-211-149/+82
| | | | |
* | | | | Update xrefs from 4.3BSD to modern signal functions in various man pages.jilles2010-05-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sigvec(2) references have been updated to sigaction(2), sigsetmask(2) and sigblock(2) to sigprocmask(2), sigpause(2) to sigsuspend(2). Some legacy man pages still refer to them, that is OK.
* | | | | Plug a memory leak.delphij2010-05-061-0/+1
| | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | | Revert r207677 which is considered a violation of style(9).delphij2010-05-067-16/+46
| | | | | | | | | | | | | | | | | | | | | | | | | Pointed out by: bde Pointy hat to: delphij
* | | | | While I am here, add more missing (unsigned char) casts to ctype() macrosache2010-05-062-2/+2
| | | | |
* | | | | Fix recent space skipping:ache2010-05-061-2/+2
| |_|_|/ |/| | | | | | | | | | | | | | | 1) add missing (unsigned char) cast to ctype() macro 2) fix off-by-one error causing last letter always doubled
* | | | Move SCCS tags to comments as they were already #if 0'ed.delphij2010-05-057-44/+14
| | | |
* | | | Doh! Add another new file forgotten by the importer of edwin@'s tftpimp2010-05-041-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | improvements. MFC after: 1 week Pointy Hat: imp-o-rama...
* | | | Restore historical behaviour of only executing chflags on files that exist.emaste2010-05-041-0/+2
| | | | | | | | | | | | | | | | | | | | This eliminates cosmetic errors of the form "chflags: ...: No such file or directory" during an installworld to an empty destination.
* | | | Go ahead and merge the work edwin@ on tftpd into the tree. It is aimp2010-05-044-602/+696
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lot better than what's in the tree now. Edwin tested it at a prior employer, but can't test it today. I've found that it works a lot better with the various uboot versions that I've used in my embedded work. Here's the pkg-descr from the port that describes the changes: It all started when we got some new routers, which told me the following when trying to upload configuration or download images from it: The TFTP server doesn't support the blocksize option. My curiousity was triggered, it took me some reading of RFCs and other documentation to find out what was possible and what could be done. Was plain TFTP very simple in its handshake, TFTP with options was kind of messy because of its backwards capability: The first packet returned could either be an acknowledgement of options, or the first data packet. Going through the source code of src/libexec/tftpd and going through the code of src/usr.bin/tftp showed that there was a lot of duplicate code, and the addition of options would only increase the amount of duplicate code. After all, both the client and the server can act as a sender and receiver. At the end, it ended up with a nearly complete rewrite of the tftp client and server. It has been tested against the following TFTP clients and servers: - Itself (yay!) - The standard FreeBSD tftp client and server - The Fedora Core 6 tftp client and server - Cisco router tftp client - Extreme Networks tftp client It supports the following RFCs: RFC1350 - THE TFTP PROTOCOL (REVISION 2) RFC2347 - TFTP Option Extension RFC2348 - TFTP Blocksize Option RFC2349 - TFTP Timeout Interval and Transfer Size Options RFC3617 - Uniform Resource Identifier (URI) Scheme and Applicability Statement for the Trivial File Transfer Protocol (TFTP) It supports the following unofficial TFTP Options as described at http://www.compuphase.com/tftp.htm: blksize2 - Block size restricted to powers of 2, excluding protocol headers rollover - Block counter roll-over (roll back to zero or to one) From the tftp program point of view the following things are changed: - New commands: "blocksize", "blocksize2", "rollover" and "options" - Development features: "debug" and "packetdrop" If you try this tftp/tftpd implementation, please let me know if it works (or doesn't work) and against which implementaion so I can get a list of confirmed working systems. Author: Edwin Groothuis <edwin@FreeBSD.org>
* | | | pathchk(1): Fix the example so it allows arbitrary pathnames.jilles2010-05-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Spaces and various other characters in pathnames are not passed through literally by xargs in its default mode. Instead, use find . -exec ... {} + Although the -- argument is not strictly required here, add it anyway to avoid surprises when modifying the code to find -f -somedir ... MFC after: 1 week
* | | | pathchk: Add the new POSIX -P option.jilles2010-05-012-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This option checks for empty pathnames and components starting with '-'. Our -p option also checks for the latter, which remains the case. MFC after: 1 week
* | | | Remove WNOHANG flag from wait3().ed2010-04-301-15/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because script(1) now reliably terminates when the TTY is closed, it may be the case that the call to wait3() occurs just before the child process exits. This causes error codes to be ignored. Just change script(1) to use waitpid() instead of wait3(). This makes it more portable and prevents the need for a loop, since waitpid() only returns a specified process. PR: bin/146189 Tested by: amdmi3@, older version MFC after: 2 weeks
* | | | Use _exit(2) system call directly instead of using exit(3) in signaldelphij2010-04-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | handler, as the latter is not guaranteed to be signal safe, and we do not really care about flushing the stream during SIGINT. Suggested by: Maxim Konovalov <maxim.konovalov gmail com> MFC after: 13 days
* | | | Language improvements to make the BUGS section easier to read.delphij2010-04-271-3/+3
| |_|/ |/| | | | | | | | | | | Reviewed by: Alexander Best <alexbestms wwu de> MFC after: 13 days
* | | Add a signal handler for SIGINT which removes output file when necessary.delphij2010-04-261-4/+21
| | | | | | | | | | | | | | | | | | | | | While I'm there, move unlink_input() slightly down to after closing the output file, in uncompression path. MFC after: 2 weeks
* | | Make hash, type and ulimit available via execve().jilles2010-04-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are specified by POSIX but are not special builtins, and therefore need to be available via execve() and utilities like time, nohup, xargs. (Note that hash was moved from the XSI option to the base in the 2008 standard.) Like most of the POSIX "regular builtin commands", these need to be executed in a shell environment for full functionality, although they may still be of some use outside one. Unlike the POSIX special and regular builtin commands, POSIX does not require these to be found before a PATH search, although that could be an oversight. Like some of the utilities already provided by usr.bin/alias, these may lead to confusing results when invoked from csh(1).
* | | stat: Allow -f %Sf to display the file flags symbolically.jilles2010-04-242-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | I have changed the patch slightly to show '-' if there are no flags just like ls -ldo does. PR: 124349 Submitted by: Ighighi MFC after: 1 week
* | | indent(1): don't treat bare '_t' as a type name when -ta is usedavg2010-04-151-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that identifier "_t" is sometimes used as a variable name, even in our tree. Not that I endorse that, but still it's better to require at least one character before _t suffix to consider an identifier to be a type name. Reported by: Alex Vasylenko <lxv@omut.org> MFC after: 1 week
* | | mdoc: order prologue macros consistently by Dd/Dt/Osuqs2010-04-1412-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | Although groff_mdoc(7) gives another impression, this is the ordering most widely used and also required by mdocml/mandoc. Reviewed by: ru Approved by: philip, ed (mentors)
* | | Add and expand $FreeBSD$ keyword to allow committing to this file.uqs2010-04-141-1/+1
| | |
* | | Allerheilingen -> Allerheiligenedwin2010-04-131-1/+1
| | | | | | | | | | | | Submitted by: Ronald Klop <ronald at realworks dot nl>
* | | If a file is specifically both included and excluded, then:kientzle2010-04-111-25/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * It is not extracted (because it is excluded) * If it's not present in the archive, then an error is reported (because the file was requested and not found) * If it is present in the archive, no error is reported. Previously, this would always report an error because the exclusion prevented the entry from matching the inclusion. Also, tar is now more reluctant to report unmatched inclusions. Previously, "tar x file1 'file*'" against an archive that contained a single entry "file1" would match file1 and then report an error for the second pattern because it wasn't matched. It now considers both inclusions to be matched and reports no error.
* | | Diff reduction against bsdtar 2.8.3kientzle2010-04-111-11/+25
| | |
* | | Diff reduction against bsdtar 2.8.3kientzle2010-04-111-1/+2
| | |
* | | Fix -X.kientzle2010-04-111-1/+1
| | |
* | | Consistently specify O_BINARY when opening files.kientzle2010-04-111-5/+9
| | |
* | | Remove an unnecessary include and conditionalize some code.kientzle2010-04-112-1/+6
| | |
* | | Correct the markup for the -s option,kientzle2010-04-111-7/+30
| | | | | | | | | | | | document the iso9660:rockridge and mtree:indent options
* | | Rename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.hrdivacky2010-04-093-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Bump the alignment to 16bytes because lint1 memory allocator is used for objects that require 16bytes alignment on amd64 (ie. val_t). This makes lint1 work when compiled with compiler(s) that use SSE for memcpy on amd64. (e.g. clang). Approved by: ed (mentor)
* | | Diff reduction against NetBSD and add myself to AUTHORS section of thedelphij2010-04-073-13/+14
| | | | | | | | | | | | | | | manual page as I wrote the unpack functionality. No actual executable code change verified with md5(1).
* | | Remove yet another vestage of alpha support.imp2010-04-061-2/+0
| | |
OpenPOWER on IntegriCloud