Commit Graph

1433 Commits

Author SHA1 Message Date
John Polstra 775f9cd54d For "ldd -v", print shared object dependencies that were specified as
pathnames (rather than as "-lfoo") correctly.
Closes PR bin/2404.
1997-01-10 02:51:00 +00:00
Mike Pritchard 00f7ecb490 Fix some file descriptor leaks. Closes PR# 2392.
2.2 candidate.
1997-01-09 14:50:42 +00:00
Satoshi Asami f654421bef Typo, "%d" -> "%s". This caused tar to print things like
tar: Can't change to directory 282656 : No such file or directory
1997-01-07 10:43:40 +00:00
Jordan K. Hubbard 1e97817fad Remove bogus redeclaration of setenv().
Fixes make world failure #3 for today (part of an ongoing series).
1997-01-07 06:26:19 +00:00
Jordan K. Hubbard 655ad55f9c Fix bogosity with gdb documentation path.
Submitted-By: Chuck Robey <chuckr@glue.umd.edu> (with fix from me)
1997-01-07 04:41:18 +00:00
Andrey A. Chernov 8ef1c5d67a Add -f to ln 1997-01-06 19:27:17 +00:00
Andrey A. Chernov 42446c543a Use contrib version now 1997-01-05 16:19:58 +00:00
Bruce Evans fd0a86436e Use ${COPY} instead of -C for installing non-source files. crt*.o
should be installed using the same flag as libraries, but ${COPY}
is currently used for libraries.
1997-01-01 04:52:55 +00:00
Bruce Evans 015a0dc2e4 Use ${COPY} instead of -c for installing non-source files. 1997-01-01 04:22:23 +00:00
Steven Wallace 43d7fd0390 Fix spelling error in manpage. 1996-12-26 21:51:09 +00:00
Joerg Wunsch 65fb557e51 Pull the fix from rev 1.31.2.1; i've accidentally committed it to
2.2 first.
1996-12-26 18:47:11 +00:00
Poul-Henning Kamp 328f21ee08 Remove a couple of private malloc() implementations, one of which
was unused afterall.
1996-12-23 20:21:35 +00:00
Andrey A. Chernov 9730ef2973 Even more buffer overflow fixes
Change CATMODE to 0644, because group man not used
Add immutable sbit to man binary, so if user even got man uid,
he can't replace man binary with fake one

Should go to 2.2

Submitted by: Marc Slemko <marcs@znep.com> with small editing by me
1996-12-19 10:45:16 +00:00
Andrey A. Chernov 7a81e58e55 Fix many buffer overflows, sprintf -> snprintf
Fix manpath dirs count overflow

Should be in 2.2
1996-12-18 20:55:26 +00:00
Andrey A. Chernov a49b39f8d4 Fix my popen fix: conditionalize saving/restoring of euid
Should be in 2.2
1996-12-18 20:07:49 +00:00
Andrey A. Chernov 64919fdd33 Drop man priveledges before popen and restore them after it, because
it is possible to execute system command from f.e groff

