Commit Graph

3169 Commits

Author SHA1 Message Date
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
christos
bd5b624c4c char -> unsigned char 1998-11-06 22:57:55 +00:00
christos
9b6b9cac77 - factor out common code
- char -> unsigned char
1998-11-06 22:56:38 +00:00
christos
ac193186ef char -> unsigned char 1998-11-06 22:49:30 +00:00
christos
b239b35fe2 char -> unsigned char
rindex -> strrchr
1998-11-06 22:40:13 +00:00
christos
1a67b18deb char -> unsigned char 1998-11-06 22:29:44 +00:00
christos
2de3ba714e - Don't understand why use union wait pstat.w_status...
Change it to just int status...
- char -> unsigned char
1998-11-06 22:28:15 +00:00
christos
b62bb45812 - prototype tgetstr()
- add decls for *SE, *SO, *SV for svr4
- initscr() should not be compared with ERR, but NULL, since it returns
  a window pointer.
1998-11-06 22:14:58 +00:00
christos
dbc0627f1d use waitpid instead of wait3 1998-11-06 20:05:43 +00:00
christos
6eb7ceb840 char -> unsigned char 1998-11-06 20:03:08 +00:00
christos
501608c08c bcpy->memcpy, and don't trash memory if
hp->h_length is > sizeof(struct sockaddr_in);
1998-11-06 20:00:07 +00:00
christos
81c93f4c32 - synchronize with the domestic version
- setupterm -> setup_term
- char -> unsigned char
1998-11-06 19:54:18 +00:00
christos
7f1ed758a3 char -> unsigned char 1998-11-06 16:52:42 +00:00
christos
7872ac63c8 explicitly zero the lines structure! How did this ever work before? 1998-11-03 14:27:09 +00:00
christos
8d721633cd Pacify gcc-2.8.1 (extra braces). 1998-11-03 14:26:45 +00:00
cgd
ca87c75e7d completely reimplement ELF symbol hiding. now it's even more of a gross
hack, but more likely to work on non-alpha ELF systems.
1998-11-03 02:30:16 +00:00
eeh
c53c836082 Copyrights and minor cleanup. 1998-11-01 22:27:11 +00:00