Commit Graph

451 Commits

Author SHA1 Message Date
brezak 8af3b17eb0 Use rnusers XDR's in librpcsvc. 1993-11-21 20:18:22 +00:00
mycroft c018c0e0fe Oops. Don't want the name spaced out. 1993-11-21 20:02:28 +00:00
mycroft 29ed1ec94a Make sure we don't run off the end of ut_name when printing the short way. 1993-11-21 19:54:19 +00:00
brezak a4fc624fbb Cleanup to use hand-crafted version2 xdr's 1993-11-21 19:01:01 +00:00
mycroft 5a05271ae9 From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Fix typo in comment line for RCS id.
1993-11-20 22:25:19 +00:00
mycroft 824c494570 From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Patch to prevent core dumping when linked dynamically.
1993-11-20 22:24:17 +00:00
jtc 4c35e0b3ba Oops! get rid of the free(), mklong()'s buffer no longer malloc()'d. 1993-11-19 21:08:17 +00:00
jtc fac5e167cc Return from main() if a \c escape is encountered in a %b string (was an exit()).
Use macro constants for "skip1" and "skip2" instead of assigning them
each loop iteration.
Reformat the multi-case entries in the "big switch" so the lines don't wrap.
1993-11-19 21:05:37 +00:00
jtc 563de0f1c5 Move all the code from do_printf() into do-while loop in main(). I need
to be able to return from main() when a "\c" in a %b string is encountered.
1993-11-19 20:50:27 +00:00
jtc d1a877c5ed Merged in most of the changes from 4.4 necessary to make printf a sh
and csh builtin --- still need to handle the one remaining exit() in
the SysV escape string handling code.
1993-11-19 20:30:57 +00:00
jtc 6b9684b200 As of POSIX.2, getopt returns -1 instead of EOF on error. Changed the code
to match just in case someone changes the value of EOF.
1993-11-19 20:07:13 +00:00
jtc 404b36ffd9 POSIX.2 utilities must call setlocale(LC_ALL, ""); 1993-11-19 20:06:41 +00:00
jtc 2f96f1561b As of POSIX.2, getopt returns -1 instead of EOF on error. Changed the code
to match just in case someone changes the value of EOF.
1993-11-19 19:58:46 +00:00
pk 7d1b345792 `undo' should mark the file as modified. 1993-11-19 12:53:32 +00:00
cgd 57d09332b9 use fread(), not read(), pending Vern Paxson's decision of what
to do in the next version of flex.  bug reported by klier@cs.tu-berlin.de.
1993-11-19 05:11:46 +00:00
mycroft 6d45a1eb4c Another patch from Thomas Eberhardt. Don't bother to poke at the data segment
if it looks like it's already been minimized.
1993-11-19 02:40:46 +00:00
mycroft 2dc7cf301c Patch originally from Thomas Eberhardt to strip trailing zeroes at the end of
the data segment.  Further modifications by me.
1993-11-19 02:24:40 +00:00
mycroft 20750ec6fd From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
2.  strip(1) shouldn't abort when processing a file and it detects
    an error (rationale: nm and size don't do this either).
3.  strip(1) doesn't free the memory it has allocated.
4.  added a very simple minded check so strip(1) doesn't dump core on
    bad files.
1993-11-18 21:09:10 +00:00
mycroft bae698d319 From: Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>
Remember to close the file if it's bad.
1993-11-18 21:00:39 +00:00
cgd 13a05bbbac fix that last 1993-11-17 12:05:46 +00:00
cgd 9dbc9844f9 long lost fix from Christos Zoulas (?) for inf. loop problem 1993-11-17 12:01:04 +00:00
cgd cf60e8dfa8 fix from Dave Matthews <dave@prlng.co.uk>, with modifications by cgd:
Bug Description:
	Two different bugs in join.  One causes a segmentation fault if
	increasing the space by 100 is not enough.  The other gives the
	wrong results because the program saves a pointer to the original
	buffer rather than to the area where the lines have been copied.
1993-11-15 09:30:52 +00:00
cgd da7153daca add ipcs and ipcrm 1993-11-14 16:30:45 +00:00
cgd 3683d805ff System V -style IPC removal utility. Implemented by Daniel Boulet
<danny@BouletFermat.ab.ca>.  Needs a man page and serious cleanup.
also: sysvshm support is #ifdef'd out, because it's not been tested.
1993-11-14 16:27:58 +00:00
cgd 0444b9fbd1 Add a System V -style ipc status monitor. Implemented by Daniel Boulet
<danny@BouletFermat.ab.ca>  Needs a man page, and *much* cleanup.
1993-11-14 16:17:55 +00:00
cgd 9838936e57 from Thomas Eberhardt <thomas@mathematik.uni-Bremen.de>:
fix RCS id's comment
1993-11-14 15:40:42 +00:00
cgd 6c547adbae add VERSION file 1993-11-14 13:07:28 +00:00
cgd 97fe973b31 slight cleanup 1993-11-14 13:07:22 +00:00
jtc 00d77f440a Make POSIX.2 compliant by adding -t (offset radix) flag. 1993-11-13 01:51:00 +00:00
hpeyerl 14197c1c8a make "strings -n 3" work. From tmalaher@nt.com 1993-11-12 18:06:06 +00:00
jtc 5ce3d664fb Use new POSIX.2 compatible regex routines in C library instead of -lgnuregex. 1993-11-11 01:29:52 +00:00
jtc 3ee54fb39e simplify error message handling by using err() function. 1993-11-10 20:06:00 +00:00
jtc 81fd674b7b Fix bug that occured when exec-ing program name containing "%" characters
failed --- the "%" chars would be interpreted as printf directives.
1993-11-10 20:01:20 +00:00
deraadt 2576177364 some nice new things 1993-11-10 15:00:41 +00:00
cgd ce2c5525cf do the right thing with EDITOR and PATH. reported (with fix) by
Roland McGrath <roland@frob.com>
1993-11-10 12:35:06 +00:00
deraadt 85889786ad de-ansify
format better, now readable in most cases on 80-char wide screens
and it looks pretty.
1993-11-10 04:19:03 +00:00
deraadt b52aae9d1e more sane output.
option -t: print remote-host's time
1993-11-10 03:52:18 +00:00
cgd 70e18e726e add rcsid's; tag CSRG-93-11-06 is the previous sources 1993-11-09 05:07:24 +00:00
mycroft a2a43d60e4 Clean up deleted files. 1993-11-09 02:59:50 +00:00
alm bc24dd374e Add 4.4BSD more(1) from UUNET. Patched to support regex(3)
and implement historical more commands.
1993-11-09 02:59:05 +00:00
jtc 0605e44a71 Well behaved POSIX.2 utilities always call setlocale() and getopt(). 1993-11-09 01:46:38 +00:00
alm 723804e46a Added regex(3) support.
The syntax:
:!!text
should now append `text' to the last :command.
1993-11-08 05:05:44 +00:00
jtc 62f30e8257 Changes required to make printf utility POSIX.2 compliant:
* Escape characters in the string needed to be processed as they were
   encountered, otherwise a "\000" octal constant would prematurely
   terminate the formatting string.
 * Implemented the %b, SysV echo(1) compatibility, formatting directive.
1993-11-05 20:12:38 +00:00
jtc 83efb17c8e Checkin minor tweaks before giving a copy to the FreeBSD folks. 1993-11-04 05:43:30 +00:00
andrew 1b0bd76d80 make with -DHISTORIC_PRACTICE to obtain the common EOF behavior of the "n"
command.  Don't be fussy about requiring spaces after the "w" command
though.
1993-11-04 01:36:21 +00:00
mycroft 89a4474a07 Build units(1). 1993-11-03 15:25:15 +00:00
cgd ee26bd5d86 fix inconsistent definition of exitcode. change things so that it
(correctly) exits with code 0 if the doc hasn't been modified.
"wah!  i want nvi..."
1993-11-03 08:27:14 +00:00
mycroft d61899ce79 mid+magic is 26 bits, not 24. 1993-11-03 08:03:16 +00:00
mycroft ec894d851c Correct page sizes for M68k and SPARC. 1993-11-03 07:45:55 +00:00
mycroft 34b10abe06 Add entries for object files. Someone should update GAS to generate new-style
magic numbers; otherwise file(1) will just say `big-endian' or `little-endian',
which is not terribly informative.
1993-11-03 07:33:28 +00:00