Commit Graph

3169 Commits

Author SHA1 Message Date
itohy
6aeb72f23f Reduced memory leaks.
I found some more leaks, but are not in inside of iterations.
1998-11-01 03:07:33 +00:00
itohy
841c52934a If the target name is shorter than the suffix,
the previous garbage bytes may be read.
Example: "make n" --- target = n, suffix = .ln

Changing interface of SuffSuffIsSuffix() is required to fix this bug.
1998-11-01 03:05:03 +00:00
itohy
f748b52ef3 Avoid reading outside of allocated memory
on command execution if the output is empty.
1998-11-01 03:01:53 +00:00
eeh
1e192ee3f9 Added an FCode tokenizer for all your FCode tokenizing needs. 1998-10-31 18:14:53 +00:00
mrg
3adcd350ed put all the different struct sockaddr_xxx types into the union pt_u, to force the alignment to be correct for all of them. 1998-10-31 06:42:22 +00:00
is
30d737b32b learn more about AMANDA files 1998-10-29 11:11:49 +00:00
simonb
1f00456a27 For -ls output, change field widths to allow inodes up to 9,999,999 and
file sizes up to 999,999,999 bytes (and 999,999 blocks) without wobbly
lines.  Also change device minor/major to be 3/5 digits (current maximum
is 4/7 digits - the 3/5 split is arbitary).
1998-10-27 04:53:03 +00:00
jonathan
e1d397462e usr.bin/Makefile: recurse into fdformat on all ports
usr.bin/fdformat/Makefile:  build manpages on all  ports
distrib/sets/lists/man/mi: add fdformat manpages
distrib/sets/lists/man/md.{arm32,atari,i386,sparc}:
	 only listed fdformat manpegs. remove.
distrib/sets/lists/man/md.mvem68k:
	duplicate entry of mvme68k installboot.	remove.
