| #
d47295cc |
| 03-Oct-2024 |
rillig <rillig@NetBSD.org> |
bin: fix lint warning "effectively discards 'const'"
For example: src/bin/ed/io.c(339): warning: call to 'strchr' effectively discards 'const' from argument [346]
No binary change.
|
| #
6d8547fd |
| 09-Aug-2012 |
christos <christos@NetBSD.org> |
add missing include files
|
| #
cdec4ac1 |
| 11-Feb-2006 |
dsl <dsl@NetBSD.org> |
Change all the 'return(x)' to 'return c'. Makes some other searches I want to do a bit easier.
|
| #
7bbdd188 |
| 05-Jun-2005 |
chs <chs@NetBSD.org> |
appease gcc -Wuninitialized on hp700.
|
| #
b2f78261 |
| 20-Jun-2004 |
jmc <jmc@NetBSD.org> |
Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulti
Completely rework how tools/compat is done. Purge all uses/references to _NETBSD_SOURCE as this makes cross building from older/newer versions of NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to only use POSIX code in all places (or when reasonable test w. configure and provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86 NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
show more ...
|
| #
171d6532 |
| 27-Oct-2003 |
lukem <lukem@NetBSD.org> |
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/com
Overhaul how `build.sh tools' are used:
* Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
show more ...
|
| #
d1a05abe |
| 24-Jun-2003 |
christos <christos@NetBSD.org> |
Revert previous change, and fix the -T problem differently: When the options of the second argument are exhausted, call the appropriate getopt() routine to process the rest of the arguments instead o
Revert previous change, and fix the -T problem differently: When the options of the second argument are exhausted, call the appropriate getopt() routine to process the rest of the arguments instead of finishing option processing. Fixes: tar cf - -T foo
show more ...
|
| #
051ff2c4 |
| 23-Jun-2003 |
christos <christos@NetBSD.org> |
Simplify the way we deal with old argument style. Old way was broken when tar cf - -T dir
|
| #
ed83539f |
| 13-Oct-2002 |
mrg <mrg@NetBSD.org> |
add a "+" to the options string rather than setting POSIXLY_CORRECT
|
| #
0c612021 |
| 12-Oct-2002 |
christos <christos@NetBSD.org> |
merge OpenBSD changes: - correct -C processing - add ability to read filenames and flags from a file - don't print dangerous escape sequences to the terminal - use strlcpy/strncpy pro
merge OpenBSD changes: - correct -C processing - add ability to read filenames and flags from a file - don't print dangerous escape sequences to the terminal - use strlcpy/strncpy properly. - handle tmpfile creation better. - improve documentation of options. - handle stdout/stderr list selection correctly. - kill gzip when we get interrupted. - simplify gzip setup. - add more flags to programs.
additional changes: - librmt processing. - set POSIXLY_CORRECT in options parsing. - prevent more string overruns. - support -T
we don't turn the switch on to replace tar and cpio yet.
show more ...
|
| #
9fbd8888 |
| 31-Jan-2002 |
tv <tv@NetBSD.org> |
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __C
Roll in fixes to permit cross-compiling from non-NetBSD hosts. This round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __COPYRIGHT() better. * Reduce the number of places that need to include "config.h", to keep sources closer to their "vanilla" versions. * Add more compat #defines and autoconf-checked functions.
show more ...
|
| #
a328e341 |
| 29-Jan-2002 |
tv <tv@NetBSD.org> |
Make almost all tools compile and run properly on non-NetBSD hosts. (In particular, most tools now run correctly on Solaris 7.)
|
| #
33b90eeb |
| 03-Nov-2001 |
lukem <lukem@NetBSD.org> |
fix WARNS=2
|
| #
c1bd745c |
| 25-Oct-2001 |
lukem <lukem@NetBSD.org> |
- ansi KNF (just remove all the #ifndef __STDC__ prototype junk, leaving the ansi stuff) - use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*() - clean up the NET2_STAT stuff simil
- ansi KNF (just remove all the #ifndef __STDC__ prototype junk, leaving the ansi stuff) - use longlong_t instead of quad_t (etc), and rename *uqd*() -> *ull*() - clean up the NET2_STAT stuff similar to ftpd; provide #defines and macros which select which cast to use, etc - clean up the NET2_FTS and NET2_REGEX #define use
show more ...
|
| #
4120b8a4 |
| 04-Jul-2000 |
thorpej <thorpej@NetBSD.org> |
Add GNU tar-style long options for pax's tar front-end. Still many GNU options not implemented, but there is an #if 0'd out canonical list.
|
| #
51ee9dc6 |
| 14-Apr-2000 |
simonb <simonb@NetBSD.org> |
Don't declare 'extern opt*' getopt variables.
|
| #
f8adf56d |
| 17-Feb-2000 |
itohy <itohy@NetBSD.org> |
Cleanup and fix typos. Partially from FreeBSD.
|
| #
a288a2f6 |
| 01-Nov-1997 |
lukem <lukem@NetBSD.org> |
getoldopt is expect to return -1 (not EOF), so "make it so"
|
| #
332c413b |
| 14-Sep-1997 |
lukem <lukem@NetBSD.org> |
* cleanup manpage * getopt returns -1 not EOF * deprecate register
|
| #
f3cd6022 |
| 20-Jul-1997 |
christos <christos@NetBSD.org> |
- Rename local warn so tty_warn that we can include <err.h> since this program uses err() and errx(). - Fix printf format strings. - Added WARNS=1; note - Added missing prototypes. - Split overload
- Rename local warn so tty_warn that we can include <err.h> since this program uses err() and errx(). - Fix printf format strings. - Added WARNS=1; note - Added missing prototypes. - Split overloaded trail function into trail() and subtrail().
show more ...
|
| #
26db98be |
| 17-May-1996 |
jtc <jtc@NetBSD.org> |
Fixed typo in comment
|
| #
49f0ad86 |
| 21-Mar-1995 |
cgd <cgd@NetBSD.org> |
convert to new RCS id conventions.
|
| #
5dad1439 |
| 04-Dec-1994 |
cgd <cgd@NetBSD.org> |
from James Jegers <jimj@miller.cs.uwm.edu>: quiet -Wall, and squelch some of the worst style errors.
|
| #
eb066159 |
| 14-Jun-1994 |
jtc <jtc@NetBSD.org> |
Whoever wrote the tar command line argument parsing code didn't realize that the order of arguments is different if the command flags are specified without a `-'. I've integrated getoldopt.c from Jo
Whoever wrote the tar command line argument parsing code didn't realize that the order of arguments is different if the command flags are specified without a `-'. I've integrated getoldopt.c from John Gilmore's pdtar which handles argument parsing correctly.
show more ...
|