Commit Graph

1468 Commits

Author SHA1 Message Date
ache
79dc7a08be Replace collate_range_cmp call by its code (GNU version) 1996-10-31 07:36:09 +00:00
ache
e50ae9ebc3 Replace collate_range_cmp with its code (GNU variant) 1996-10-31 05:14:27 +00:00
gj
34eeb70f5e changes to gdb to:
1) add Garrett Wollman's trap frame resolving mods
2) make the `proc' command (kernel debugging) really work
3) allow use of a pid with the `proc' command (previously you had to
provide the address of the proc structure)

Unfortunately, the `proc' command won't work while doing remote debugging.
1996-10-29 21:52:21 +00:00
peter
1e6efc4b7d oops, uninitialised variable.. -v mode depended on stack contents.
Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920
1996-10-29 18:45:20 +00:00
joerg
62c6d18387 Added ${DESTDIR} to the install target so bison.{simple,hairy}
will also appear in our releases. ;)

Forgotten by: peter
1996-10-27 21:50:59 +00:00
markm
ba9bfa30da Fix the dependancies.
Thanks Andrey!
Submitted by:	ache
1996-10-24 18:03:53 +00:00
markm
d76813a77f Fix this so that dependancies work properly.
Thanks Andrey!
Submitted by:	ache
1996-10-24 18:00:43 +00:00
jdp
934800cabd If errors occur during the loading of the shared libraries required by
the main program, report them directly from the dynamic linker and die
there, rather than returning an error message to crt0.o.  This enables
the printing of error messages even for old executables, whose version
of crt0.o is not able to print them.

This fix closes PR bin/1869.

The code in crt0.o for printing error messages from the dynamic linker
is no longer used, because of this change.  But it must remain, for
backward compatibility with older dynamic linkers.
1996-10-24 16:24:19 +00:00
ache
bd309f22c0 Remove local fnmatch() copy, we now compatible with GNU fnmatch 1996-10-23 16:53:26 +00:00
phk
079a5c8317 Removing old isdn stuff. 1996-10-20 18:24:17 +00:00
joerg
f1bd47034d Make it clear that a vendor-branch import adds something to the
existing sources.

Requested by: markm
1996-10-20 13:14:40 +00:00
markm
f74243d61a BMakefile for gmp-2.0.2
Requested by: ache
Made world by: chuckr
1996-10-20 09:29:39 +00:00
markm
0672b841f2 BMakefiles for gmp-2.0.2
Requested by: ache
Made world by: chuckr
1996-10-20 09:28:03 +00:00
markm
a4b32ad442 Remove the old libgmp. Version 2.0.2 is about to hit prime time. 1996-10-20 09:23:44 +00:00
markm
3cf9e3f873 Remove the old libgmp. Version 2.0.2 is about to hit prime time. 1996-10-20 09:11:57 +00:00
markm
e55542e08f This commit was generated by cvs2svn to compensate for changes in r19045,
which included commits to RCS files with non-trunk default branches.
1996-10-20 08:09:18 +00:00
markm
d2329033b3 Import of GNU MP 2.0.2
This is a clean import with only the non-x86 bits removed. Makefiles and
other will follow.

Requested by:	Andrey Chernov
Made world by:	Chuck Robey
1996-10-20 08:09:18 +00:00
joerg
d91ad4ed44 Various fixes and FreeBSD modifications:
. remove the blubber about `submitter-id's from the man page, we don't
  use them,
. use REPLY_TO or REPLYTO in preference over LOGNAME as the value for
  the Reply-To address (closes PRs 1471 and its duplicates 1472 and 1823),
. don't abuse ~/.signature as ORGANIZATION, this is almost always
  useless blunder,
. actually list the Categories again, instead of xrefing to ``see
  above'' (closes PR 1835),
. check the Synopsis field for being not empty,
. make the mail Subject the same as Synopsis if left blank (closes
  PR 1209).

The remaining open send-pr related PRs (184 and its duplicate 1047,
and 1415) are pilot errors or local hardware problems.
1996-10-19 21:42:40 +00:00
jdp
69b755dfeb Fix two minor typos in the manual page. 1996-10-18 04:49:43 +00:00
peter
0213566efb Build/install c++filt from g++, we already have all the sources and
it's and useful. (Ever tried to read 'nm' and 'ldd -v' output on a c++
object or library? :-) This filter decodes the mangled symbol names.)

Requested by: Chuck Robey <chuckr@glue.umd.edu>
1996-10-13 17:37:03 +00:00
joerg
24fa2a6edb Catch a situation where the tty speed might be 0 (in the case of UUCP
over TCP), but is used as a divisor later, causing uucico to abort
with a SIGFPE.

Reviewed by:	Ian Lance Taylor <ian@cygnus.com>
1996-10-12 10:41:56 +00:00
jdp
0297a4335c Add the search directories from the hints file only the first time it is
opened.  After that, the directories are already present, and there is
no point in adding them again.  This doesn't fix any bugs; it's just for
efficiency.
1996-10-10 23:16:50 +00:00
jdp
7a822140ad Add a new option "-f hints_file" to specify an alternate file instead of
"/var/run/ld.so.hints".

Delete an incorrect statement about LD_LIBRARY_PATH from the manual
page.
1996-10-10 23:14:23 +00:00
jdp
e39f63c823 Fix a bug that caused a segmentation violation if dlsym() was called
with its first argument equal to NULL.
1996-10-10 04:10:32 +00:00
peter
9facf666f8 Use ${INSTALL} -C instead of -c. I did it with -C originally, but during
testing I changed it to -c to check for missed files by looking at time
stamps in /usr/include/g++.

Submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
1996-10-07 23:38:08 +00:00
wosch
0afb8360fb delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
peter
ed8fa795f5 Oops, an editing error at one point meant I had missed the osfcn.h header
(it was directly underneath where bool.h used to be in the list, I think
 I must have not been paying attention and deleted a word from the wrong
 line.  The machine that I was testing on still had an (old?) osfcn.h file)