1998-10-25 23:30:39 +00:00
christos
30c9449a34 Adjust to Eric's recent errno renaming. 1998-10-24 19:04:51 +00:00
augustss
5650a635f5 Fix typo. 1998-10-22 10:34:17 +00:00
hwr
28a88d13b8 Typo *sigh* 1998-10-21 20:24:11 +00:00
hwr
1332e7b200 Jon Postel died ;-( 1998-10-21 17:44:05 +00:00
augustss
9fe2d0d409 Add f flag to getopt() argument. Fixes PR 6335.
From  Andreas Wrede <andreas@planix.com>
1998-10-20 20:22:09 +00:00
wsanchez
bd68b6099d Remove spurious return 1998-10-19 00:43:59 +00:00
christos
9a04d28344 Fix emulation errno translation. 1998-10-18 17:43:43 +00:00
christos
ff08129ca5 strftime is not needed for svr4 machines; also fix the prototype footprint. 1998-10-18 14:24:16 +00:00
christos
3b7c5b4ed8 Only define const and volatile when __STDC__ is not defined (for BOOTSTRAP) 1998-10-18 14:23:48 +00:00
kleink
759e4c8f58 <sys/fcntl.h> -> <fcntl.h> in previous. 1998-10-16 22:01:57 +00:00
ross
034eedfe44 Add missing .El 1998-10-15 08:18:46 +00:00
briggs
b8fdc19047 Explicitly declare the storage for some variables that used to be defined only
in a header file.  Defined here since tt_tab was already defined here
1998-10-15 01:49:04 +00:00
thorpej
4567103300 Make this compile again, and fix some whitespace lossage. 1998-10-14 21:56:57 +00:00
wsanchez
8a7fb4fe55 Get rid of the bazillion commons in several header files.
Rename string.h to window_string.h so compiler can find /usr/include/string.h.
1998-10-14 00:58:46 +00:00
wsanchez
76e31a71ac include unistd 1998-10-14 00:58:00 +00:00
wsanchez
eca3ac5bf3 Silence -Wall by casting to (long) in printf formats. 1998-10-14 00:57:40 +00:00
wsanchez
b9e3650e39 Add #ifdef SKEY around SKEY-specific code. 1998-10-14 00:56:48 +00:00
wsanchez
af4e69540c include unistd 1998-10-14 00:56:00 +00:00
wsanchez
a6e937b096 Replace groups and whoami sh scripts with hard links to id. 1998-10-14 00:55:03 +00:00
wsanchez
3376e86cab include stdlib 1998-10-14 00:50:59 +00:00
wsanchez
6149c86370 init mask to silence -Wall 1998-10-14 00:50:43 +00:00
wsanchez
65b6624a6d Include sys/types.h 1998-10-13 17:09:16 +00:00
wsanchez
8a6084908f Use __ARCHITECTURE__, if defined, as MACHINE_ARCH 1998-10-13 17:08:34 +00:00
wsanchez
f873d81217 Use unsigned long instead of ulong 1998-10-13 17:03:39 +00:00
wsanchez
34e6a21ac8 include stdlib.h 1998-10-13 17:02:53 +00:00
wsanchez
d213a54fe9 include unistd.h 1998-10-13 17:02:16 +00:00
wsanchez
1426fb14d2 Use __CONCAT to concatenate strings "-I" and _PATH_CALENDARS. 1998-10-12 20:51:06 +00:00
wsanchez
76847494e0 Replace _PATH_INCLUE with _PATH_CALENDARS for clarity. 1998-10-12 20:38:55 +00:00
erh
7713adc833 Add "-p" usage line. 1998-10-12 20:33:52 +00:00
matt
2e3397e773 Teach file that NetBSD/vax has two magic numbers. 1998-10-12 01:41:32 +00:00
itohy
a42010baf2 Eliminate memory leaks at case labels. 1998-10-10 20:51:48 +00:00
itohy
476393a9c0 Eliminate a memory leak. 1998-10-10 20:48:04 +00:00
itohy
868f04b4ca Eliminate memory leaks. 1998-10-10 20:45:59 +00:00
mrg
14a817a516 create a "stat_flags.h" to go with stat_flags.c 1998-10-10 07:38:22 +00:00
itohy
c567b3c6b8 The range of the argument of ctype(3) functions is not that of "char",
but "unsigned char" plus EOF.
The original code may cause troubles processing 8-bit code files.
1998-10-09 17:00:56 +00:00
wsanchez
55ce51b29f Get rid of commons.
Rename vfree() to v_free() to avoid conflict in out libc's vfree().
1998-10-08 17:36:55 +00:00
lukem
da0a823fb0 * hash & progress are mutually exclusive. [noted by mrg@netbsd.org]
* in autofetch mode, don't attempt to 'cd /' on first xfer (only on
  subsequent xfers), as some ftp daemons don't permit that.
  [noted by dbj@netbsd.org].
  XXX: code could be smarter (but a lot more complicated to boot); this
  works for now.
1998-10-08 14:45:26 +00:00
itohy
edb019abaf Eliminate memory leaks.
Use  xrealloc()  rather than  xmalloc/memcpy/free  trio.
1998-10-08 08:20:37 +00:00
wsanchez
420c1e461a *** empty log message *** 1998-10-08 02:15:14 +00:00
wsanchez
438823cc1c Add new option -S, which is like -s, but takes a string of options to pass to strip,
rather than "-s". For example:
	install -S "-i -s symbolfile" foo /usr/bin/foo
  Invokes:
	/bin/sh -c "strip -i -s /usr/bin/foo"
  This is needed, because we need different strip options for dynamic libraries and
  Mach-O bundles than for executables; our strip supports more directed stripping.
  /bin/sh is used in this case, to parse the arguments.

Don't bother mmap()ing files of zero length. Was a workaround for a bug in our mmap(),
  which didn't get along with such files, but makes sense anyway.
1998-10-08 02:12:51 +00:00
wsanchez
cc084df5da Init style to quiet compiler.
Allow zcat hard link to compress rather than using zcat.sh wrapper; same as uncompress.
Don't install zcat, however; gzcat seems to be living in /usr/bin/zcat at the moment.
1998-10-08 01:56:28 +00:00
wsanchez
76c99f3c0a We can't define MACHINE from a makefile in Rhapsody, because you might be cross
compiling, or building a fat (multi-architecture) binary.  Our compiler
  defines __ARCHITECTURE__ for this use.
