Commit Graph

2158 Commits

Author SHA1 Message Date
cgd
b41192602c fix a couple of bogons in the changes to the sed regexps in my previous
commit.  ("Works Great!!" "More Testing!!!")
1997-07-21 05:37:32 +00:00
cgd
dab9e38937 find the compiler more correctly: if user has set 'CC' use it but expand
it to a full path using the user's path, before setting the path used by
the script.  If it can't be found, try using the standard path used by the
script to find it (/bin:/usr/bin:/usr/ucb), and if it still can't be
found, exit.  If user hasn't set CC, try to use cc, again searched for
via their path, then via the standard path.
Also, clean up regexps used to post-process ${CC} -M output, so that
they work on a wider variety of compilers.
1997-07-20 23:27:09 +00:00
cgd
e765fcae61 find nm more correctly: if user has set 'NM', use it but expand it to a
full path using the user's path, before setting the path used by the
script.  If it can't be found, try using the standard path used by the
script to find it (/bin:/usr/bin), and if it still can't be found, exit.
If user hasn't set NM, try to use nm, again searched for via their path,
then via the standard path.
1997-07-20 23:25:12 +00:00
christos
a8110bb91b Add prototype for orcmd. 1997-07-20 20:44:23 +00:00
lukem
076ac8bdc3 Send \r with \n in http requests. Allow "content-length" to be missing.
From [bin/3891] by Krister Walfridsson <cato@ulysses.df.lth.se>
1997-07-20 12:49:26 +00:00
lukem
b9d5554d5d * use RCSID() && COPYRIGHT() macros
* cleanup for WARNS=1 (including some ugly '(void)&var' bits wrapped in
  #ifdef __GNUC__ to shut up gcc warnings WRT setjmp/longjmp)
* use strtol() instead of atoi(), and more extensively check result of
  conversion
* use u_int16_t instead of short or int for TCP port addresses
1997-07-20 09:45:35 +00:00
jonathan
623d454fe0 * Rewrite symbol-remapping code, compatible with mips ECOFF toolchain.
* delint for -Wall -Wstrict-prototypes -Wmissing-prototypes.
1997-07-20 03:50:54 +00:00
perry
9aea42ec4e Change the "overlarge UID/GID truncation" from USHRT_MAX, which might
someday exceed 16 bits, to an arbitrary constant that won't.
1997-07-19 22:19:35 +00:00
perry
bccc3d5d81 add -o option -- submitted in pr-1857 by Niklas Hallqvist 1997-07-19 19:47:38 +00:00
perry
4c79cc7435 fix 3884 from SAITOH Masanobu 1997-07-18 23:31:00 +00:00
thorpej
469760f207 - Don't deref bad pointer if domain name isn't set.
- Fix compiler warnings.
- KNF.
1997-07-18 07:40:42 +00:00
thorpej
00c02e3e6b - Fix compiler warnings.
- KNF.
1997-07-18 07:05:35 +00:00
thorpej
981a9bdece - Clean up compiler warnings.
- KNF.
1997-07-18 06:16:29 +00:00
phil
84d2fe3f1c Correct 12am and 12pm to be midnight and noon resprectively.
Patch from PR 1743.
1997-07-18 01:09:48 +00:00
phil
e285bfacc1 Add a new example to SYNOPSIS, change the example. This is in response
to the fact that the /bin/sh set command always sets the exit status to
0, so testing $? will not help discover if getopt found an error if
getopt is used via "set -- `getopt ....`".  (POSIX 1003.2 D11 draft says
that the sh set command must return 0 as the exit status.)

I think that POSIX is wrong or that is is not well enough specified to
allow the result of the set to be the exit status of the getopt.  But
considering the sequential nature of execution, the set is done last
and is the "last command" and therefore must be the one to set the exit
status.  At least there is a work-around for shell scripts.
1997-07-18 00:18:26 +00:00
phil
3417167725 Add a SYNOPSIS section and document the arguments of -n and -p.
Closes PR 1616.
1997-07-17 17:08:34 +00:00
perry
c0274208c2 add -T option to display seconds, from jhawk in pr-1548 1997-07-17 02:36:55 +00:00
augustss
78612a1a5b Sync with audioio.h changes. 1997-07-16 06:55:27 +00:00
mikel
85a9bc4ee4 xref moncontrol(3) instead of obsolete monitor(3), sort xrefs 1997-07-16 06:51:44 +00:00
mikel
576ed679d4 xref mount(8) not nonexistent mount(1) 1997-07-16 05:43:33 +00:00
mikel
830d7a544f xref mknod(8) not nonexistent mknod(1), sort xrefs 1997-07-16 04:42:32 +00:00
mark
68401510be Fixed recognition of NetBSD/arm32 shared libraries and dynamically
linked executables.
1997-07-16 02:50:45 +00:00
mark
cdc0d0bd29 Build fdformat on arm32 systems. 1997-07-16 02:43:35 +00:00
veego
6937751466 Sync with the recent changes of the audio variables.
s/AUDIO_ENCODING_LINEAR_LE/AUDIO_ENCODING_SLINEAR_LE/
s/AUDIO_ENCODING_LINEAR_BE/AUDIO_ENCODING_SLINEAR_BE/
1997-07-15 18:00:12 +00:00
mikel
dba64a9869 xref getpagesize(3) not obsolete getpagesize(2) 1997-07-15 06:36:29 +00:00
mikel
688f066818 fix bug that kept 'leave NNNN' from working unless NNNN was greater
than the current 24-hour time.  leave(1) now always uses 12-hour
time and assumes a target time within the next 12 hours, as
specified by the manpage.
1997-07-15 02:31:13 +00:00
mikel
d67f3345cb set WARNS=1 1997-07-15 02:15:59 +00:00
mikel
87d6b38c6d use <sys/cdefs.h> copyright & RCSid macros
include <unistd.h> for prototypes, reorder #includes, nuke old library
  function declarations
add explicit return types and prototypes for local functions
use STDOUT_FILENO instead of manifest constant
initialize variable for gcc -Wuninitialized (marked as such)
1997-07-15 02:14:35 +00:00
mikel
e6f7684f2a xref getlogin(2) not getlogin(3) 1997-07-14 02:07:10 +00:00
christos
87d111ebee #if __STDC__ -> #ifdef __STDC__ 1997-07-11 20:17:37 +00:00
christos
4507c82bcc sprintf -> vsprintf 1997-07-11 20:16:01 +00:00
mikel
769693f903 add explicit return types to many functions
pull global variable declarations and function prototypes into hexdump.h
add #includes where necessary for prototypes
replace index() with strchr(), const-poison static string vars, etc.
1997-07-11 06:28:26 +00:00
mikel
2064aaafaa add comparisons to NULL implicit in my last changes
compare result of getopt() to -1, not EOF
1997-07-11 03:47:53 +00:00
mikel
3f0dbdf761 xref exit(3) not exit(2) 1997-07-10 07:57:07 +00:00
mikel
fdecd6a253 don't xref obsolete crypt(1) 1997-07-10 07:23:03 +00:00
mikel
e4c3c6ef21 there is no checkeq(1) 1997-07-10 07:14:35 +00:00
mikel
3a5de8f076 kill xref to nonexistent adb(1) 1997-07-10 04:31:37 +00:00
christos
487628a792 Fix memory corruption that was caused by debugging code leftovers. 1997-07-10 00:54:44 +00:00
mikel
1ac5792267 update printf formats to match type of line counts 1997-07-09 05:29:48 +00:00
mikel
70875d29b0 protect more variables against gcc longjmp() clobbering 1997-07-09 05:25:45 +00:00
mikel
f50e8d7409 make matchto() return type explicit 1997-07-09 05:23:36 +00:00
mikel
adaf168e3f add prototype for incfile() 1997-07-09 05:22:00 +00:00
jtc
4ca4391165 /usr/spool/mail -> /var/mail 1997-07-09 02:53:39 +00:00
phil
a8316bbccd Fixed bug where long lines (>1023 characters in current implementation)
were viewed as multiple lines by both standard input and ~<file.
Closes PR 3463.
1997-07-07 22:57:52 +00:00
phil
133748a721 Don't print "up" if uptime is less than 30 seconds. (uptime rounds
to the nearest minute.)  Closes PR 2082.
1997-07-07 20:30:08 +00:00
christos
e2d4e7ccc8 PR/3825: David A. Holland: global regexp handling gets stuck in infinite loop.
Actually there were two bugs:
	- Add REG_NOTBOL after the first substitution.
	- Handle the rm_so == rm_eo == 0 case, where in a substitution such
	  as 's/bzzzt/z*/g' the first time z* matches nothing.
1997-07-07 19:06:17 +00:00
jonathan
34b0d2463d Re-commit (from non-stale NFS filehandle) with debugging really turned off. 1997-07-07 00:02:16 +00:00
jonathan
25afea2de8 * Delint for gcc -Wall -Wmissing-prototypes -Wstrict-prototypes.
* Add an extra 4096 bytes of padding to the end of ECOFF files for
  the benefit of dumb TFTP clietns that read entire pages.
1997-07-06 23:57:39 +00:00
christos
03507045bc Fix compiler warnings. 1997-07-06 19:31:28 +00:00
pk
90e6fb0581 NULL => 0 (from Arne Juul; addendum to PR#3237). 1997-07-04 21:54:06 +00:00