Pointed out by: Andreas Klemm <andreas@klemm.gtn.com>
1996-10-04 15:11:42 +00:00
jkh
3caf9a55b4 "CONTINUE" was just too long. Make it a nice "OK" now. 1996-10-04 13:06:48 +00:00
peter
c73823f5a2 To the Attic we go.. 1996-10-04 09:02:59 +00:00
peter
aea3c42385 Add genclass to the subdir list 1996-10-04 08:45:34 +00:00
peter
b181430d4f Add libstdc++ to the SUBDIR list 1996-10-04 08:44:26 +00:00
peter
4f829485a6 Update to use the contrib/libg++ version, now that my (slow) 486 has
finished a 'make world'.
1996-10-04 08:43:37 +00:00
peter
6b8505f1cd Initial attempt at a bmakefile for genclass. 1996-10-03 23:00:09 +00:00
peter
1b089d9364 Initial shot at a bmakefile for libstdc++ 1996-10-03 22:52:23 +00:00
peter
f46879ae49 Ugly hack alert!
libg++'s exception code causes gcc to generate (ahem!) non-conventional
assembler code in -fpic mode that gas and ld choke on.  Basically, gas
and ld require than symbols referenced in the GOT (global offset table)
are actually global (as the name implies).  It attempted to work around
it before, but didn't quite go far enough to prevent a core dump in ld.
This hack causes GOT referenced symbols to be forced global.  This
probably breaks the __EXCEPTION_TABLE__ stuff in pic mode, but heck, it
wasn't even possible to compile with a shared library before at all.

I'm not 100% sure what the bug is.  There's two possibilities:
1: gcc/cp/exception.c has to be fixed to stop doing GOT references to
   local symbols, or
2: as/ld/symorder/ld.so etc need to be taught about how to keep local
   symbols around so that they can be dealt with in GOT references.

John Polstra's elfkit stuff seems to deal with this fine though, which is
why I think it's a "missing feature" in our hacked gas and ld..
1996-10-03 08:07:38 +00:00
nate
3a96b7bb1d There's no need to 'unsetenv()' unsafe environment variables explicitly
since rt_readenv() already takes care of not setting unsafe variables.
This was part of the changes I submitted to Peter and John during the
review which must have gotten missed.
1996-10-01 16:09:18 +00:00
peter
63d1253807 Sigh, oh well, here's my obligigatory "oops" commit. I don't quite know
how I managed to get this out of sync, but I did.  I guess that's what I
get for directly committing from different machines that I was testing on.

Pointed out by: Paul Traina <pst@freebsd.org>
1996-10-01 11:54:38 +00:00
peter
842f005b88 Resync the libgcc functions list with the 2.7.2.1 tree. We were building
a (now) defunct routine that no longer exists (causing an empty .o file),
and were missing some others.  Some of the ones we were missing are no-ops
on the i386, so there are now 4 empty .o files.

(It seems that libc/quad has got some defunct functions now)
1996-10-01 03:47:36 +00:00
peter
eb145325d9 Don't build config/i386/i386.o in the src/contrib/gcc tree..... :-] 1996-10-01 03:44:29 +00:00
peter
dba54b89e1 Incorporate John Polstra's sods.c display of the details about the
dynamic linking information in the executable.  It's quite extensive.
It's connected to ldd's (new) -v option.
1996-10-01 02:16:16 +00:00
peter
9fb9409527 Update to handle new version ld.so.hints and info in executable for
configurable fallback search paths, as well as new crt interface version.

Also:
 - even faster getenv(), get all environment variable settings in a single
   pass.
 - ldd printf-like format specifications
 - minor code cleanups, one vsprintf -> vsnprintf (harmless)

The library search sequence is a little more complete now. Before,
it'd search $LD_LIBRARY_PATH (by opendir/readdir/closedir), then read
the hints file, then read /usr/lib (again by scanning thr directory).  It
would then fail if there was no "found" library.

Now, it does LD_LIBRARY_PATH and the hints file the same, but then uses
a longer fallback path.  The -R path is fetched from the executable if
specified at build time, the ldconfig path is appended, and /usr/lib is
appended to that. Duplicates are suppressed.  This means that simply
placing a new library in /usr/local/lib will work (the same as it did in
/usr/lib) without needing ldconfig -m.  It will find it quicker if the
ldconfig is run though.

Similar changes have been made to the NetBSD ld.so, but ours is rather
different now due to John Polstra's speedups and fixes from a while back.

The ldd printf-like format support came direct from NetBSD.

Reviewed by: nate, jdp
1996-10-01 01:52:03 +00:00
peter
bca7656c79 Support for specifying printf-like output specs to control the ldd output
as present in the new rtld version.

Obtained from: NetBSD
Reviewed by: nate, jdp
1996-10-01 01:34:32 +00:00
peter
8d7b11fc9f Updates to deal with ld.so.hints version 2. It now deals with the
ldconfig path (from NetBSD).  I added code to make sure there were no
duplicates in the path when multiple ldconfig -m's were used.

Reviewed by: nate, jdp
Obtained from: NetBSD (partly)
1996-10-01 01:31:51 +00:00
peter
a78af2f76c Update the backends to go with the top-level ld changes. The non-i386
changes are for completeness, I don't think they work.  There are changes
to deal with the new include files.

Obtained from: NetBSD (mostly)
1996-10-01 01:28:10 +00:00
peter
98e5b30905 Support for .weak (in addition to the N_INDR stab) for gcc/g++. Also deal
with the -R option and store the path in the dynamic header when specified.
The $LD_RUN_PATH environment variable is not checked yet.

While here, split up the code a bit more to enable more selective replacing
of GPL'ed components that are linked with ld.so with others.

Obtained from: NetBSD (mostly, the breakup is my fault)
1996-10-01 01:22:51 +00:00
peter
acec293561 Mostly resync our gas with the NetBSD version to obtain support for
.weak as gcc and g++ would like to use.

This includes changes to other architectures mostly for completeness,
I don't expect cross-assemblink would work but I could be wrong.

Obtained from: NetBSD
1996-10-01 00:13:54 +00:00
wosch
4bacaf65d2 xVERSIONx -> 3.2; close PR 1404 1996-09-28 18:31:30 +00:00
wosch
aa57eb50fa grep -q pattern file
search 'pattern' in whole file 'file', from top to bottom.  This is
not necessary; if grep found 'pattern' it can stop further searching
in file 'file'.

Example:

$ time ./grep-old -q Adam /usr/share/dict/*
        1.93 real         1.05 user         0.85 sys
$ time ./grep-new -q Adam /usr/share/dict/*
        0.14 real         0.06 user         0.06 sys
1996-09-27 19:44:46 +00:00
wosch
9c1e9f8c20 test 37: [b-a] is a syntax error and exit with status 2 1996-09-27 19:40:39 +00:00
wosch
b03342aca8 grep(1) should not parse manpages as arguments.
Now `apropos -xfer' works.
1996-09-27 17:36:50 +00:00
wosch
1c66eea617 Reverts exit status for man -k' and man -f'.
Man(1) now return 0 if apropos/whatis return 0, otherwise 1.
1996-09-27 17:34:57 +00:00
bde
cbced3178f Really eliminated includes of the "temporary" backwards compatibility
header <sys/dir.h> in applications.  My previous sweep didn't find the
places that included it without needing it.
1996-09-24 08:43:04 +00:00
bde
0350140145 Eliminated includes of the "temporary" backwards compatibility header
<sys/dir.h> in applications.  Maintained existing (inadequate) ifdefs
for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any
new ones.
1996-09-24 08:08:11 +00:00
wosch
e7eeae0eba add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
bde
ab629faae1 cpp was named ccp. 1996-09-23 16:12:38 +00:00
peter
80a6f99474 Crude hack to work around cpp.1 doing a .so man1/cccp.1
Pointed out by: Warner Losh <imp@village.org>, PR#1667
1996-09-23 04:14:30 +00:00
pst
af1e11b1cb Fix up some compilation warnings. 1996-09-22 00:55:46 +00:00
jkh
3e6a3b7f17 Nuke a trailing .endif which survived Peter's last edits. 1996-09-21 17:49:45 +00:00
peter
064b7d990f Remove the partial support for a shared -lcc_int, since it's been unusable
for a fair while.  cc1, cc1plus etc have been linked static for some time.
1996-09-21 14:27:38 +00:00
bde
41c3a3b47d Fixed bogus obj target (found by objwarn check).
Removed unnecessary clean and cleandir targets.  The defaults are
adequate and we never bothered overriding the default for all,
depend, lint or tags.,
1996-09-20 18:04:26 +00:00
ache
472071c4b5 Replace GNU-made __P definition by standard from sys/cdefs.h 1996-09-20 14:33:48 +00:00
peter
6f85d62c6d Add libobjc, the Objective-C runtime library. 1996-09-19 16:19:49 +00:00
peter
caedd48344 Man the lifeboats! Tie down the hatches! Red alert! Activate gcc-2.7.2.1!
(the old cc has been tagged with "gcc_2_6_3_final" so we have a reference
 point in case of unforseen disasters...)

This has the objc backend active, and I think I've managed to get the
f77 f2c support through in one piece, but I don't know fortran to test it.

A 'make world' change and libobjc commit will follow.

If you normally do 'make -DNOCLEAN world', do not do so this time, I know
it can fail with groff.

This version of gcc makes a **LOT** more warnings on our kernel.
1996-09-19 15:53:53 +00:00
pst
065abf87bc Grab h2ph from /usr/bin, not /usr/local/bin! 1996-09-17 01:14:18 +00:00
wosch
5959c2963d Set enviroment variable PAGER=pager if using option `man -P pager'
This inherit variable PAGER for childs like whatis(1), e.g.
`man -P less -k man' should now work like expected.  Close PR#1068
1996-09-16 22:52:02 +00:00
wosch
3b03c842bc Cleanup exit status; 2: syntax error, 0: keyword matched,
$exit_nomatch: no keyword matched. Default value for variable
exit_nomatch is 0 because `man -k' don't like exit status != 0

Detected by: "Stephen J. Roznowski" <sjr@zombie.ncsc.mil>
1996-09-14 23:20:33 +00:00
bde
c9ecf9afc4 Use `install -C' instead of lots of shell commands to install ld.so
as atomically as possible.

(Immutable targets can't be renamed without opening a window when
neither the source nor the target is immutable.  Perhaps there
should be a rename_immutable syscall to do this if unsetting the
immutable flags would work.)
1996-09-12 03:42:54 +00:00
jfieber
2538cc7925 Add missing tmac.lj4 (for PCL driver) 1996-09-11 22:16:59 +00:00
peter
4196ceb2cf add bison, gperf 1996-09-10 14:04:37 +00:00
peter
a014cc9f7b add bmakefiles 1996-09-10 14:03:12 +00:00
peter
18647c9e4a Add bmakefiles to compile bison. 1996-09-10 13:23:46 +00:00
phk
670bc69e13 DISTDIR is a reserved variable for make release
s/DISTDIR/DIST_DIR/g
1996-09-09 18:05:29 +00:00
pst
6bc2c173ca long live groff 1996-09-08 01:30:16 +00:00
pst
8cb7148bf5 ...long live groff 1996-09-08 01:27:58 +00:00
pst
94431507b7 Initial revision 1996-09-08 01:21:19 +00:00
pst
eac274c16a Groff is dead... 1996-09-08 01:09:04 +00:00
pst
379d8e3ccc Add Russian language / koi8-r font support.
Original author: ache
1996-09-08 00:28:32 +00:00
pst
3ac0008a77 Add psroff command 1996-09-08 00:26:24 +00:00
jkh
7c0d64a2b2 Make button highlighting more visible on B/W displays. 1996-09-06 09:36:45 +00:00
bde
218243765f Fixed DPADD. 1996-09-05 17:16:10 +00:00
peter
95aee3d463 forgot to reconnect easy-import to the Makefile 1996-09-05 08:43:50 +00:00
jkh
ee90ee6e2b Collapse some common arrow key handling semantics from sysinstall into
PollObj(), simplifying code which uses it.
1996-09-01 08:16:00 +00:00
peter
6e0e76e4a6 missed these parts of Bruce's changes last time..
Submitted by: bde (again :-)
1996-08-30 21:57:39 +00:00
peter
676094ef05 consistancy fixup
Submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
1996-08-30 21:21:52 +00:00
peter
e1cb11a5be Too verbose, typo (I missed the -C :-)
Submitted by: bde
1996-08-30 19:26:49 +00:00
ache
e9980bd59a Add HAVE_STRING_H
Use -DHAVE_XXX=1 form to be visually consistent with config.h defines
1996-08-30 18:33:31 +00:00
peter
638d368887 cmp -s || install -c -> install -C 1996-08-30 03:12:16 +00:00
peter
4abe269b95 cmp -s || install -c ==> install -C
Add -DHAVE_UNISTD_H -DHAVE_STDLIB_H to get these files
1996-08-30 02:13:06 +00:00
peter
5538b55ce4 oops!! back out last accidental commit! (gcc-2.7.2.1 tweak that I gave up
on..)
1996-08-30 02:12:08 +00:00
peter
8a1778a6d9 cmp -s || install -c ==> install -C 1996-08-30 02:12:07 +00:00
wosch
d4a1c1cff8 [HISTORY] command appeared in Version 1 AT&T UNIX
Obtained from: A Quarter Century of UNIX, Peter H. Salus, page 41
1996-08-29 18:06:19 +00:00
wosch
a7c4ab7bce add Version 1 AT&T UNIX to .At macro 1996-08-28 22:37:00 +00:00
ache
e5f2cfa071 Keep in sync with latest bash 1996-08-28 15:47:16 +00:00
bde
bac9bfee5f Don't install zgrep twice. 1996-08-28 15:45:32 +00:00
wosch
e99625b29c sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
peter
4bf6b5a8d6 Ack! Don't install cvs.info.gz etc in /usr/bin... 1996-08-21 00:57:26 +00:00
peter
48ab930e09 Make the CVSvn.texi dependency hack work a little better.. 1996-08-21 00:35:53 +00:00
peter
c9ede12ed8 Oops, forgot to 'cvs add' this one. 1996-08-21 00:04:28 +00:00
peter
15d5c28796 Update to use the cvs-1.8.1 sources from src/contrib/cvs 1996-08-20 23:58:03 +00:00
joerg
9d6deeff0a Ensure at least one space between the module name and the module path.
Detected by: asami
1996-08-20 20:37:47 +00:00
ache
91b45f51a1 Pick collate info fo ranges 1996-08-20 14:22:57 +00:00
wosch
2aadcd5e13 make install should not install any file in /etc. 1996-08-17 22:27:08 +00:00
ache
2b0bff650f 8bit clean ctype fixes 1996-08-15 22:55:53 +00:00
ache
9961cc9589 Localization fixes 1996-08-15 22:49:46 +00:00
ache
802d15ee19 Localization fixes. 1996-08-15 22:11:36 +00:00
ache
2e0a5e4c41 Use collate for alpha character ranges 1996-08-13 14:33:05 +00:00
ache
57c5d7262c Use collate for alpha character ranges 1996-08-13 14:21:48 +00:00
jkh
2fb5c6805d Reverse my patch which erroneously removed the library dependencies
for a library.  They're needed.
1996-08-13 12:46:10 +00:00
chuckr
261075a476 Change in man page to document "-" flag as stdin/stdout, add
example showing how to move file hierarchies.
Reviewed by:	jkh
1996-08-13 00:13:49 +00:00
ache
790644178d Convert to newly aded collate compare function 1996-08-12 19:12:40 +00:00
ache
46004bff4b Convert to newly aded collate compare function 1996-08-12 19:04:24 +00:00
ache
4b665568af Use collate for alpha character ranges 1996-08-12 18:03:54 +00:00
ache
0af428718d Pick collate info too 1996-08-12 17:55:41 +00:00
jkh
969fcc0e49 Throw some unnecessary dreck out of this Makefile. 1996-08-11 17:21:20 +00:00
asami
815e12fa66 The default editor is "vi", not "/usr/ucb/vi". 1996-08-09 09:00:41 +00:00
jkh
7bea3cbf5a Remove mkisofs from Makefile 1996-08-08 02:21:06 +00:00
jkh
b82843de25 bye bye mkisofs! 1996-08-08 01:52:52 +00:00
pst
46baa80578 Bring xditview back from the grave (part 2).
Fix things so it *really* won't compile if the environment isn't there.

This commit has been sitting in my to-do list for 2 months.  Xditview
should never have been half-removed, so now it's back with a vengance
because we want to keep groff intact as a package.
1996-08-05 00:44:59 +00:00
pst
f5b2955c46 Bring xditview back from the grave (1 of 2 commits). 1996-08-05 00:42:06 +00:00
jdp
325a93793c Check for, and disallow, duplicate tags in the "cvs import" command.
RCS cannot deal with duplicate tags; the extra one always becomes
inaccessible and useless.

This will prevent the common mistake of specifying the same name
for the vendor tag and the release tag.  The FreeBSD CVS repository
already contains zillions of files with this error.  We don't need
any more of them.
1996-07-20 02:08:56 +00:00
jkh
97de575586 General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:08:36 +00:00
jkh
48fbe98ff9 1. Remove some ancient bogons from when I initially added dialogMenuItem
support.
2. Have message boxes say "Continue" instead of "Exit"
1996-07-11 18:22:16 +00:00
jkh
f4760a24ff Fix a couple of whoopers which somehow went undetected until now. 1996-07-11 11:15:28 +00:00
mpp
cd372f94e5 Teach the mdoc .Os and .Fx macros about the FreeBSD 2.1.5 release. 1996-07-10 23:53:13 +00:00
ache
0b7801e93e Restore my backed out changes (writting cats) because they was
not reviewed by pst in claimed period (1 week) and over 3 weeks passed.
CONSTRUCTIVE complaints welcome!
1996-07-09 15:37:26 +00:00
wosch
5f71d9c873 add manpage getNAME(1) 1996-07-08 20:18:28 +00:00
wosch
1b3ba8de9e Exits 0 on success, and 1 if no keyword matched.
Start $PAGER only if we find a manual page.
1996-07-08 20:03:18 +00:00
jkh
0d5f96722a Add missing dialog_clear() calls. 1996-07-05 07:42:23 +00:00
wosch
0298970064 install fast version of zgrep 1996-07-02 23:01:01 +00:00
jkh
1a2cbfc16e Round out the examples a little better in showing custom buttons in operation
more than once.
1996-07-02 01:03:56 +00:00
wosch
52547774e6 checklog - extract your commits from commitlogs archive 1996-06-30 11:51:41 +00:00
joerg
d64e78b143 Back out Nate's changes from rev. 1.6; our Perl has not been
vulnerable since it used setreuid() as opposed to Posix saved IDs.
The change broke setuid scripts.
1996-06-30 09:47:56 +00:00
nate
ddc6eab90a Fix for " CERT Advisory CA-96.12 - Vulnerability in suidperl"
Submitted by:	The Perl Gods as described in the advisory
1996-06-26 19:12:25 +00:00
jkh
e693c16dd8 Bring in my changes for removing the pestilent obj links (unless you
really want them) from /usr/src.  This is the final version of the
patches, incorporating the feedback I've received from -current.
1996-06-24 04:26:21 +00:00
ache
834acc9663 Back out security changes until pst review them 1996-06-22 21:10:19 +00:00
ache
073e824120 Do not produce empty cat file in debug mode 1996-06-22 08:05:11 +00:00
gpalmer
c753f67e10 Try to make it a bit clearer that our send-pr comes pre-configured
with a submitter-id, and that a new one is not required.
1996-06-22 06:59:25 +00:00
ache
f7ae5b134a Close security holes and restore suid bit
Restore writting cat's functionality
1996-06-21 18:49:36 +00:00
jkh
46295122b7 Nuke xditview. It was in the same category as xroach.
Screeched-For By: Michael Smith
1996-06-16 13:15:35 +00:00
ache
42589425bf Increase performance using pre-calculated collate table 1996-06-10 01:32:40 +00:00
ache
6e885268f5 Follow alphabetical order more closely, now ISO8859-1 characters
sorted properly too.
1996-06-09 18:55:57 +00:00
ache
614189c857 Compare 8bit alpha characters alphabetically using strcoll() 1996-06-09 16:19:08 +00:00
bde
57a5013b6c Stop using the alias pcb_ptd' for pcb_tcc.tss_cr3'. Use the (existing)
alias `pcb_cr3' instead.  That is still one alias too many, but is convenient
for me since I've replaced the tss in the pcb by a few scalar variables in
the pcb.
1996-06-08 11:03:19 +00:00
wpaul
8465045d4e Aw c'mon. I'm being driven mad by plenty of other things. I don't
need this.

Consider the following code:

	case 'O':
		output_filename = malloc(strlen(arg)+4);
		strcpy(output_filename, arg);
		strcat(output_filename, ".tmp");
		real_output_filename = arg;
		return;

The idea here is to malloc() a buffer big enough to hold the name of
a supplied file name, plus ".tmp". So we malloc() 'size of filename'
bytes plus 4, right? Wrong! ".tmp" is _FIVE_ bytes long! There's a
traling '\0' which strcat() gleefully tacks on _outside_ the bounds
of the buffer. Result: program corrupts own memory. Program SEGVs at
seemingly random times. Bill not like random SEGVs. Bill smash.

Know how I found this? I've been trying to bootstrap -current on my
2.1.0-RELEASE machine at work and I couldn't seem to get libc.a built
because the linker would intermittently blow chunks while executing
things like 'ld -O foo.o -X -r foo.o'. Since this is an initial
bootstrap version of ld, it was linked against the 2.1.0 libc, who's
malloc() behaves differently than that in -current.

Presumeably ld -O doesn't blow up in -current, otherwise someone would
have spotted this already. I don't know if this is a bug or a feature.

Anyway. I'm changing the strlen(arg)+4 to strlen(arg)+5. Bah.
1996-06-08 04:52:57 +00:00
gpalmer
80e814d135 Use setreuid instead of seteuid for permissions management 1996-06-02 19:59:26 +00:00
lars
1dc0790042 Reviewed by: joerg
Change man so that it will still display the man page even if it
cannot create a "cat" file.
1996-06-01 03:19:59 +00:00
phk
eff2dd5672 Add an option -O <filename> to ld. From the manpage:
-O filename
             Specifies the name of the output file.  The file is created as
             filename.tmp and when output is complete renamed to filename.
This allows us to:
	ld -O ${.TARGET} -x -r ${.TARGET}
1996-05-28 16:17:48 +00:00
phk
ddcab55507 Make rules reentrant. 1996-05-28 00:34:38 +00:00
jdp
4d2ee3eb28 Zero out an unused field in a structure that is written to the output
file.  The field formerly contained random garbage, leading to spurious
differences between otherwise identical executables and libraries.

Submitted by:	Bruce Evans <bde@freebsd.org>
1996-05-27 18:06:02 +00:00
peter
8040b006bf Remove this version, it now comes from libc. 1996-05-27 11:02:40 +00:00
peter
2a9f7971a3 This version is no longer needed, and probably better off gone. It
tried to parse the format string to estimate how much space it needed.
It didn't know all of the formats..
1996-05-27 11:01:09 +00:00
jkh
989ab4d30b There's no -p flag to our diff. 1996-05-26 22:27:52 +00:00
jkh
ff892d71a9 Fix some argument ordering and redundancy bogons. 1996-05-26 21:56:24 +00:00
pst
b73e9cdfad Remove setuid bit, it's not necessary. 1996-05-22 15:53:38 +00:00
pst
a8b5b6e2b5 Call groff directly instead of using nroff shell script.
Submitted by:	peter
1996-05-22 15:53:19 +00:00
jdp
d99d1f0605 When checking to see whether a needed shared library has already
been loaded, look for a match by device and inode number if the
traditional pathname comparisons don't find a match.  This detects
the case in which a library is requested using two different names
which are really links to the same file, and avoids loading it
twice.

Requested by:	peter@freebsd.org
Reviewed by:	peter@freebsd.org
1996-05-22 06:34:12 +00:00
wosch
45b3798d38 New option -append: teach makewhatis to only add records, instead
of clobbering the entire database.

sort options in alphabetic order.

install manpage makewhatis.local.8
1996-05-22 00:57:42 +00:00
wosch
22a3f689c9 remove INFODIR?= /usr/share/info, already defined in bsd.own.mk 1996-05-22 00:29:40 +00:00
wosch
119c11d84e remove SHAREDIR?=/usr/share, already defined in bsd.own.mk 1996-05-22 00:26:57 +00:00
jkh
f403cde040 Invoke proper gzip 1996-05-20 12:52:08 +00:00
wosch
f2ad772ff6 Makewhatis appended the filename to list of keywords if no keyword
matched the filename. Now put the list after the filename. E.g.

filename: vt220keys.1
Keyword: vt220

was: vt220(1), vt220keys(1)   - define SHIFTED [...]
now: vt220keys(1), vt220(1)   - define SHIFTED [...]
1996-05-14 23:07:05 +00:00
wosch
43763fc2db Bugfix: nested *?+ in regexp at /usr/bin/makewhatis line 286
Submitted by: invalid opcode <coredump@nervosa.com>

makewhatis.local - start makewhatis(1) only for file systems
                   physically mounted on the system
Running makewhatis from /etc/weekly for rw nfs-mounted /usr may kill
your NFS server -- all clients start makewhatis at the same time!
So use this wrapper instead calling makewhatis directly.

Pointed out by: Bruce
1996-05-12 21:02:04 +00:00
wosch
fa45f8aa58 faster
average 2-3 x
	for option -h or -q 10 x

handle option -q and -L

better exit status, similar to grep (0: matches found 1: no
matches found 2: error)
1996-05-12 16:20:26 +00:00
wosch
5c15c67589 `mv'' -> `mv -f''
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
1996-05-07 23:19:49 +00:00
phk
0da10b10e3 PD_SHIFT -> PDRSHIFT
PGOFSET -> PAGE_MASK
1996-05-02 13:08:51 +00:00
phk
8faee1d3de NBPG -> PAGE_SIZE
Avoid using the struct pte stuff.
1996-05-02 09:42:45 +00:00
joerg
d4ead5e52e Fix a bogon that prevented easy-import from inserting the new module
name in alphabetical order (broken by my previous commit).

Pointed out by: asami
1996-04-28 12:32:43 +00:00
wpaul
9fc7c27b27 Toss the GNU yp_mkdb into the attic. 1996-04-28 04:08:22 +00:00
wpaul
71d4bd156d Remove yp_mkdb; it's going away.
Uhm, guys? This Makefile doesn't build anything anymore. The isdn
stuff under here isn't compiled. Is this normal?
1996-04-28 04:06:06 +00:00
jkh
91dec3b8e0 Fix the OK/Cancel accellerator bogon I introduced a few days back. 1996-04-28 02:13:07 +00:00
jkh
2d1330c2e6 Fix what I just broke with DITEM_LEAVE_MENU 1996-04-27 07:09:41 +00:00
jkh
0ee69000d7 Fix a bogon with ok/cancel callback usage. 1996-04-27 01:52:15 +00:00
jkh
8e3bd41f02 More custom hackery to deal with issues discovered in sysinstall. 1996-04-25 17:27:18 +00:00
jkh
7f0bc27a8a Allow some post-fire actions to be combined in ways that weren't
possible before.
1996-04-25 13:34:37 +00:00
jkh
df78188f28 alloca() was being called with highly bogus arguments due to brain
fade.  Fixed.
1996-04-25 01:50:18 +00:00
jdp
0cb7120b21 When a local symbol that would normally be eliminated by "-x" or
"-X" must survive, because of references from relocations, don't
qualify the symbol name with the name of the input file.  This
saves some string space.  It makes libc_pic.a about 2.4% smaller.

Adapted from a suggestion by Bruce Evans.
1996-04-24 23:31:08 +00:00
jkh
ba42a29c53 Change "Found end of tape. Load next tape ..." messages to say
"volume" instead of tape.  Running cpio off of /dev/fd0 and having
it say "give me the next tape" is kind of ludicrous.. :-)
1996-04-24 21:20:17 +00:00
jkh
3d9bce08b2 Cosmetic tweaks. 1996-04-23 01:25:04 +00:00
jdp
6ad4ec9e84 Add a couple of needed X11 libraries. Discovered when trying to build a
static version.
1996-04-22 20:24:56 +00:00
jdp
3183816ec8 Implement support for LD_PRELOAD in the dynamic linker. Remove
descriptions of LD_NO_INTERN_SEARCH and LD_NOSTD_PATH from the manual
page, since they are not supported.

Submitted by:	Doug Ambrisko <ambrisko@ambrisko.roble.com>
1996-04-20 18:29:50 +00:00
jdp
beba335ecb Implement support for LD_PRELOAD in the dynamic linker.
Submitted by:	Doug Ambrisko <ambrisko@ambrisko.roble.com>
1996-04-20 18:27:56 +00:00
jkh
ca517717bf Another bug fix for the DITEM_REDRAW case. 1996-04-20 01:56:06 +00:00
jkh
4555507404 Make the DITEM_RECREATE option work properly. 1996-04-20 01:28:20 +00:00
jkh
70b37e6921 Fix a bug which did not properly bias checklist items by their scroll
factor.
1996-04-19 10:39:16 +00:00
jkh
6726136310 Remove a long-standing window leak I just noticed. 1996-04-18 13:36:39 +00:00
jkh
06a005ef80 Remove the special-case behavior for fire actions that return
DITEM_FAILURE - formerly they would simply act as an implicit "continue",
but this is wrong.  If you want this behavior, you should now return
with the DITEM_CONTINUE flag set.

Also make the semantics of DITEM_RESTORE quite a bit different - rather
than restore the screen back to pre-menu state, we restore the menu
itself.  This is more correct for a variety of reasons when dealing with
nested menus (whoops!).
1996-04-18 13:21:26 +00:00
jkh
1955cbd66c More changes to attempt to make this whole new dialog scheme more
robust.  The new "fire" actions, while affording signficantly more
interactivity to libdialog, come at a cost - if the fire action trashes
the screen then you're not going to be in Kansas anymore when you
come back to the menu and there had better be considerable extra
smarts in place for coping with such a situation.  These changes are my
attempt to do just that.
1996-04-16 12:17:27 +00:00
jkh
8fa148213f Remove some of the grot I added to try and save/restore screen contents.
This shouldn't be done here, it should be done in the client as needed.
1996-04-13 13:13:32 +00:00
markm
6003cce22b Attempt to break a $Log$ snafu where a *** /--- (minus space)
was fouling up a comment in the checked-out code.
1996-04-12 11:37:32 +00:00
markm
8f18a3514d Priorities were broken. If there was an Index: line and ***/--- lines
with valid names, the ***/---names were taken first.
this broke eg:
Index: foo/Makefile
==========
RCS <blah>
Retrieving <blah>
diff <blah>
*** Makefile <blah>
--- Makefile <blah>