Fixed an off-by-one error that may occasionally cause man to seg fault. Found
  by using a special strict malloc() implementation.
1998-10-08 01:36:04 +00:00
wsanchez
c19ec78ded Include unistd and sys/fcntl.
Add return types to functions.
1998-10-08 01:32:23 +00:00
wsanchez
1696358aa0 Didn't get along with ObjC/C++ style "//" comments. Add code to deal with that. 1998-10-08 01:31:59 +00:00
wsanchez
1a8d48f462 Add return 0 after errx in to quiet the compiler 1998-10-08 01:31:34 +00:00
wsanchez
9e44eb8cc1 Add __ppc__ test 1998-10-08 01:30:50 +00:00
wsanchez
ab92b4feee Get rid of multiply defined common symbols 1998-10-08 01:30:27 +00:00
wsanchez
6f3b17afac #elsej (!) should be #else 1998-10-08 01:29:49 +00:00
wsanchez
d2b96d3f77 Get rid of multiply defined common symbols
langauge should be language in error.h
1998-10-08 01:29:27 +00:00
veego
ee0b338314 Fix the include problem of <compat/linux/arch/xxx/linux_syscall.h>. 1998-10-04 10:49:58 +00:00
kleink
20eda71b18 It's sufficient to list Janis Joplin's death once only. 1998-10-02 18:19:05 +00:00
erh
ecf84c1f19 Add -p flag to usage(). 1998-10-01 18:23:52 +00:00
thorpej
23309c9e22 Make the magic type field explicitly unsigned and fix comparisons of this
value appropriately.  Fixes warnings on systems where char is naturally
unsigned.
1998-09-30 18:51:13 +00:00
thorpej
bdbbf87163 Must cast size_t to long and use %ld to print. 1998-09-30 18:37:05 +00:00
jonathan
34bcc57619 Add bzip2, bzip2recover to SUBDIRS. 1998-09-29 22:43:51 +00:00
lukem
887627831e * add transfer rate to progress meter. (suggested by hubert feyrer)
* fix up progress meter display for files once > ~20.47MB has been
  transferred.  (noted by darren reed)
* use xsignal() for SIGWINCH, so window resizes don't abort xfers on
  drainbamaged systems.