Should be in 2.2
1996-12-18 19:46:21 +00:00
Mike Pritchard 487990280d Correct some xrefs/mlinks. 1996-12-14 23:27:20 +00:00
Jordan K. Hubbard fac5450c4f Somewhere along the way, multiple targets started working and nobody
noticed.
1996-12-14 16:40:05 +00:00
Jordan K. Hubbard ae5b2dcf86 Add another hateful global to libdialog (what the heck, there are already
so many).  For now, the only extended attribute implemented is NO ECHO,
useful for things like passwords.  See TESTS/input2.c for an example.
This should go into 2.2.
1996-12-14 16:14:21 +00:00
Jordan K. Hubbard fb46ad63d7 Line up some of these OK boxes properly again. 1996-12-12 11:05:59 +00:00
Mike Pritchard 2eea2d2aba Convert to mdoc format.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2134
1996-12-09 07:57:54 +00:00
Mike Pritchard 5a2964f7c9 Minor formatting fixes.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR # 2134.
1996-12-09 07:26:04 +00:00
Mike Pritchard 1364c9e2fc Fix a spelling error. 1996-12-09 07:00:17 +00:00
Mike Pritchard a66c11682b Convert man page to mdoc format.
Submitted by:	Sandro Sigala <sandro@cat.local.net> as part of PR# 2154
1996-12-09 06:59:17 +00:00
Joerg Wunsch 6aeb9e664f Merge tar's version of rtapelib, namely the changes as of rev 1.2.
Both files used to be identical previously, so they are again now.
1996-12-08 14:19:50 +00:00
Satoshi Asami 25c1416b06 Remove /usr/ucb and /usr/local/mh/bin from MANPATH_MAP, we don't ship
the system with these (and the mh port doesn't install there either).

Comment out /usr/X386/bin in MANPATH_MAP, it is already commented out
in MANDATORY_MANPATH.

2.2 candidate, I guess.  I can't even imagine why these stuff were
still there!
1996-12-07 23:32:37 +00:00
Mark Murray d6eb2faa42 Fix libmp to be more Berkely compatible.
This is a very safe 2.2 candidate.

Submitted by:	Nick Sayer <nsayer@quack.kfu.com>
1996-12-07 13:03:29 +00:00
Andrey A. Chernov efca252ab2 Disable seteuid/setegid back, I overlook one place where
SETEUID chacked before SETREUID
1996-12-07 00:16:04 +00:00
Andrey A. Chernov f7b6171d98 Enable seteuid, setegid 1996-12-06 22:59:56 +00:00
Andrey A. Chernov 19d1a09b3d Not have saved setuid anymore 1996-12-06 22:55:31 +00:00
Nate Williams e744d38673 Added support for '-T' and '-B' (text and binary) file recognition by
peeking inside of Chris Torek's stdio library internals.  This is
similar to the code used for other systems, but didn't work on CT's new
implementation.

Submitted by:	Gary Kline <kline@tera.com>
1996-12-03 21:56:15 +00:00
Jordan K. Hubbard 40b8bc74b7 Allow baud rate of 230400.
Submitted-By: Andrew L.Davydov <davydov@ns.okbmei.msk.su>
1996-12-02 12:12:19 +00:00
Bruce Evans 45f4c7f97c Made the synopsis in the man page conform to the style guide.
Made the usage message conform to the style guide.

Don't use the implementation variable `__progname'.
1996-11-30 16:12:46 +00:00
Andrey A. Chernov 9e232727ad Use LC_TIME=C 1996-11-26 08:45:28 +00:00
Peter Wemm b988beb8f9 make the Usage string match reality
Submitted by:  faried nawaz <fn@uidaho.edu>, PR#2075
1996-11-22 13:58:03 +00:00
David E. O'Brien a33b54a061 Added reminder to edit the parent Makefile to add what you just imported. 1996-11-22 08:28:32 +00:00
Joerg Wunsch 857bb723a2 Disable the inclusion of the Posix regexp stuff into libgnuregexp.
We've already got it in libc, but both libraries are incompatible
wrt. their header files and internal data structures.  This
incompatibility caused the expr(1) on the fixit floppy to mysteriously
dump core for the colon operator.

Strong 2.2 candidate, since it fixes the usage of MAKEDEV on the fixit
floppy.  I'd like to get it reviewed by somebody else though.

Observed by: andreas
1996-11-16 22:53:45 +00:00
Jordan K. Hubbard a4a3782b70 STL object files missing from libstdc++ - fix.
This closes PR#1975 and was on my TODO list, so I'm breaking my own "no more
commits before I fly!" rule and taking care of this, since it was at the
very top and Peter shamed me in to taking care of it.  This is definitely
a 2.2 candidate.

Submitted-By: Mark Diekhans <markd@Grizzly.COM>
1996-11-15 18:09:09 +00:00
Jordan K. Hubbard 13ea765008 Gnu tar has problems creating an archive which contains a file with a hard
link to another file which has a long (>=100 char) name.  When listing such
an archive, the name of the link is truncated to 99 characters, and when
extracting such an archive, an error is reported because it is trying to
create a hard link to a file which doesn't exist.  This patch fixes that
problem and has also been sent to the GNU maintainers.

Closes PR#1992

Submitted-By: David Dawes <dawes@landfill.physics.usyd.edu.au>
1996-11-12 18:15:42 +00:00
John Dyson d35c63edaa Add the PPro %cr4 register to the supported registers in the
assembler.
1996-11-11 19:03:51 +00:00
John Polstra 566b4de9c1 Document that "ldconfig -m" rescans all directories previously
entered into the hints file, in addition to the directories named
on the command line.

2.2 Candidate.
1996-11-09 20:26:19 +00:00
John Polstra d66f9d22f7 Fixed a bug in the handling of the directories in the search path
that is stored in the hints file.  If that search path contained
a non-existent directory (one, say, that had been removed), and
"ldconfig -m /a/perfectly/good/directory" was run, ldconfig returned
an error status without printing an error message.  This caused
some confusing bombs when installing ports, in particular.

I changed it so that non-existent directories from the stored search
path are silently ignored.  Only non-existent directories named
explicitly on the command line are treated as errors.  Also, a
diagnostic is printed if and only if an error status is returned.

In an unrelated fix, ldconfig now silently ignores any directories
named on the command line when the "-r" option is given.  Formerly,
these directories incorrectly made their way into the "search
directories" line of the listing.  It really should be an error to
specify directories together with "-r", but I don't have time to
fix the manual page in that way right now.

2.2 Candidate.
1996-11-08 02:12:40 +00:00
Wolfram Schneider 5402df3cfa Not hang in the downcase routine.
Submitted by: Trevor Blackwell tlb@viaweb.com

2.1.6/2.2 Candidate
1996-11-05 23:35:16 +00:00
Steve Price e2a59009ba Change -I$(.CURDIR) to -I. in CFLAGS. As Bruce pointed out
$(...) is bad style and without -I. this program would not
compile unless ${.OBJDIR} == ${.CURDIR}.

Submitted by: bde
1996-11-04 16:14:16 +00:00
Steve Price f542f7ff84 Get rid of bogus #ifdef's. 1996-11-04 04:36:31 +00:00
Steve Price 485f6985a7 Upgrade to dc version 1.0 which comes bundled with
bc version 1.03.
1996-11-04 04:24:33 +00:00
Steve Price defb499d08 Cleanup -Wall warnings added with upgrade to version 1.03. 1996-11-04 03:59:35 +00:00
Steve Price 7e0d34dec8 Upgrade to version 1.03. 1996-11-04 03:55:26 +00:00
Steve Price 2cde372bc2 Ok, instead of covering up the problem, let's fix it.
Reinstate the ability to use directories as input files
and make dc print an error message when trying to
lookup/set the value of an invalid register.

Suggested by: bde
1996-11-03 16:18:58 +00:00
Joerg Wunsch 07404e964a Print out permissions that could not be re-established using 0%o
instead of decimal.  Also, don't use the `l' modifier for something
that has just been cast to `int' anyway.

Remove various bogus pathnames to look up rsh(1) at.  Our rsh is in
/usr/bin, but never in /usr/usb, nor would it ever be called remsh...
Also, if it hasn't been found there, use execlp() to look it up.  the
latter is required for `weird' environments like a fixit floppy where
the regular /usr/bin hiearrchy is not avaiable.  tar should probably
do it similar to dump/restore, and use rcmd(3) instead of forking an
external process.
1996-11-03 14:47:52 +00:00
Steve Price 16f50bdc0a Don't allow filenames specified on the commandline
to be directories.
1996-11-03 03:31:33 +00:00
Andrey A. Chernov 85938e600c Uncomment static from collate_range_cmp, no more in locale.h 1996-10-31 14:44:24 +00:00
Andrey A. Chernov 6e710be0de Remove unused file 1996-10-31 08:03:26 +00:00
Andrey A. Chernov 705c4b24f0 Localize it 1996-10-31 08:01:16 +00:00
Andrey A. Chernov d635f7bb20 Replace collate_range_cmp call with its code (GNU version) 1996-10-31 07:45:15 +00:00
Andrey A. Chernov 8bd603338f Replace collate_range_cmp call by its code (GNU version) 1996-10-31 07:36:09 +00:00
Andrey A. Chernov 1b142f3fd2 Replace collate_range_cmp with its code (GNU variant) 1996-10-31 05:14:27 +00:00
Gary Jennejohn b7eed0a0c1 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 Wemm fecaa12727 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 Wunsch 2b0039e0a4 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
Mark Murray ebebb88b8d Fix the dependancies.
Thanks Andrey!
Submitted by:	ache
1996-10-24 18:03:53 +00:00
Mark Murray 3200ac9848 Fix this so that dependancies work properly.
Thanks Andrey!
Submitted by:	ache
1996-10-24 18:00:43 +00:00
John Polstra ab6c6377b3 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
Andrey A. Chernov 728b07018e Remove local fnmatch() copy, we now compatible with GNU fnmatch 1996-10-23 16:53:26 +00:00
Poul-Henning Kamp 494405d890 Removing old isdn stuff. 1996-10-20 18:24:17 +00:00
Joerg Wunsch bb47d8c391 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
Mark Murray 206907362b BMakefile for gmp-2.0.2
Requested by: ache
Made world by: chuckr
1996-10-20 09:29:39 +00:00
Mark Murray 3d9f2d2e10 BMakefiles for gmp-2.0.2
Requested by: ache
Made world by: chuckr
1996-10-20 09:28:03 +00:00
Mark Murray 5eb857037b Remove the old libgmp. Version 2.0.2 is about to hit prime time. 1996-10-20 09:23:44 +00:00
Mark Murray 504fa96f30 Remove the old libgmp. Version 2.0.2 is about to hit prime time. 1996-10-20 09:11:57 +00:00
Mark Murray 537b19adb4 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 Wunsch 8b07755b31 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
John Polstra 16804804df Fix two minor typos in the manual page. 1996-10-18 04:49:43 +00:00
Peter Wemm 4023b3033b 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 Wunsch d1a3967b59 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
John Polstra e5bbb2e4b5 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
John Polstra 7c6da7dcef 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
John Polstra 9151bb8d2d 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 Wemm 210d012784 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
Wolfram Schneider e83201b43a delete doubled words, e.g.: "the the" -> "the" 1996-10-05 22:27:30 +00:00
Peter Wemm 74a20d397d 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
Jordan K. Hubbard 3cd2d3f69a "CONTINUE" was just too long. Make it a nice "OK" now. 1996-10-04 13:06:48 +00:00
Peter Wemm cb03015500 To the Attic we go.. 1996-10-04 09:02:59 +00:00
Peter Wemm 5908a75555 Add genclass to the subdir list 1996-10-04 08:45:34 +00:00
Peter Wemm e27edaff41 Add libstdc++ to the SUBDIR list 1996-10-04 08:44:26 +00:00
Peter Wemm 73456abd78 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 Wemm 3c4c579d13 Initial attempt at a bmakefile for genclass. 1996-10-03 23:00:09 +00:00
Peter Wemm 99dd87778d Initial shot at a bmakefile for libstdc++ 1996-10-03 22:52:23 +00:00
Peter Wemm e8d53f09e3 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 Williams 9ac501e21b 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 Wemm 3e17261bac 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 Wemm 090d47a84f 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 Wemm a4136bfcfc Don't build config/i386/i386.o in the src/contrib/gcc tree..... :-] 1996-10-01 03:44:29 +00:00
Peter Wemm 9731d13765 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 Wemm 5584286a91 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 Wemm d138df6140 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 Wemm 80c714994d 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 Wemm b186571cf6 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 Wemm d0a184df5d 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 Wemm 75f88ba495 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
Wolfram Schneider 0dde7f4fca xVERSIONx -> 3.2; close PR 1404 1996-09-28 18:31:30 +00:00
Wolfram Schneider d7c71d3534 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
Wolfram Schneider 8a9374d25b test 37: [b-a] is a syntax error and exit with status 2 1996-09-27 19:40:39 +00:00
Wolfram Schneider 412467fa26 grep(1) should not parse manpages as arguments.
Now `apropos -xfer' works.
1996-09-27 17:36:50 +00:00
Wolfram Schneider 633b3caa8f 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
Bruce Evans 4523edce8b 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
Bruce Evans 0c8ea4d48c 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
Wolfram Schneider e0e5145ce6 add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
Bruce Evans 08eb1b8719 cpp was named ccp. 1996-09-23 16:12:38 +00:00
Peter Wemm 6f78ed368c 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
Paul Traina 79b3126fb3 Fix up some compilation warnings. 1996-09-22 00:55:46 +00:00
Jordan K. Hubbard 926a83ef42 Nuke a trailing .endif which survived Peter's last edits. 1996-09-21 17:49:45 +00:00
Peter Wemm 8fb64f20b5 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
Bruce Evans 7dbead4e23 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
Andrey A. Chernov b32992bc3f Replace GNU-made __P definition by standard from sys/cdefs.h 1996-09-20 14:33:48 +00:00
Peter Wemm f19798ebd2 Add libobjc, the Objective-C runtime library. 1996-09-19 16:19:49 +00:00
Peter Wemm a1b588fd3f 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
Paul Traina cfa804d6ba Grab h2ph from /usr/bin, not /usr/local/bin! 1996-09-17 01:14:18 +00:00
Wolfram Schneider fe0614bf6e 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
Wolfram Schneider 728999c8b2 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
Bruce Evans 87d0dcafca 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
John Fieber 29c8b5b52b Add missing tmac.lj4 (for PCL driver) 1996-09-11 22:16:59 +00:00
Peter Wemm aaa315477e add bison, gperf 1996-09-10 14:04:37 +00:00
Peter Wemm 4a82da6962 add bmakefiles 1996-09-10 14:03:12 +00:00
Peter Wemm 78c10f4a0d Add bmakefiles to compile bison. 1996-09-10 13:23:46 +00:00
Poul-Henning Kamp b6b34a5e0f DISTDIR is a reserved variable for make release
s/DISTDIR/DIST_DIR/g
1996-09-09 18:05:29 +00:00
Paul Traina de906456ec long live groff 1996-09-08 01:30:16 +00:00
Paul Traina f7c160386a ...long live groff 1996-09-08 01:27:58 +00:00
Paul Traina e72c5689b0 Initial revision 1996-09-08 01:21:19 +00:00
Paul Traina c8f36f3496 Groff is dead... 1996-09-08 01:09:04 +00:00
Paul Traina 604a5013e8 Add Russian language / koi8-r font support.
Original author: ache
1996-09-08 00:28:32 +00:00
Paul Traina b3e7b046b0 Add psroff command 1996-09-08 00:26:24 +00:00
Jordan K. Hubbard e36f5f6c56 Make button highlighting more visible on B/W displays. 1996-09-06 09:36:45 +00:00
Bruce Evans 5b963fa12e Fixed DPADD. 1996-09-05 17:16:10 +00:00
Peter Wemm f9079aa26a forgot to reconnect easy-import to the Makefile 1996-09-05 08:43:50 +00:00
Jordan K. Hubbard 09059a0b45 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 Wemm 20c5124b62 missed these parts of Bruce's changes last time..
Submitted by: bde (again :-)
1996-08-30 21:57:39 +00:00
Peter Wemm bc4c97465a consistancy fixup
Submitted by: "Philippe Charnier" <charnier@xp11.frmug.org>
1996-08-30 21:21:52 +00:00
Peter Wemm d49112c5f1 Too verbose, typo (I missed the -C :-)
Submitted by: bde
1996-08-30 19:26:49 +00:00
Andrey A. Chernov c86058f16c 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 Wemm f5c123203e cmp -s || install -c -> install -C 1996-08-30 03:12:16 +00:00
Peter Wemm 0d1e50ffbc 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 Wemm 1153e298b7 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 Wemm 345be915f7 cmp -s || install -c ==> install -C 1996-08-30 02:12:07 +00:00
Wolfram Schneider b8923d4cc0 [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
Wolfram Schneider a0228a8384 add Version 1 AT&T UNIX to .At macro 1996-08-28 22:37:00 +00:00
Andrey A. Chernov 38005cc510 Keep in sync with latest bash 1996-08-28 15:47:16 +00:00
Bruce Evans e8caab9f75 Don't install zgrep twice. 1996-08-28 15:45:32 +00:00
Wolfram Schneider 5a80fb277e sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
Peter Wemm 8c2e11aad8 Ack! Don't install cvs.info.gz etc in /usr/bin... 1996-08-21 00:57:26 +00:00
Peter Wemm 3c29b67696 Make the CVSvn.texi dependency hack work a little better.. 1996-08-21 00:35:53 +00:00
Peter Wemm 3ea3e5fcb4 Oops, forgot to 'cvs add' this one. 1996-08-21 00:04:28 +00:00
Peter Wemm 8787dbbafe Update to use the cvs-1.8.1 sources from src/contrib/cvs 1996-08-20 23:58:03 +00:00
Joerg Wunsch 8048172ded Ensure at least one space between the module name and the module path.
Detected by: asami
1996-08-20 20:37:47 +00:00
Andrey A. Chernov 587ad47a9b Pick collate info fo ranges 1996-08-20 14:22:57 +00:00
Wolfram Schneider 361e0905ef make install should not install any file in /etc. 1996-08-17 22:27:08 +00:00
Andrey A. Chernov f1eecc5283 8bit clean ctype fixes 1996-08-15 22:55:53 +00:00
Andrey A. Chernov 280117ea07 Localization fixes 1996-08-15 22:49:46 +00:00
Andrey A. Chernov ec5326ee9b Localization fixes. 1996-08-15 22:11:36 +00:00
Andrey A. Chernov c368dc7c7e Use collate for alpha character ranges 1996-08-13 14:33:05 +00:00
Andrey A. Chernov 5dc826672f Use collate for alpha character ranges 1996-08-13 14:21:48 +00:00
Jordan K. Hubbard 71a074386a Reverse my patch which erroneously removed the library dependencies
for a library.  They're needed.
1996-08-13 12:46:10 +00:00
Chuck Robey a194eef2f8 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
Andrey A. Chernov 5f02527325 Convert to newly aded collate compare function 1996-08-12 19:12:40 +00:00
Andrey A. Chernov 38378332f6 Convert to newly aded collate compare function 1996-08-12 19:04:24 +00:00
Andrey A. Chernov a0ef95d4b3 Use collate for alpha character ranges 1996-08-12 18:03:54 +00:00
Andrey A. Chernov 83d7542f35 Pick collate info too 1996-08-12 17:55:41 +00:00
Jordan K. Hubbard 8a80fd427c Throw some unnecessary dreck out of this Makefile. 1996-08-11 17:21:20 +00:00
Satoshi Asami e0ad632569 The default editor is "vi", not "/usr/ucb/vi". 1996-08-09 09:00:41 +00:00
Jordan K. Hubbard d670a62ab5 Remove mkisofs from Makefile 1996-08-08 02:21:06 +00:00
Jordan K. Hubbard 64cb11c442 bye bye mkisofs! 1996-08-08 01:52:52 +00:00
Paul Traina 50893e50e2 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
Paul Traina ca9baf71f2 Bring xditview back from the grave (1 of 2 commits). 1996-08-05 00:42:06 +00:00
John Polstra dc38658703 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
Jordan K. Hubbard 526195ad0d General -Wall warning cleanup, part I.
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
1996-07-12 19:08:36 +00:00
Jordan K. Hubbard 15232ab26e 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
Jordan K. Hubbard 1cca289947 Fix a couple of whoopers which somehow went undetected until now. 1996-07-11 11:15:28 +00:00
Mike Pritchard 834c252e5c Teach the mdoc .Os and .Fx macros about the FreeBSD 2.1.5 release. 1996-07-10 23:53:13 +00:00
Andrey A. Chernov 21045c6802 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
Wolfram Schneider e3908fd51f add manpage getNAME(1) 1996-07-08 20:18:28 +00:00
Wolfram Schneider bfab15f069 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
Jordan K. Hubbard 3bd9961585 Add missing dialog_clear() calls. 1996-07-05 07:42:23 +00:00
Wolfram Schneider bb9656377b install fast version of zgrep 1996-07-02 23:01:01 +00:00
Jordan K. Hubbard 73410b698a Round out the examples a little better in showing custom buttons in operation
more than once.
1996-07-02 01:03:56 +00:00
Wolfram Schneider 141f35e88e checklog - extract your commits from commitlogs archive 1996-06-30 11:51:41 +00:00
Joerg Wunsch 6d41a714b2 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 Williams 11b7f01b8f 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
Jordan K. Hubbard cd9a2f5c28 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
Andrey A. Chernov 14970a0492 Back out security changes until pst review them 1996-06-22 21:10:19 +00:00
Andrey A. Chernov 55c148f316 Do not produce empty cat file in debug mode 1996-06-22 08:05:11 +00:00
Gary Palmer 372fa2cd81 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
Andrey A. Chernov b08645daa4 Close security holes and restore suid bit
Restore writting cat's functionality
1996-06-21 18:49:36 +00:00
Jordan K. Hubbard faf4b6d3b5 Nuke xditview. It was in the same category as xroach.
Screeched-For By: Michael Smith
1996-06-16 13:15:35 +00:00
Andrey A. Chernov a43ba36d4f Increase performance using pre-calculated collate table 1996-06-10 01:32:40 +00:00
Andrey A. Chernov 9cca9761a6 Follow alphabetical order more closely, now ISO8859-1 characters
sorted properly too.
1996-06-09 18:55:57 +00:00
Andrey A. Chernov 089fdd06d3 Compare 8bit alpha characters alphabetically using strcoll() 1996-06-09 16:19:08 +00:00
Bruce Evans d85327d7bc 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
Bill Paul a13bb127d2 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
Gary Palmer b9d38b0c2f Use setreuid instead of seteuid for permissions management 1996-06-02 19:59:26 +00:00
Lars Fredriksen 24161867cf 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