By trying to patch the Makefile in the _curent_ directory, rather than
the one in the foo/ directory.
1996-04-11 10:13:40 +00:00
jkh
4297b4c540 Save screen before calling any fire() callbacks - you never know what
they might do to the screen.
1996-04-08 10:28:07 +00:00
jkh
f7f939e434 Refresh dialogs if a callback action fails. 1996-04-08 10:02:55 +00:00
mpp
dfbf6cbddc Correct some man page xrefs, and some other minor changes to bring some
man pages up to mdoc guidelines and fix some minor formatting glitches.
Also fixed a number of man pages to not abuse the .Xr macro to
display functions and path names and a lot of other junk.
1996-04-08 04:18:31 +00:00
joerg
216e51f75a Make `easy-import' ready for vendor-branch imports.
I'm also going to install the new version on freefall.
1996-04-07 10:22:37 +00:00
jkh
8f3756c1f1 Make this properly respect obj dirs. 1996-04-07 03:34:35 +00:00
jkh
57f1423230 Strive for a little more consistency with my examples. 1996-04-07 03:21:01 +00:00
jkh
fad43bf452 Add an `aux' field for some other gunk I'm doing. 1996-04-05 02:29:12 +00:00
bde
3a2b589dc0 Moved the include of <sys/types.h> to before the include of <dirent.h>
so that mkisofs will compile when namespace pollution is removed from
<stdio.h>. (<dirent.h> recently became dependent on <sys/types.h>.)
1996-03-29 14:00:25 +00:00
joerg
7561f37701 f2c's -krd does not work with f77 wrapper
Closes PR # gnu/1101

