christos
b5e27b660d
creat->open O_CREAT
1998-12-19 22:59:21 +00:00
christos
e42e202cfb
char -> unsigned char
...
<fcntl.h> instead of <sys/file.h>
compensate for different types in th_stuff
1998-12-19 22:41:21 +00:00
christos
719b192026
sigvec->sigaction
1998-12-19 22:36:11 +00:00
christos
eb4463abfe
KNF
1998-12-19 22:27:54 +00:00
christos
24a4a811e5
char -> unsigned char
1998-12-19 22:26:13 +00:00
christos
664c0d224c
ifdef the pw_change and pw_expire stuff with BSD4_4
1998-12-19 22:24:18 +00:00
christos
f6d2541fc5
portability in printf args.
...
char -> unsigned char
1998-12-19 22:18:00 +00:00
christos
f6a7c3e2b3
portable printf args.
1998-12-19 22:14:30 +00:00
christos
ea2df27a8f
char -> unsigned char
...
compensate for not having REG_STARTEND
1998-12-19 22:12:32 +00:00
christos
431b0659ba
char -> unsigned char
1998-12-19 22:12:11 +00:00
christos
861d7d0674
don't use union wait; an int is good enough.
1998-12-19 21:53:56 +00:00
christos
377fe973b8
include <fcntl.h> for O_RDONLY, and remove decls of optind and optarg.
1998-12-19 21:52:00 +00:00
christos
d374d91f3d
small cast.
1998-12-19 21:50:45 +00:00
christos
cfb06221ce
brace police
1998-12-19 21:44:31 +00:00
christos
20a2ed5105
revert previous cast.
1998-12-19 21:31:37 +00:00
christos
681ecbf381
a few casts, and char -> unsigned char
1998-12-19 21:27:40 +00:00
christos
e4ac7024d0
extra braces, char -> unsigned char
1998-12-19 21:19:11 +00:00
christos
9126a73f7f
Overhaul...
...
- check numeric arguments properly.
- fix usage.
- add -n increment option.
1998-12-19 21:07:12 +00:00
christos
7b232cdf19
char -> unsigned char
1998-12-19 20:34:53 +00:00
christos
b751ad2c5c
de-ja-vous
...
This thing was still using <sys/dir.h> and struct direct.
Get rid of the time warp.
1998-12-19 20:32:17 +00:00
christos
76f0fa8f60
brace pollution, and char -> unsigned char
1998-12-19 20:21:44 +00:00
christos
2136635414
char -> unsigned char
1998-12-19 20:11:20 +00:00
christos
1b399e6819
char -> unsigned char and portable printf formats.
1998-12-19 20:10:08 +00:00
christos
fc8ac77abf
we don't have d_namlen in svr4, and char -> unsigned char
1998-12-19 20:08:03 +00:00
christos
d594b7c039
char -> unsigned char
1998-12-19 20:03:49 +00:00
christos
b812d45035
char -> unsigned char
1998-12-19 19:54:26 +00:00
christos
e8ab739a14
char -> unsigned char
1998-12-19 19:45:09 +00:00
christos
e2d09d7f42
portability in printf format, and support for svr4 timezone.
1998-12-19 19:30:57 +00:00
christos
76e23f8bdc
Braces to the altar of gcc-2.8.1
1998-12-19 17:46:08 +00:00
christos
8f5ca4eed0
char -> unsigned char
1998-12-19 17:44:22 +00:00
christos
6e0fa105be
Avoid bogus warnings produced by gcc-2.8.1 where it wants field widths to be
...
ints and copmplains if they are unsigned ints!
1998-12-19 17:38:39 +00:00
christos
24eea87b54
Allow system path to be overriden in the Makefile
1998-12-19 17:26:12 +00:00
christos
844b3dce90
char -> unsigned char
1998-12-19 17:06:20 +00:00
christos
0d9bacd536
gcc-2.8.1 wants more braces
1998-12-19 17:05:30 +00:00
christos
8caf9db03c
portability in printf args.
1998-12-19 17:04:11 +00:00
christos
be59268229
char -> unsigned char, braces for gcc-2.8.1
1998-12-19 17:00:08 +00:00
christos
6ccac2c3b8
use sysconf to get the max number of groups instead of NGROUPS.
1998-12-19 16:55:21 +00:00
christos
9794a7e065
char -> unsigned char
1998-12-19 16:37:28 +00:00
christos
ec1efbf3e5
Fix ifdef mess.
1998-12-19 16:35:10 +00:00
christos
2d72555862
char -> unsigned char
1998-12-19 16:34:38 +00:00
christos
288075599a
union wait -> int
1998-12-19 16:34:04 +00:00
christos
b1d8c6168d
index -> strchr
1998-12-19 16:33:24 +00:00
christos
681c2d939c
char -> unsigned char, index -> strchr
1998-12-19 16:33:08 +00:00
christos
dcc0ef7552
char -> unsigned char
1998-12-19 16:32:52 +00:00
christos
9189a0e37d
char -> unsigned char, index -> strchr, s.w_termsig -> WTERMSIG(s)
1998-12-19 16:32:34 +00:00
christos
bd077f6919
char -> unsigned char
1998-12-19 16:31:57 +00:00
christos
09edb00354
char -> unsigned char, s.w_coredump -> WCOREDUMP(s)
1998-12-19 16:31:41 +00:00
christos
25b1fd1911
char -> unsigned char, index -> strchr, rindex -> strrchr
1998-12-19 16:30:52 +00:00
christos
489005fa65
char -> unsigned char
1998-12-19 16:01:21 +00:00
christos
5d6b49ea05
gcc-2.8.1 printf format and brace warnings.
1998-12-19 16:01:01 +00:00
christos
4fe7015c6d
SVR4 timezone portability
1998-12-19 16:00:33 +00:00
christos
b4775af2e3
index -> strchr
1998-12-19 15:59:50 +00:00
drochner
09eb0ffc9c
avoid integer overflow in free memory report
1998-12-19 14:34:40 +00:00
thorpej
af7b5d4d71
Set close-on-exec on all opened files. Partially from OpenBSD.
1998-12-19 02:23:46 +00:00
thorpej
fef2d92ecd
Better error message if opening the temp file fails.
1998-12-19 02:13:43 +00:00
thorpej
d78de2f0ad
Build ldd.1, and make it work with the extra directory depth.
1998-12-17 22:34:55 +00:00
thorpej
f6895d1c2d
Get ldd.1 from the previous level.
1998-12-17 22:34:09 +00:00
thorpej
27518b942e
Move the manual page up one level via repository copy.
1998-12-17 22:33:46 +00:00
pk
137577af03
Remove ldd from special clean list
1998-12-17 15:33:57 +00:00
thorpej
e4cbfbfb44
getopt() returns -1, not EOF.
1998-12-16 23:14:02 +00:00
thorpej
2e04232a96
Prototypes.
1998-12-16 23:13:02 +00:00
pk
96868862ca
Move ldd special case one level down.
1998-12-15 22:08:53 +00:00
pk
21e1fe821f
Move a.out version of ldd(1) to the usr.bin tree; elf and a.out
...
reside in separate subdirectories (various source moved by
repository copying). Adapt Makefiles to new situation.
1998-12-15 22:07:11 +00:00
christos
8f9762f2e2
pass -CC instead of -C to cpp so that we preserve macro comments in place.
1998-12-09 12:28:36 +00:00
drochner
20b876f326
avoid malloc(0)
1998-12-08 14:08:50 +00:00
fair
a7b28c97e7
This trivial and computationally useless pointer initialization makes
...
gcc 2.7.2.2 happy on m68k again.
1998-12-07 04:10:13 +00:00
mycroft
33360720ab
Add missing braces, so PUTRATE() works correctly as an if clause.
1998-12-06 16:53:44 +00:00
pk
66bc493d73
Make a network number by shifting out host bits in octet units.
...
This is currently required still to get correct lookups in `/etc/networks'.
1998-12-05 13:14:04 +00:00
perry
ff669e2e1a
Small bug fix from Soren S. Jorvang (soren@t.dk)
1998-12-04 17:47:06 +00:00
augustss
ef51366cb7
Handle flags better.
1998-12-03 20:46:10 +00:00
augustss
8cababe387
Fix typo.
1998-12-02 16:37:48 +00:00
simonb
552d6a2ac5
Truncate the output file before writing to it, and silence the verbose
...
output.
1998-11-27 05:09:49 +00:00
augustss
9726cfd1fb
Make the copyright header conform to the NetBSD template.
1998-11-25 22:17:06 +00:00
christos
9ca5ef57d6
more is not less on the systems that don't have less. Make "more" the default
...
pager if $PAGER is not set in the name of portability.
1998-11-25 16:55:10 +00:00
hubertf
3ddc74e157
Add "mp3" audio file information to file(1)/magic
...
per PR 6497 by C Kane <ckane@best.com>
1998-11-25 07:54:21 +00:00
kim
2d1bb4511d
Allow port number for the server to be specified ("-h server:port").
...
This makes it possible to query rwhois servers at non-standard ports.
1998-11-24 01:33:47 +00:00
christos
d79deccee9
Unfortunately lint uses c-style comments as directives and these get parsed
...
at the lexical analysis stage not at the syntax parsing stage. The upshot
is that:
if (expr) {
stmt1;
}
/* LINTED */
stmt2;
stmt2 is the look-ahead token for the parser to choose between and if-then-else
statement as opposed to an if-then statement. Unfortunately the side effect
is that the LINTED directive gets reset before stmt2 gets parsed. We fix this,
by remembering the the linted directive during the if statement parsing and
restoring it at the appropriate time.
1998-11-23 14:37:08 +00:00
msaitoh
8240966355
fix invalid shift. colsed PR#5160.
1998-11-23 10:17:12 +00:00
explorer
faade9c8e2
Send an Accept: */* header, since some sites require content negotiation.
...
Grr.
1998-11-22 06:52:32 +00:00
jwise
ed12d196f3
msgs uses /var/msgs, not /usr/msgs. Closes PR bin/6464
1998-11-20 03:18:25 +00:00
itohy
6d075e2860
Temporary fix of UTC -> time_t conversion:
...
1. changed to use timegm(3) on NetBSD and
2. supply alternative code for other Unix-like OSs
(NetBSD ftp shall be portable for some reasons :-).
This fix closes PR #6448 .
NOTE: This should be fixed again if a portable UTC to time_t
conversion method is specified in some standards.
1998-11-18 07:24:25 +00:00
ross
3eb0afd457
Fix a bug that apparently prevented, since day 1, the .-include / .sinclude
...
feature from ever working. Also, fix the man page that incorrectly described
the syntax of the feature that didn't work.
1998-11-17 23:56:23 +00:00
christos
e79f03e595
Fix problems with LINTED comment:
...
if (a) b;
/*LINTED*/
c;
if (a) { b; }
/*LINTED*/
c;
do { b; }
/*LINTED*/
while (c);
Produced warnings for c.
1998-11-13 16:48:01 +00:00
lukem
fa954d84d1
* fix previous in a more portable manner (timegm() is not portable/standard).
...
use mktime(), and adjust to GMT as per code in util.c::remotemodtime()
1998-11-12 22:27:17 +00:00
itohy
638ec4fd83
HTTP uses UTC time, and changed to use timegm(3) instead of mktime(3)
...
for conversion of HTTP time.
XXX Unfortunately, timegm(3) is not portable (ex. SunOS 4 have, but 5 not).
1998-11-12 18:19:02 +00:00
eeh
cee5e32c50
Warn about parser stack discrepancies at the end of colon definitions.
1998-11-12 00:55:58 +00:00
christos
4f3cc30bcc
This patch fixes the problem introduced in the previous commit where
...
parents would be get remade, even if children were not really updated
by the commands executed for them. It also makes all the children have
the real modification time set if possible, so it should fix some other
timing weirdnesses...
- collapse childMade and make fields into flags and convert them to bits
CHILDMADE and REMAKE
- introduce FORCE flag that gets set in all the parents of a child that
has no sources and does not exist.
- set oodate if the FORCE flag is set, and not if CHILDMADE
- centralize the RECHECK into Make_Recheck() and use this in make.c and compat.c
- use Make_TimeStamp for all child -> parent timestamp propagations
1998-11-11 19:37:06 +00:00
christos
7e91b1976d
PR/6426: Jim Bernard: make sometimes does not make directories on top of
...
a union mount.
eg.
src: FORCE
FORCE is a fake target that does not have sources. When FORCE is
considered made it gets updated with the current timestamp. If the
directory happens to have the same timestamp too, then it will not
be made because it is considered to be up-to-date with respect to
the child. This can happen because the time resolution is only in
seconds. It is more likely to happen on a union filesystem where
the timestamps take longer to update.
The fix is to consider the parent unmade when children have been
updated.
1998-11-11 11:25:43 +00:00
mrg
c7a1452687
add fgen
1998-11-11 05:53:15 +00:00
mrg
843b0a05b3
make this compile under NetBSD.
1998-11-11 05:26:57 +00:00
simonb
d5383a01a8
Remove elfstrip - not used now that we have an ELF-aware strip and it
...
isn't in the distrib-lists anyway.
1998-11-10 12:19:39 +00:00
kleink
8ff7d07b09
Add a -p option to uname(1), which returns the machine's processor
...
architecture; inspired by SunOS 5. Note that its output is excluded from the
output of -a.
1998-11-09 13:24:05 +00:00
mycroft
e9109c511c
Convert the evil sed crap to 3 separate invocations of sed.
...
This is way faster over NFS.
1998-11-09 04:52:44 +00:00
jonathan
e67b964e28
binutils gprof doesn't support mips. Build a.out gprof on mips, to support
...
kernel profiling.
1998-11-07 17:52:19 +00:00
christos
889ce7db6e
- full prototypes
...
- more conservative printf
- char -> unsigned char
1998-11-06 23:31:09 +00:00
christos
a3cf33f0fd
make printf format more conservative
1998-11-06 23:21:38 +00:00
christos
3f852e73e1
we don't need sys/ucred.h
1998-11-06 23:21:01 +00:00
christos
c3203395bd
char -> unsigned char
1998-11-06 23:06:38 +00:00
christos
051c69de86
disambiguate if/else block
1998-11-06 23:06:30 +00:00
christos
e1178b155e
- include <termios.h> for winsize
...
- char -> unsigned char
1998-11-06 22:59:12 +00:00