summaryrefslogtreecommitdiffstats
path: root/usr.bin/compress
Commit message (Collapse)AuthorAgeFilesLines
* Replace index() and rindex() calls with strchr() and strrchr().ed2012-01-031-3/+3
| | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
* - add a missing "be" and "in"eadler2011-11-111-1/+1
| | | | | | | | | | | - fix other errors introduced when committing r226436 - add 'function' to a sentence where it makes sense Submitted by: delphij Submitted by: dougb Submitted by: jhb Approved by: dougb Approved by: jhb
* Mark global functions and/or variables in compress(1) static where possible.ed2011-11-061-15/+15
| | | | This allows compilers and static analyzers to more thorough analysis.
* - change "is is" to "is" or "it is"eadler2011-10-161-1/+1
| | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* Fix handling of corrupt compress(1)ed data. [11:04]bz2011-09-281-6/+17
| | | | | | | | | | Add missing length checks on unix socket addresses. [11:05] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-11:04.compress Security: CVE-2011-2895 [11:04] Security: FreeBSD-SA-11:05.unix
* Remove $Log$ keyword, which can cause annoyance in diffs in some cases.emaste2011-03-311-1/+1
| | | | Revision control tools have a history command to obtain this information.
* Remove the advertising clause from UCB copyrighted files in usr.bin. Thisjoel2010-12-114-16/+0
| | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson
* Correct some typos in comments, no functional changes.bcr2010-10-161-1/+1
|
* Change all our own code to use st_*tim instead of st_*timespec.ed2010-03-281-2/+2
| | | | Also remove some local patches to diff(1) which are now unneeded.
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+2
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-2/+0
| | | | Tested with: make universe
* -mdoc sweep.ru2005-11-181-11/+10
|
* Several changes: Added a BUGS section with several bugs. Andgarys2005-09-071-26/+94
| | | | | | | | | | | | -- Made the synopses more precise. -- Added argument to flag in option description. -- Moved -b default and limits to option description (to un-hide). -- Noted several behaviors that were not mentioned. -- A few more trivial changes. PR: docs/46787 Approved by: keramida MFC after: 3 days
* Unbreak r1.11 by delhij. Blind change from unsigned to signed charkan2005-05-181-2/+2
| | | | | pointer causes problems with sign extension and leads to compress(1) dumping core on any non-trivial incoming data.
* Consistently use signed char so gcc4 won't complaindelphij2005-05-021-1/+1
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Bump WARNS level to 6.trhodes2004-09-101-0/+1
| | | | | Submitted by: keramida Tested on: i386, sparc64 (panther)
* Fix the NAME section making whatis(1) happy in particular.ru2004-07-051-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Don't truncate the output file before making sure that we cantrhodes2003-06-141-6/+17
| | | | | | | | | | | | | | | | | | | | | read at least 1 byte from the input file without problems. This fixes a bug in uncompress(1) that causes the accidental removal of files that happen to have the same name as the output file, even when the uncompression fails and is aborted, i.e.: $ echo hello world > hello $ touch hello.Z $ ls -l hello* -rw-rw-r-- 1 giorgos giorgos 12 Jun 14 13:33 hello -rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z $ ./uncompress -f hello uncompress: hello.Z: Inappropriate file type or format $ ls -l hello* -rw-rw-r-- 1 giorgos giorgos 0 Jun 14 13:33 hello.Z $ PR: 46787 Submitted by: keramida
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* Spelling.charnier2002-10-162-28/+32
|
* ANSIify function definitions to avoid a warning.dwmalone2002-07-282-39/+14
|
* mdoc(7) police: lint.ru2002-05-291-1/+1
|
* Add a Standards section, and note that compress(1) and uncompress(1) nowtjr2002-05-171-1/+8
| | | | conform to P1003.1-2001.
* As required by SUSv3, a file argument of "-" causes standard inputtjr2002-05-172-3/+13
| | | | to be compressed/decompressed to standard output.
* Compression ratio statistics should be written to stderr instead of stdout.tjr2002-05-171-4/+5
|
* Use exit status 2 to indicate that the file was not compressed becausetjr2002-05-172-0/+8
| | | | its size would not be reduced (SUSv3).
* Use `The .Nm utility'charnier2002-04-191-6/+9
|
* compress(1) has an erroneous description of zcat, fixed.trhodes2002-04-091-8/+7
| | | | | PR: 36453 No objections from: ru
* unifdef -D__STDC__imp2002-03-231-28/+3
|
* remove __Pimp2002-03-223-15/+15
|
* Remove leaf node WARNS?=2 (that mainly I added). This shouldmarkm2002-02-081-1/+0
| | | | help the GCC3 transition and CURRENT in general.
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-102-9/+9
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* Use __FBSDID().markm2001-12-022-12/+14
| | | | | Use a better choice than size_t for vertain variables. Fix some comment alignment.
* WARNS=2 fix and 'register' removal.markm2001-12-023-28/+31
|
* mdoc(7) police: make double quotes in #include statement visible.ru2001-10-011-1/+1
|
* mdoc(7) police: Fixed the .Ex calls in manpages that describe moreru2001-09-111-1/+1
| | | | | | | than one utility. PR: docs/30437 Submitted by: SUZUKI Koichi <koich@cac.co.jp>
* mdoc(7) police: utilize the new .Ex macro.ru2001-08-151-3/+1
|
* Removed duplicate VCS ID tags, as per style(9).ru2001-08-131-3/+5
|
* Remove whitespace at EOL.dd2001-07-151-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Mark some functions as __printflike()kris2001-07-051-2/+2
| | | | MFC after: 1 week
* MAN[1-9] -> MAN.ru2001-03-271-1/+2
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-2/+2
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebywollman2000-10-101-0/+1
| | | | <time.h>).
* From PR submitter:hoek2000-05-161-2/+2
| | | | | | | | | | | | compress uses setfile() to make flags, ownership and mode of the output the same as those of the original. However, if the filesystem holding the output file doesn't support these operations, compress prints a warning. This bites a bit with NFS directories, which always fail the chflags() operation. If the file system doesn't support the operation, then the flags data wasn't valid on the original file anyway, so the warning is spurious. Submitted by: bin/16981 (Peter Edwards <peter.edwards@ireland.com>)
* Add DIAGNOSTICS section name. Spellingcharnier2000-03-263-10/+13
|
OpenPOWER on IntegriCloud