Submitted by:	kargl@troutmask.apl.washington.edu (Steven G. Kargl)
1996-03-27 07:46:04 +00:00
wosch
d9786fa4d3 Don't count character ``+'' as garbage (c++.1, flex++.1)
Submitted by: joerg
1996-03-21 18:17:41 +00:00
joerg
8866798a79 Fix an infinite loop for empty files in the archive, and handle
sparsely stored linked files correctly.

Submitted by:	haug@conterra.com (Brian R. Haug)
1996-03-18 23:08:29 +00:00
joerg
b87c521bab Several changes to the gethostname module:
. rename the function to main'gethostname, so it can be called unqualified,
. strip the trailing \0 character, closes PR # bin/1084,
. a better way to express an insane long string.

Submitted by:	Giles Lean <giles@topaz.nemeton.com.au> (except the 1st)
1996-03-18 21:42:31 +00:00
wosch
9893f87108 delete /usr/local/bin from PATH
Submitted by:	nate
1996-03-12 23:09:04 +00:00
wosch
ace5ad3fba delete /usr/ucb from PATH, move /usr/local/bin after /usr/bin 1996-03-12 21:42:40 +00:00
wosch
4d702e2748 remove ``whatis'' 1996-03-10 18:59:11 +00:00
wosch
67d62f5946 share the code between apropos and whatis 1996-03-10 18:52:33 +00:00
markm
a8d2b1d1ae Make "make tests" actually work. This is an extremely crude hack, but
I figure that as this is not part of any automated processes, WTH.
1996-03-04 16:06:03 +00:00
bde
3ce59ae04b Removed temporary file. 1996-03-01 15:18:55 +00:00
pst
750c8b5fde Bring in some of Paul K's fixes for ldconfig from NetBSD-current.
This solves the problem of being unable to use shared libraries with dots
in their names before the ".so.<version>" code.

