Commit Graph

3701 Commits

Author SHA1 Message Date
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
pk
2cac5ef6e0 Handle `.type' directives (shortly to be generated by gcc) that will be
conveyed to the linker in the `n_other' (in case a.out format is produced)
fields of the objects symbol table.

Also handle `.size' directives of the form `.size symbol1-symbol2' in
addition to absolute expressions.
1993-11-20 22:20:51 +00:00
pk
7895f44731 Fixed bug in tc-i386.c which in rare but unpredictable circumstances would
screw up PC relative offsets to _GLOBAL_SYMBOL_TABLE_ (caused by me not quite
understanding the inner workings of this phenomenon called `obstack').
Thanks to Thomas Eberhardt for creating rare and unpredictable circumstances.

Changes to obj-aout.c to handle non-absolute `.size' expressions and to set
the `n_other' field of symbols to the symbols type, as given by `.type'
directives.
1993-11-20 22:15:54 +00:00
cgd
facd69a0ee do something better with lookup return values; suggested by BSDI's msdosfs mod 1993-11-20 09:40:32 +00:00
deraadt
95b75b0b4e update to new syscalls.master 1993-11-20 03:09:03 +00:00
deraadt
57a09f4e1c new compat functions: sun_open, sun_auditsys, sun_setpgid, sun_uname
some from Markus.
1993-11-20 03:08:16 +00:00
deraadt
370e6c6aed cannonicalize #include's 1993-11-20 03:05:41 +00:00
deraadt
e2a5941739 new compat functions: sun_open, sun_auditsys, sun_setpgid, sun_uname
some from Markus.
1993-11-20 03:01:58 +00:00
deraadt
ac4a976328 fake support for TIOCSSOFTCAR and TIOCGSOFTCAR
(one of which used to point to NetBSD's TIOCSTAT :-)
1993-11-20 02:57:43 +00:00
cgd
2b3cb4657d #ifdef out /kern/root at theo's request 1993-11-20 01:57:07 +00:00
cgd
b824c41ce5 (1) add send-pr.1 to CLEANFILES
(2) use ${COPY} where appropriate for install, so we don't blow away targets
	(or sources!)
(3) use ${.CURDIR} to find categories.
1993-11-20 01:25:42 +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
cd816f9f1e 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:02:53 +00:00
jtc
74c5ec5c3e POSIX.2 utilities must call setlocale(LC_ALL, ""); 1993-11-19 20:00:51 +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
jtc
cadb1e0946 Add send-pr to the things we install. 1993-11-19 19:31:00 +00:00
jtc
9b6021c69f Send-pr, so people can send us bug reports. 1993-11-19 19:22:26 +00:00
jtc
acc61782fb Fix spelling mistake. 1993-11-19 17:24:58 +00:00
pk
7d1b345792 `undo' should mark the file as modified. 1993-11-19 12:53:32 +00:00
cgd
553e6a15d4 finish cleanup 1993-11-19 05:25:40 +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
ce351a47d2 Clean up after Brezak. 1993-11-19 03:18:24 +00:00
brezak
fbcaa3fbdd Correct func protos. 1993-11-19 03:10:22 +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
cgd
5838270f1e patch from Ukai Fumitoshi <ukai@kmc.kyoto-u.ac.jp>
to do the right thing with NFS fsid's and getnewfsid()
1993-11-19 02:31:23 +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
0b76c61c48 kill bogus bugs, and add options 1993-11-18 03:16:32 +00:00
cgd
0fdd7ddc70 add option to show the swapmap's raw contents 1993-11-18 03:00:41 +00:00
jtc
f4f0a0574f Don't reference libiberty --- it's gone. 1993-11-17 21:22:34 +00:00
mycroft
667fb45afc Clean up deleted files. 1993-11-17 21:14:09 +00:00
jtc
baa5b7b22f Don't include libiberty's insque(), remque(), or strerror().
We have our own implementations in our C library.
Libg++-2.5.1 doesn't include them either.
1993-11-17 20:57:58 +00:00
jtc
fe9a0572d1 For the moment, we still have to install "values.h" from g++-include. 1993-11-17 20:43:37 +00:00
mycroft
98999bd79c Clean up deleted files. 1993-11-17 20:38:22 +00:00
jtc
1fffdc0cb5 Remove /usr/include/g++/* before installing headers --- it may contain
obsolete headers that have to be removed.
Don't install "compatibility" headers --- our headers are C++ safe and
GNU's headers don't match our library.
1993-11-17 19:54:46 +00:00
jtc
653d8ef24c If _CS_PATH is defined in <unistd.h>, the latest bash assumes that confstr()
will be present as well.  Here is a quick implementation based on my online
copy of 1003.2 (D11.2).  I'll confirm that nothing has been changed in the
final standard and write up a manual page soon.
1993-11-17 18:15:32 +00:00
cgd
7abca02b8a added two copyright strings at the request of Gary Clark II
<gclarkii@freefall.cdrom.com>, because he hacked and is in the process
of hacking the code significantly.
1993-11-17 12:22:50 +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
8eeaaddf1b fix uninitialized variable bug that caused 'quiz function ed-command'
to dump core.  from Szabolcs Szigeti <pink@bagira.fsz.bme.hu>
1993-11-17 11:58:40 +00:00
cgd
44c6a0bbc1 make things a bit more consistent 1993-11-17 11:00:52 +00:00
cgd
609bf6154c more flags 1993-11-17 09:20:43 +00:00
cgd
1919837079 quote sendmail_flags test, from Patrick Bridges <patrick@buffy.cs.msstate.edu> 1993-11-17 09:19:35 +00:00
cgd
527838aa9a yet another setvbuf fix from torek... 1993-11-17 08:18:39 +00:00