* don't assume that TIOCGWINSZ returns a non zero width.
1998-09-28 09:03:22 +00:00
christos
710d4c153b add -p flag, similar to cp(1) 1998-09-28 08:16:15 +00:00
christos
4edda7dedc Modernize (use err, don't use bogus cpp macros, prototypes etc.) 1998-09-27 18:29:15 +00:00
lukem
9dee5d2b46 don't install in /usr/share if NOSHARE is defined 1998-09-27 17:22:03 +00:00
christos
8f945ca5b1 Amend copyright to a berkeley style one. From Ian Darwin. 1998-09-24 12:50:27 +00:00
christos
635d311056 - argument error detection
- long line support
- argument change [-f <fname>] instead of [-c <args>]
- conditional prototypes
1998-09-24 12:28:39 +00:00
perry
50a3fa9e59 make compile with warnings on. 1998-09-23 21:45:44 +00:00
perry
b0ed6b6fa0 add shuffle 1998-09-23 21:07:47 +00:00
perry
6e92230560 Add shuffle, a small program for producing permutations.
Note that is still a little cleanup to be done, but I thought it was
the right point to commit.
1998-09-23 21:05:59 +00:00
christos
f46e623e45 Turn on ELF and other NetBSD features. 1998-09-20 15:36:46 +00:00
christos
397e929e3b remove old files. 1998-09-20 15:32:43 +00:00
christos
faf55c153e resolve corn flakes. 1998-09-20 15:27:15 +00:00
christos
a7ad0f02b4 file-3.26 1998-09-19 18:07:40 +00:00
frueauf
342f84988e Remove duplicate paragraph, mention .forward file, fixes pr 6177 by
Andreas Wrede.
1998-09-18 20:39:48 +00:00
christos
82ee767393 Fix conditional variable expression parsing (reported by cgd) 1998-09-18 20:35:11 +00:00
christos
1b24c735a6 PR/6162: Greg A. Woods: pmake does not add suffix rules if gnodes have children.
This is traditional make behavior (Solaris make does the same), but
	 GNU does not. Lets see what breaks.
1998-09-18 20:20:52 +00:00
christos
aed39ca72c PR/6174: ITOH Yasufumi: Purify bug and a compile error in utility code. 1998-09-18 20:15:36 +00:00
cjs
0ad4a32dfb Add bugs section noting that, with -F, tail can fail to detect a file
truncation. Also note that -F option is an extension.
1998-09-18 01:54:13 +00:00
cjs
59a47ce7be Remove tracking of file size by how many characters were output.
This succumbs to a race condition where data are written to the
file while the sleep is occurring. If a stat is done immediately
after, lastsize is updated but the file pointer wasn't pointing at
the end of the file, so the number of bytes between the current
pointer and the end of the file is added to the lastsize when
lastsize already points to the end of the file.
1998-09-18 01:42:54 +00:00
ross
c7c3a68ca1 Fix MLINKS. Define LDADD and DPADD. 1998-09-14 05:34:41 +00:00
ross
51ecc07eb9 NetBSD rcs id keyword. 1998-09-14 04:42:45 +00:00
ross
28e76b2580 Add NetBSD-specific Makefile. 1998-09-14 04:42:21 +00:00
ross
e4cac751bf Initial import of bzip2-0.9.0b from Julian Seward. 1998-09-14 04:27:53 +00:00
ross
f9cab68505 NetBSD rcs id keywords.
New Makefile, README.
1998-09-14 02:37:23 +00:00
ross
90b00880b2 Initial import of bzip2-0.9.0b from Julian Seward. 1998-09-14 02:13:36 +00:00
wrstuden
67db0c4b38 Teach crunchgen to play nice in a cross-compiling environment. Make
the machine type a run-time decision a la make. Also, use ${LD}
for the linker, not ld.

Note: you will have to delete the crunchgen cache file for these
changes to take effect.
1998-09-13 05:32:18 +00:00
mycroft
ae0f007e15 Update for signal handling changes. 1998-09-11 23:09:31 +00:00
tron
f1bd8f538d Print login time left justified as suggested by Wolfgang Helbig in
PR bin/6131.
1998-09-09 17:22:31 +00:00
mellon
dccbf9bc96 Support indenting standard input. When indenting standard input, write output to standard output. 1998-09-06 20:17:30 +00:00
lukem
457da2d26f remove -Dunix and #ifdef unix where it is only used to select
<strings.h>/b*() instead of <string.h>/mem*().
suggested by <Anders.Hjalmarsson@economics.gu.se>
1998-09-06 02:54:47 +00:00
pk
b8baa5e581 Assign my copyrights to TNF. 1998-09-05 17:31:44 +00:00
lukem
72549586a8 distclean is a synonym for cleandir 1998-09-05 14:57:41 +00:00
pk
0a97faa040 Assign my copyrights to TNF. 1998-09-05 13:08:38 +00:00
lukem
211657f5fe -Dunix needed for tools 1998-09-05 11:30:08 +00:00
lukem
00c10429b7 replace command(buf) with command("%s", buf) in quote1(), thus preventing
'quote' commands that contain % formats from being mis-intepreted.
noted by Lundman <lundman@argonaut.com> on current-users@netbsd.org
1998-09-01 14:25:52 +00:00
lukem
70b3ec2f32 fix handling of port on non-proxied auto-fetch ftp:// urls 1998-09-01 04:42:49 +00:00
enami
692962babe add -Dunix to CPPFLAGS to suppress cpp warning. 1998-09-01 03:16:48 +00:00