This should be brought into -stable.

There are more changes from Paul that look like they should be included,
but they change the format of the hints file, so I'm not going to bring them
in now (but we should in the future).

Obtained from: pk@netbsd.org
1996-02-26 02:22:33 +00:00
wosch
c5e182912d print error messages to stderr
don't fail if search arguments contain spaces
allow programs from $PATH as PAGER
faster
1996-02-25 23:41:46 +00:00
bde
dbf7db4c11 Use ${ECHO} instead of echo' so that make -s' is fairly quiet. 1996-02-25 20:25:05 +00:00
joerg
19bb6dac0f Add a small `gethostname' package. It uses __sysctl(2), and thus
avoids the kludgy backquotes that are required by now (`hostname`).

Usage:

require "gethostname.pl";
$thishost = &gethostname'gethostname;
1996-02-13 13:17:49 +00:00
mpp
32504b87f2 Added a ".Fx" macro to the mdoc package. Usage:
.Fx version.rel { , . ; : ( ) [ ]

Example:

The
.Nm xyzzy
command first appeared in
.Fx 2.2 .

Produces:

The xyzzy command first appeared in FreeBSD 2.2.

Suggested by wollman.
1996-02-12 19:25:18 +00:00
wpaul
5e58fc97c7 Toss the old yppasswdd into the attic. 1996-02-12 14:50:23 +00:00
wpaul
cc833767f1 Remove yppasswdd. (It's going away in a minute.) 1996-02-12 14:48:44 +00:00
nate
b4ed26551a Merged in FreeBSD changes. 1996-02-12 06:45:43 +00:00
nate
fec6ca4e78 This commit was generated by cvs2svn to compensate for changes in r14049,
which included commits to RCS files with non-trunk default branches.
1996-02-12 06:39:49 +00:00
nate
a2ca936a65 Sort from GNU textutils 1.14 1996-02-12 06:39:49 +00:00
mpp
37272cd2d1 Another round of man page cleanups.
Down to only about 100 items left to cleanup! :-)
1996-02-12 04:57:03 +00:00
mpp
bda6e1c756 Correct a bunch of man page cross references and generally
try and silence "manck".

ncurses, rpc, and some of the gnu stuff are still a big mess, however.
1996-02-11 22:38:05 +00:00
phk
078ac1fd14 gnumalloc is gone. 1996-02-11 18:16:11 +00:00
phk
039e340678 Remove libgnumalloc. 1996-02-11 18:15:10 +00:00
jmz
aff140ab26 Spelling fixes.
This is the man page which has been obtained from NetBSD, not the program.
1996-02-09 21:14:26 +00:00
mpp
1e4a679a26 Add some missing MLINKS, correct some cross references, correct some
file locations and some minor formatting/style problems.
1996-02-09 16:20:10 +00:00
mpp
bd901d38da Added some missing MLINKS for section 3 man pages.
Also corrected a few minor formatting errors, file location and cross
references in some of the section 3 man pages.

This shuts up a lot of the output from "manck" for section 3.
1996-02-09 00:45:45 +00:00
pst
9c6409da80 Whoops, do not reference myself. 1996-02-08 21:12:08 +00:00
pst
2d8fa17025 Close docs/1002 - remove bogus cross references 1996-02-08 21:10:07 +00:00
mpp
01864dd4ab Added entries for some info files that are being installed, but
not referenced in the main info menu:

cvs, cvsclient (cvs client/server stuff), diff/patch, gmp (GNU MP math
library).
1996-02-08 20:00:52 +00:00
jkh
c11d5de52f Minor tweak to this test. 1996-02-08 11:55:15 +00:00
pst
f47455ee07 Fix bin/pr506 - uname from current system 1996-02-08 06:04:57 +00:00
jdp
1385188326 Update the manual page to reflect the fact that an "Index" line
now takes precedence over a context diff header for determining
the name of the file to patch.
1996-02-07 23:47:55 +00:00
wosch
96d07711e3 making <page>.1 from <page>.man 1996-02-06 23:48:03 +00:00
wosch
07af67845d recursive grep, enabled with -DHAVE_FTS=1
enable mmap (-DHAVE_MMAP=1)
1996-02-02 06:45:26 +00:00
mpp
587481e04a Correct some manual page cross reference errors. E.g. su is a section
one man page, not section eight.  This is the first round of such changes
and only fixes man pages in manual section one.
1996-02-02 00:26:12 +00:00
mpp
060ad968bc Fix the ".Os" macro to not display "BSD Experimental" if no arguments
are specified.  Just "BSD" is displayed instead.
1996-02-01 18:04:22 +00:00
mpp
244a6ce502 Remove groff/tmac/mm.diff - it is just a small file containing a context
diff that was probably mistakenly committed when the package was brought in.
1996-01-31 21:07:22 +00:00
mpp
ce559864f0 Updated the ".St -ansiC" macro to report "ISO 9899: 1990 (``ISO C'')"
You can also specify -iso9899, or -isoC.  Use -ansiC-89 if you still need
the X3.159-1989 string reported.

Suggested by Garrett Wollman.
1996-01-31 20:55:35 +00:00
mpp
44d76acd34 Teach the .Os macro about FreeBSD and our releases. E.g.
.Os FreeBSD 2.1

will now display "FreeBSD 2.1" at the bottom of the man page,
instead of just "FreeBSD".

Added a bunch of missing standards to the .St macro.

4.4BSD is no longer "BSD Experimental".

Obtained from:  Partially obtained from NetBSD & 4.4BSD-lite2
1996-01-31 16:34:53 +00:00
wosch
14b39d5345 man.1 depend on man.man 1996-01-24 00:22:27 +00:00
wosch
1528d7ee78 manpath.1 depend on manpath.man 1996-01-24 00:18:29 +00:00
joerg
707e90624e `-w' was actually a flag, not an option... 1996-01-23 21:27:39 +00:00
joerg
16fa5683ce Add a hint that the -w flag to catman(1) is actually the command
wakewhatis(1) for us.

Closes PR # docs/966

Submitted by:	obrien@cs.ucdavis.edu (David E. O'Brien)
1996-01-23 21:09:39 +00:00
bde
6ae9438f75 Search section 9. 1996-01-23 14:03:26 +00:00
wosch
446b46cbac Add missing manpage zgrep.1 and links zegrep.1, zfgrep.1
Add missing links zegrep and zfgrep
1996-01-23 01:00:37 +00:00
mpp
3956ebc3ff Change the reference to less(1) (which may not be installed) to more(1).
Closed PR# 847.
1996-01-22 09:25:45 +00:00
mpp
97e471281a Rcsdiff incorrectly only allows one -L option to be specified.
Submitted by: Niklas Hallqvist <niklas@filippa.appli.se> via NetBSD-bugs
1996-01-20 07:51:25 +00:00
graichen
fff7ff470e Reviewed by: jmz (Jean-Marc Zucconi)
added a simple man-page for our f77 (f2c/gcc driver)
1996-01-16 10:21:45 +00:00
jdp
656834b2d9 This release is a moderate restructuring of the dynamic linker.
It addresses a number of problems that were present in earlier
versions.

The calls to the "init" and "fini" functions of shared libraries
have been reordered, so that they are called in a strictly nested
fashion, as is required for C++ constructors and destructors.  In
addition, the "init" functions are called in better order relative
to each other.  That makes the system more tolerant of C++ programs
which depend on a library's being initialized before its clients.

The dynamic linker is now more tolerant of shared libraries in
which dependencies on other shared libraries are incompletely
recorded.

Cleanup in the event of errors has been improved throughout the
dynamic linker.  A number of memory leaks were eliminated.

The warning message for a shared library whose minor version number
is too old has been clarified.

The code dealing with the "ld.so.hints" file has been cleaned up.
A bug that caused the hints file to be unmapped incompletely has
been fixed.  A different bug that could potentially cause the hints
file to be mapped on top of a loaded object has been fixed.

The code that searches for shared libraries has been cleaned up.
The searching is now more compatible with that done by SunOS and
SVR4.  Also, some unnecessary and useless searches of both the
hints file and library directories have been eliminated.

Reviewed by:	nate@freebsd.org
1996-01-13 00:15:25 +00:00
jdp
1b03fbd3af Split up the code so that a single directory can be searched, to
support some changes in the dynamic linker.  (This code is shared
by the dynamic linker.)

Reviewed by:	nate@freebsd.org
1996-01-13 00:14:53 +00:00
wpaul
123a4a4f53 Toss the old yppush into the attic. 1996-01-12 06:46:19 +00:00