Commit Graph

1131 Commits

Author SHA1 Message Date
Bill Paul
5028f8616a Close PR #853. The services.byname case needs to greate keys in the form
'service/transport' (i.e. telnet/tcp) instead of just 'service.'
1995-12-09 19:25:00 +00:00
Peter Wemm
3ffece8c26 Restore white spaces to original cvs-1.4Alpha2 state so that we can
deal with the cvs-1.6 (and beyond) imports more cleanly and safely.
1995-12-03 14:17:06 +00:00
Andrey A. Chernov
4d9c923ce7 Add fixes from bash beta
Back out trailing spaces changes
1995-12-03 00:09:12 +00:00
Jordan K. Hubbard
bfb5faf86d gets() -> fgets() 1995-12-01 08:26:36 +00:00
Jordan K. Hubbard
d7c4e4ec1e gets() -> fgets() 1995-12-01 08:19:12 +00:00
Jordan K. Hubbard
9f07bf9833 Comment out /usr/X386/man entry from MANDATORY_MANPATH - it's obsolete.
Submitted by:	mi@ALDAN.star89.galstar.com
1995-11-28 19:03:20 +00:00
Bruce Evans
89e36521ab Fixed beforeinstall rule. .CURDIR was spelled .SRCDIR.
Changed beforeinstall rule to use `install -C' instead of `cmp -s'
and `install -c'.  `install -C' has exactly the right semantics
for installing headers and should be used elsewhere.
1995-11-26 09:51:42 +00:00
Peter Wemm
3c64c6ee8d Part two of a repository operation to sort out the libmp/libgmp builds.
After this commit, you should be able to build libmp and libgmp independently
and without being forced to do a make depend first..
1995-11-25 00:14:03 +00:00
Mark Murray
12e4d1a6e7 BBild libgmp from the sources already in ../libmp. 1995-11-13 19:13:19 +00:00
Mark Murray
1191aefe58 Add libgmp. 1995-11-13 19:12:10 +00:00
Mark Murray
4accbdcc20 Make the tests work. libmp and libgmp must be installed for this
to work.
1995-11-13 18:42:24 +00:00
Mark Murray
2becfa2b3c Build the TeXinfo manual 1995-11-13 18:40:45 +00:00
Mark Murray
638ddb0f0e 1) Add the doc/subdirectory - this will get gmp.texi installed
2) Clean up the Makefile - libgmp is coming!
1995-11-13 18:39:23 +00:00
Mark Murray
58cf3c925d Add libmp 1995-11-12 15:03:50 +00:00
Mark Murray
43f0bbcd01 BMake the multiprecision library, and fix as many of the -Wall warnings
as is now feasable.
1995-11-12 14:55:48 +00:00
Mark Murray
ae82e96f8c GNU MP (Multiprecision) library. This is needed by secure RPC (being
done by Bill Paul) and various other BSD programs.
Obtained from:FSF
1995-11-12 14:40:41 +00:00
Nate Williams
1e37fc9d59 Changed the terminology for what used to be called the "memorizing"
vector.  Now it is called the "symbol caching" vector.  This was made
possible and unconfusing by other changes that allowed me to localize
everything having to do with the caching vector in the function
reloc_map().

Switched to alloca() for allocating the caching vector, and eliminated
the special mmap-based allocation routines.  Although this was motivated
by performance reasons, it led to significant simplification of the
code, and made it possible to confine the symbol caching code to the
single function reloc_map().

Got rid of the unnecessary and inefficient division loop at the
beginning of rtld().

Reduced the number of calls to getenv("LD_LIBRARY_PATH") to just 1, on
suggestion from <davidg@root.com>.

Added breaks out of the relocation loops when the relocation address is
found to be 0.  A relocation address of 0 is caused by an unused
relocation entry.  Unused relocation entries are caused by linking a
shared object with the "-Bsymbolic" switch.  The runtime linker itself
is linked that way, and the last 40% of its relocation entries are
unused.  Thus, breaking out of the loop on the first such entry is a
performance win when ld.so relocates itself.  As a side benefit, it
permits removing a test from md_relocate_simple() in
../i386/md-static-funcs.c.

Unused relocation entries in other shared objects (linked with
"-Bsymbolic") caused even bigger problems in previous versions of the
runtime linker. The runtime linker interpreted the unused entries as if
they were valid. That caused it to perform repeated relocations of the
first byte of the shared object.  In order to do that, it had to remap
the text segment writable.  Breaking out of the loop on the first unused
relocation entry solves that.

Submitted by:	John Polstra <jdp@polstra.com>
1995-11-02 18:48:15 +00:00
Andrey A. Chernov
46e838403c Add setlocale LC_CTYPE 1995-10-31 08:44:21 +00:00
Peter Wemm
9a4fe3afc6 Remove the $ Log: ... $ lines from the comments in the files that had
them.  Good greif! This was causing an unimaginable amount of brain-damage!
The mere fact that I griped about $ Log $ in a previous commit (misspelled
deliberately here) meant that the blasted thing was being expanded from the
middle of the log entry as well as the beginning, and using " * All these"
as the comment leader..  AARGH!!!!  We *really* need to prevent these from
being expanded! (or remove the magic identifier from the source).
1995-10-29 22:06:48 +00:00
Peter Wemm
9968a350e9 Recover the -K option to co, for handling selective keyword expansion. 1995-10-29 19:31:11 +00:00
Peter Wemm
aac6d18515 Restore phk's changes from 1.3 - 1.5.. Adds a -v switch to rlog to get it
to print the current version of the RCS files.
1995-10-29 18:07:04 +00:00
Peter Wemm
718c96d308 Restore nate's change from rev 1.2; improve readability of the rlog output
(adds a short row of dashes in a place that CVS and RCS dont mind)
1995-10-29 17:56:28 +00:00
Peter Wemm
39db722b77 Build and install diff.info..
As Bruce said, this is a little bogus, it'd be nice if bsd.prog.mk knew
about .texi in the same way as it does man pages..

Submitted by: bde
1995-10-29 09:08:35 +00:00
Peter Wemm
d4722af88f Import diff-2.7's diff.texi which I left out last time.
Suggested by: bde
1995-10-29 08:52:27 +00:00
Peter Wemm
d0a68277c8 This commit was generated by cvs2svn to compensate for changes in r11905,
which included commits to RCS files with non-trunk default branches.
1995-10-29 08:52:27 +00:00
Peter Wemm
066972d847 AARGH!!!!
Fix the hard-coded pathname to /usr/local/bin/co and /usr/local/bin/merge
that I missed...
1995-10-29 08:35:51 +00:00
Peter Wemm
d2be861745 First part of import conflict merge from rcs-5.7 import.
All those $Log$ entries, combined with the whitespace changes are a real
pain.

I'm committing this now, before it's completely finished to get it compiling
and working again ASAP.  Some of the FreeBSD specific features are not working
in this commit yet (mainly rlog stuff and $FreeBSD$ support)
1995-10-28 21:50:58 +00:00
Peter Wemm
5b4f007e0b Import rcs-5.7, required for full support of cvs-1.6.
This is going to be pretty messy....  Although the vendor import was correct,
both the vendor and release tags are the same "gnu"... :-/
Getting cvs to choose the correct one might be rather interesting...
1995-10-28 21:07:39 +00:00
Peter Wemm
7603e8a868 This commit was generated by cvs2svn to compensate for changes in r11891,
which included commits to RCS files with non-trunk default branches.
1995-10-28 21:07:39 +00:00
Andrey A. Chernov
febbdcfd7b Add setlocale LC_CTYPE 1995-10-28 19:44:29 +00:00
Andrey A. Chernov
021d0b0c13 Add setlocale LC_CTYPE
Fix ctype functions for 8bit charsets
1995-10-28 19:29:58 +00:00
Andrey A. Chernov
9203a11a55 Add setlocale LC_CTYPE
Fix icase searches for 8bit charsets
1995-10-28 19:16:14 +00:00
Peter Wemm
efce212686 Merge in/out comflicts caused by Diffutils-2.7 import...
In future, it should be as easy as "update -j ....", but this time I had to
go over it by hand.  Not nice..
1995-10-28 19:11:01 +00:00
Peter Wemm
ec9763539f Import GNU diffutils 2.7
Note, this is going to be messy.. 2.3 was vendor-branch imported, while
2.6 was done as a delta. Sigh.  I'm importing this on a vendor branch so
that it will be easier to deal with next time..

(cvs-1.6 wants rcs-5.7, and rcs-5.7 suggests diffutils-2.7)
1995-10-28 18:51:33 +00:00
Peter Wemm
ffb120cc30 This commit was generated by cvs2svn to compensate for changes in r11884,
which included commits to RCS files with non-trunk default branches.
1995-10-28 18:51:33 +00:00
Andrey A. Chernov
404392d45c Add setlocale LC_CTYPE 1995-10-28 14:30:50 +00:00
Andrey A. Chernov
5e45342eb4 Simplify FILES section in the same manner like groff manpage
does, add more koi8-r references
1995-10-28 12:56:05 +00:00
Andrey A. Chernov
102a0c6fe0 Add reference to koi8-r device, fix formatting a little 1995-10-28 12:49:38 +00:00
Andrey A. Chernov
dd724f1d0c Add reference to koi8-r device 1995-10-28 12:41:56 +00:00
Bill Paul
059a9bc2bb Add preliminary support for netgroup.byuser and netgroup.byhosts maps.
(I have to make another pass through here soon; awk doesn't handle
lines broken up with '\', which can sometimes appear in netgroup maps.)
1995-10-26 18:00:35 +00:00
Andrey A. Chernov
e931854069 Add setlocale LC_ALL 1995-10-26 11:12:39 +00:00
Andrey A. Chernov
ddfbe6be8d Add setlocale LC_ALL 1995-10-26 10:59:43 +00:00
Nate Williams
468f82b316 Run-time linker speedups - Round One
Implemented symbol memorizing to reduce the number of calls to lookup(),
making relocation go faster.  While relocating a given shared object,
the dynamic linker maintains a memorizing vector that is directly
indexed by the symbol number in the relocation entry.  The first time a
given symbol is looked up, the memorizing vector is filled in with a
pointer to the symbol table entry, and a pointer to the so_map of the
shared object in which the symbol was defined.  On subsequent uses of
the same symbol, that information is retrieved directly from the
memorizing vector, without calling lookup() again.

A symbol that is referenced in a relocation entry is typically
referenced in many relocation entries, so this memorizing reduces the
number of calls to lookup() dramatically.  The overall improvement in
the speed of dynamic linking is also dramatic -- as much as a factor of
three for programs that use many shared libaries.

Submitted by:	jdp@polstra.com "John Polstra"
1995-10-25 16:16:35 +00:00
Torsten Blum
59f0c0d522 fix bad dependencies (LIBMATH -> LIBM) 1995-10-25 15:08:21 +00:00
Torsten Blum
cef6c97a61 Fix a typo ("-It Fl" to ".It Fl")
document the "-P" switch

Obtained from: the NetBSD bugs mailinglist
1995-10-25 02:17:44 +00:00
Andrey A. Chernov
a4057ed8d3 Remove LD_NOSTD_PATH implementation, it isn't works and
can cause some problems.
Suggested-by: davidg
1995-10-24 06:48:16 +00:00
Bill Paul
da7408fc6d Add support for publickey.byname map (turned off by default since
we haven't imported the Secure RPC stuff yet).
1995-10-23 16:13:53 +00:00
Bill Paul
99bf54399a Eek! When we encounter a '+' or '-', the resulting action should be
'continue' rather than 'break'.
1995-10-23 16:03:41 +00:00
Bruce Evans
178d6c8706 Remove includes of the wrong ../Makefile.inc (one was commented out, the
other was in the wrong order).
1995-10-22 18:28:10 +00:00
Joerg Wunsch
215568d2a2 Merge version 1.04 into HEAD. 1995-10-22 14:04:37 +00:00
Joerg Wunsch
56c256e933 This commit was generated by cvs2svn to compensate for changes in r11646,
which included commits to RCS files with non-trunk default branches.
1995-10-22 10:11:03 +00:00
Joerg Wunsch
3f2e9a763f Import version 1.04 of mkisofs.
This is a vendor-branch import by now, the merge with our regular
tree will happen later.

Obtained from: Eric Youngdale of Yggdrasil Computing Inc.
1995-10-22 10:11:03 +00:00
Bruce Evans
02b537bd23 Remove private maninstall target. It will conflict with the one in
bsd.man.mk when I change the latter to use `::' instead of `:'
dependencies.  (bsd.man.mk is included because NOMAN isn't defined.
The maninstall target is supposed to be private to bsd.man.mk so
bsd.man.mk doesn't bother testing if it is already defined.  The
test for redefinition in Makefile.dev was too early to do anything.)

Change install target to a beforeinstall target (perhaps there should
be an `extrainstall' target so that Makefiles don't have to abuse
one of beforeinstall, install, realinstall or afterinstall).  Don't
bother testing for the install target already being defined.  Rewrite
the shell loop as a make loop (this reduces the time for installing
groff from 78s to 65s here).
1995-10-21 16:26:38 +00:00
Andrey A. Chernov
b2105a0990 if uid != euid or gid != egid unsetenv("LD_NOSTD_PATH") too 1995-10-21 14:52:48 +00:00
Bruce Evans
03e5b81db4 Rewrite and merge some bogus makefiles to create Makefile.shprog. Just
include this in the old makefiles.

I intended to fix only the private maninstall rule but found a lot of
other bogons and bugs:
- strong resistance to installing the program anywhere other than
  ${DESTDIR}/usr/bin (first, ../../Makefile.inc was not included.
  ../Makefile/inc was redundantly included instead.  Second, /usr/bin
  was hard coded).
- the owner, group and permissions were hard coded.
- the man page was installed twice.
- MANDEPEND wasn't necessary.
- calculations to determine the obj directory weren't necessary.
- there were unnecessary private rules for depend, rcsfreeze and tags.
  We don't support the rcsfreeze target.
- there was an extra, bogus, rule for `all'.

The final version uses suffix rules to eliminate the remaining verboseness
involving directories (${.CURDIR}) and to potentially allow multiple
shell programs in one directory.
1995-10-21 14:27:19 +00:00
David Greenman
694ae82790 When building -static, link with special scrt0.o instead of crt0.o. This
reduces the text size by about 1.5Kbytes.
1995-10-18 04:28:31 +00:00
Bill Paul
36b2e7c238 A one-liner:
We already check for (and reject entries with) '+' or '-' as the first
character of the key side of the key/data pair; we should check the data
side too. (Letting spurious +/- entries into the NIS maps is bad karma.)
1995-10-11 14:30:51 +00:00
Gary Clark II
171a357ba5 Change UNIX to FreeBSD.
I got tired of see ``UNIX System Managers Manual''

NOTE: There still a couple of UNIXs left in here.  There deal with the
documents.  We may want to change there also, even though VERY little of there
even pertain to FreeBSD.
1995-10-10 11:34:10 +00:00
Nate Williams
c68c38c86b This is a FreeBSD manpage, not a NetBSD manpage. :) 1995-10-05 05:16:52 +00:00
Garrett Wollman
401a157932 Make cc1plus smaller and faster as was done for cc1 by linking static. 1995-10-02 16:37:16 +00:00
David Greenman
1661971e0f Build cc1 nonshared. This actually results in it consuming 40K *less* disk
space and improves compile times by a few percent.
1995-10-01 20:16:27 +00:00
Bruce Evans
7da87484df Fix checks for open() failing. open() may successfully return 0.
ld.c:
Fix a an error message that said that open() failed after fopen() failed.
1995-09-28 19:43:22 +00:00
Bruce Evans
252eedb90d Intitialize $(tmac_s_ and $(tmac_m). Use the initialized variable $(device)
instead of the uninitialized one $(DEVICE).

I hoped these changes would fix some of the large runtime macro processing
bugs, but they seem to only fix some small build-time macro substitution
bugs.  E.g., `man ms' now tells you to invoke groff with the flags `-ms'
instead of the bogus flags `-m'; `man groff now tells you that the default
device is `ps' instead of the bogus device `'.
1995-09-28 19:31:07 +00:00
Nate Williams
6f5457454c Make the error message more readable when 'ld.so' cannot locate a needed
shared library.  Formerly, the message looked like this:

    ld.so: run: libjdp1.so.1.0: Undefined error: 0

The new message looks like this:

    ld.so: run: Can't find shared library "libjdp1.so.1.0"

(Where "run" is the name of the program being executed.)

Submitted by:	jdp@polstra.com (John Polstra)
1995-09-27 23:17:33 +00:00
Nate Williams
e1ec3d8b3c Fixup the "ld.so failed" message for the case when ld.so finds undefined
symbols.

An easy example to see this is to develop an X program which links
against Xt, but doesn't add -lX11 to the link line.  It will link fine,
but cause run-time errors by ld.so because of missing symbols used by Xt
defined in X11.  This patch makes the errors more readable.

Submitted by:   jdp@polstra.com (John Polstra)
1995-09-27 23:14:08 +00:00
Bill Paul
336844dba4 phkmalloc strikes!
#ifdef out a number of calls to free() left over from the original
GNU ypserv implementation. As near as I can tell, the Berkeley DB
package does its own garbage collection, hence the caller doesn't
have to worry about free()ing the memory returned in the DBT
structures during lookups (I'm still not 1005 sure about this:
the DB code is very hard to follow. I must use dynamically
allocated memory since you can retreive arbitrarily large records
from a database, but I'm not sure where it ends up letting go
of it). This was not true with GDBM; you had
to do your own garbage collection.

The general rule is that if you allocate memory inside an RPC
service routine, you have to free() it the next time the routine is
called since the underlying XDR routines won't do it for you.
But if the DB package does this itself, then we don't need to do
it in the main program.

Note that with the original malloc(), there were never any errors
flagged. phkmalloc complained quite loudly.
1995-09-24 17:21:52 +00:00
Poul-Henning Kamp
0ad2ff70ee Stop using gnumalloc. 1995-09-22 14:14:32 +00:00
Andrey A. Chernov
44ac4ef672 Make it sgid dialer to read lockfiles 1995-09-15 00:05:07 +00:00
Andrey A. Chernov
f73f49f214 Make cu/uucico sgid dialer to help to work with others lockfiles,
they can't open root.dialer lockfiles in old variant.
1995-09-14 22:18:39 +00:00
Justin T. Gibbs
312b98f6bb Give "Index" specified filenames preference over other filenames specified
in the diff.  This makes it so that diffs containing files in different
subdirectories that have the same name not patch the same file.  For example
a diff with patches to Makefile, des/Makefile, usr.bin/Makefile would attempt
to patch Makefile three times.
1995-09-14 04:33:35 +00:00
Bruce Evans
3eb77f2c54 Output a zero rdev except for bdevs, cdevs, fifos and sockets. This
stops regular files with unrepresentable rdevs from being rejected
and makes the output independent of unpreservable metadata.
1995-09-12 16:38:16 +00:00
Joerg Wunsch
6f4da234fb Fix a few minor bugs in makewhatis.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-09-10 13:05:52 +00:00
Joerg Wunsch
60ce5bccf0 Re-initialize the terminal after ^Z / fg.
Submitted by:	thomas@ghpc8.ihf.rwth-aachen.de (Thomas Gellekum)
1995-09-10 13:04:45 +00:00
Peter Wemm
608eba4889 Put a bandaid on the NULL pointer dereference caused by doing an
"update -jHEAD" when a file has been added on the specified tag.

It doesn't actually make cvs 'handle' it, it just stops it from dying
and leaving stray locks and other wreckage.

This was suggested by the CVS maintainers, and is in cvs-1.5.1-950901.
1995-09-03 05:05:31 +00:00
Jordan K. Hubbard
4f898a4b38 Add MLINKS for sendbug manpage.
Suggested by:	paul
1995-08-29 13:01:40 +00:00
Jordan K. Hubbard
38f7fda14c Link send-pr to sendbug. sendbug is back! hurrah! 1995-08-28 23:16:28 +00:00
Joerg Wunsch
19d57e6d9d Import Paul Kranenburg's man page for ld.so (aka. rtld).
Obtained from:	NetBSD
1995-08-26 13:17:39 +00:00
Paul Traina
985c84c80e Clean up compilation warnings. 1995-08-23 05:37:24 +00:00
Paul Traina
3dcf64dcf0 Fix compilation warnings. 1995-08-23 05:35:03 +00:00
Andrey A. Chernov
2ac29091ed Upgrade 1.06 -> 1.06.1 1995-08-21 11:28:26 +00:00
Andrey A. Chernov
2bcf7e034b Fix LEGAL_GRADE determination, isalnum can return true when national
environment is active
1995-08-19 22:08:38 +00:00
Andrey A. Chernov
6ec4b3339b Commit delta: current -> 1.06 + FreeBSD configuration 1995-08-19 21:30:30 +00:00
Joerg Wunsch
1c7895ac54 Reset the umask before creating the output file; otherwise running
ldconfig as root with a restrictive umask yielded ld.so.hints
unreadable by the world (and thus useless).
1995-08-16 06:31:50 +00:00
Peter Wemm
f4df6549b2 This changes two things when importing an unreadable file:
1: It stops invalid files being created in the cvs tree
2: It stops the import from aborting without mailing a commit message..

The first is simple, it opens the file for reading before touching the
repository, and the second catches the pieces when it hits an unreadable
file rather than just aborting mid-way through, leaving the repository in
a bit mess.

Reviewed by:	rgrimes
1995-08-15 20:38:00 +00:00
Bill Paul
82b7305d30 Fix bug pointed out by user on c.u.b.f.m: commenting out NOPUSH=true
for master/slave configuration doesn't work because DOMAIN isn't
correctly defined.
1995-08-11 13:55:42 +00:00
Andrey A. Chernov
668eb4585f Replace ctime by strftime %c to use national representation 1995-08-08 03:20:25 +00:00
Andrey A. Chernov
6de8ce1a74 Replace ctime by strftime %c to use national representation 1995-08-08 03:07:15 +00:00
Bruce Evans
97cefc5891 Install source files with the -c flag, not with the optional flag ${COPY}. 1995-08-06 12:37:41 +00:00
Bruce Evans
48cfb668fc Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.

Previously I missed dozens of Makefiles that skip the install after
using `cmp -s' to decide that the install isn't necessary.
1995-08-06 12:24:38 +00:00
Joerg Wunsch
6aefd62078 Make only a -r' flag (as opposed to -r*') special within the
LINK_SPEC.  This solves a problem with the f77 frontend where
aproviding the -r8 option (use REAL*8) caused `cc' to ``forget'' to
pass the entry point to the linker.

Closes PR #gnu/644: f77 -r8

Reviewed by:	watanabe@komadori.earth.s.kobe-u.ac.jp (Takeshi WATANABE)
1995-08-04 17:11:32 +00:00
Paul Traina
522aab930c Don't build xditview unless the actual include files for X11 are present.
Merely checking for the directory is -not- sufficient, since the XFree86
non-programmers distribution has that directory to hold bitmaps.
1995-07-29 17:47:53 +00:00
Bruce Evans
9c0dc173cc Change install' to ${INSTALL}' so that default install flags can be
specified in the top level Makefiles.
1995-07-25 00:37:58 +00:00
Bruce Evans
db1e9e9ea9 Change install' to ${INSTALL}' as usual.
Use -c, not ${COPY}, to install `dir'.  ${COPY} should never be used to
install source files.  The source might be lost if the default is overridden.
1995-07-25 00:12:06 +00:00
Bruce Evans
ddb43e8bd8 Change install' to ${INSTALL}' as usual.
Don't remove targets before installing.  Removing targets will defeat
`install -C'.
1995-07-24 23:51:48 +00:00
Joerg Wunsch
37e0d97047 Make the tag checks more strict according to Rod's wishes.
Reviewed by:
Submitted by:
Obtained from:
1995-07-23 17:34:00 +00:00
Bill Paul
76064c01e5 Updates, fixes and cleanups -- oh my.
In ypserv:

yp_svc.c:
- small signal handler tweak (hopefully the last): just use sigemptyset()
to clear sa_mask.

Makefile.yp:
- Let the user specify the location of master.passwd when updating
maps (e.g. make MASTER_PASSWD=/some/path/to/master.passwd). Editing
the file to change the location of master.passwd still works. This
is mostly to let yppassswdd specify the name of the master.passwd
file itself.

In yppasswdd:

yppasswdd.c:
- Roll in some minor changes (mostly casts) from Olaf Kirch's latest
yppasswd package release (version 0.7).
- Use daemon() instead of doing all the deamonizing gruntwork ourselves.
- Call pw_init() after daemonizing ourselves. pw_init() sets up some
resource limits and blocks some signals for us. We used to do this before
every password change, but there's really no point in calling it more
than once during the life of the program.
- Change install_reaper() so that we can use it to de-install the SIGCHLD
handler if we need to (and we do in pw_mkdb() -- this is what I get for
splicing code from two different programs together).
- Use sigemptyset(&act.sa_mask) rather than act.sa_mask = 0: the latter is
decidedly non-portable. (In IRIX, HP-UX and Solaris, sigset_t is an
array of longs, not an int.)

update.c:
- Roll in change from new version (check that we're not modifying an NIS
entry in validate_args()).
- Get rid of call to pw_init() (moved to yppasswdd.c).
- Check return values from pw_util routines and return error status to
yppasswd clients if there's a problem.
- Straighten out password file copying mechanism a little. Keep a grip
on the original password file rather than summarily overwriting it so
that we can restore everything if we fail to fork() a process to update
the NIS maps.
- Pass the name of the password template file (specified with -m or
/etc/master.passwd by default) to the yppwupdate script, which in
turn should now pass it to /var/yp/Makefile.

pw_util.c:
- Nuke the pw_edit() and pw_prompt() functions -- we don't need them.
- Change all warn()s, warnx()s and err()s to syslog()s.
- Make sure we return error status to caller rather than bailing out
in pw_lock() and pw_tmp().
- Don't block SIGTERM in pw_init() (by ignoring SIGTERM, we prevent
yppasswdd from being shut down cleanly).
- Don't let pw_error() exit. (This stuff was stolen from chpass and vipw
which are interactive programs; it's okay to let pw_error() bail out
for these programs, but not in a daemon like yppasswdd).
- Fix signal handling in pw_mkdb (we need to temporarily de-install the
SIGCHLD handler so that we can wait on the pwd_mkdb child ourselves).

pw_copy.c:
- Change all warn()s, warnx()s and err()s to syslog()s.
- Add a bunch of returns() and make pw_copy() return and int ( 0 on success,
-1 on failure) so that update.c can flag errors properly.
- Return -1 after calling pw_error() to signal failures rather than
relying on pw_error() to bail out.
- Abort copying if we discover that we've been asked to change an entry
for a user that exists in the NIS passwd maps but not in the master.passwd
template file. This can happen if the passwd maps and the template file
fall out of sync with each other (or if somebody tries to spoof
us). The old behavior was to create add the entry to the password file,
which yppasswdd should not do under any circumstances.

Makefile:
- update VERSION to 0.7

yppasswdd.8:
- fix typo (forgot a carriage return somewhere)
- remove bogus reference to pwunconv(8) which FreeBSD doesn't have.
- bump version from 0.5 to 0.7
- Reflect changes in password file handling.

yppwupdate:
- Log map rebuilds to /var/yp/ypupdate.log.
- Pass the name of the template password file to /var/yp/Makefile as
$MASTER_PASSWD.
1995-07-19 17:44:41 +00:00
Andrey A. Chernov
622a231988 Update version info
Reviewed by:
Submitted by:
Obtained from:
1995-07-19 17:01:56 +00:00
Andrey A. Chernov
5d633ee823 Sync with bash 1.4.5 version
Check some null pointers before action, cosmetique fixes
Submitted by:
Obtained from:
1995-07-19 17:01:18 +00:00
Joerg Wunsch
d6d2ae6a56 Remove my last week's CFLAGS hack from Makefile.inc, and fix
info/Makefile instead to not clobber the settings inherited from
/etc/make.conf.
1995-07-16 10:24:18 +00:00
Bill Paul
1ede0846a7 Some small signal handling tweaks: be sure to keep wait3()ing until all
children are reaped and make sure to block SIGCHLD delivery during handler
execution when installing SIGCHLD handler with sigaction().
1995-07-15 23:27:49 +00:00
Bill Paul
c0837c7e13 Add missing 'break' statement in failure case of ypxfr switch clause. 1995-07-15 17:51:11 +00:00
Bill Paul
2c9d7bb779 server.c: When 'securenets' (actually TCP_WRAPPERS) is enabled, don't
syslog connections unless they were rejected. This helps save wear and
tear on the syslog facility in large networks with many clienst systems.

yp_svc.c: Be a little smarter about using sigaction() -- set the SA_RESTART
flag.

svc_run: Be doubly paranoid about killing off child processes. Do a flag
chack and a pid check before letting child 'threads' self-destruct.
1995-07-14 01:56:51 +00:00
Rodney W. Grimes
c7e5c6a843 Make ld's error messages consistent with gcc when no input files
are given on the command line.

Submitted by:	Thomas Graichen <graichen@omega.physik.fu-berlin.de>
1995-07-13 08:30:07 +00:00
Bruce Evans
fce8868368 Fix dependencies for regex.texi. It is constructed by merging a C header
file with an info source file.
1995-07-12 19:02:06 +00:00
Bruce Evans
460396d6ee Fix dependencies for gcc.info and reno.info. `make depend' doesn't handle
info files although texinfo supports @include.
1995-07-12 18:57:21 +00:00
Bill Paul
e1086b16a9 ypserv performance improvements:
- There are two cases where the server can potentially block for a long
  time while servicing a request: when handling a yp_all() request, which
  could take a while to complete if the map being transfered is large
  (e.g. 'ypcat passwd' where passwd.byname has 10,000 entries in it),
  and while doing DNS lookups when in SunOS compat mode (with the -dns
  flag), since some DNS lookups can take a long time to complete. While
  ypserv is blocked, other clients making requests to the server will
  also block. To fix this, we fork() ypall and DNS lookups into subprocesses
  and let the parent ypserv process go on servicing other incoming
  requests.

  We place a cap on the number of simultaneous processes that ypserv can
  fork (set at 20 for now) and go back to 'linear mode' if it hits the
  limit (which just means it won't fork() anymore until the number of
  simultaneous processes drops under 20 again). The cap does not apply
  to fork()s done as a result of ypxfr calls, since we want to do our
  best to insure that map transfers from master servers succeed.

  To make this work, we need our own special copy of svc_run() so that
  we can properly terminate child processes once the RPC dispatch
  functions have run.

  (I have no idea what SunOS does in this situation. The only other
  possibility I can think of is async socket I/O, but that seems
  like a headache and a half to implement.)

- Do the politically correct thing and use sigaction() instead of
  signal() to install the SIGCHLD handler and to ignore SIGPIPEs.

- Doing a yp_all() is sometimes slow due to the way read_database() is
  implemented. This is turn is due to a certain deficiency in the DB
  hash method: the R_CURSOR flag doesn't work, which means that when
  handed a key and asked to return the key/data pair for the _next_
  key in the map, we have to reset the DB pointer to the start of the
  database, step through until we find the requested key, step one
  space ahead to the _next_ key, and then use that. (The original ypserv
  code used GDBM has a function called gdbm_nextkey() that does
  this for you.) This can get really slow for large maps. However,
  when doing a ypall, it seems that all database access are sequential,
  so we can forgo the first step (the 'search the database until we find
  the key') since the database should remain open and the cursor
  should be positioned at the right place until the yp_all() call
  finishes. We can't make this assumption for arbitrary yp_first()s
  and yp_next()s however (since we may have requests from several clients
  for different maps all arriving at different times) so those we have
  to handle the old way.

  (This would be much easier if R_CURSOR really worked. Maybe I should
   be using something other than the hash method.)
1995-07-12 16:28:13 +00:00
Andreas Schulz
4942064e51 Fix two typos in a comment. 1995-07-08 21:42:59 +00:00
Andreas Schulz
b03c2f9c33 Makefile:
Fix the use of /usr/X386 to ${X11BASE}. Fix the pathname /usr/bin/chess
to /usr/games/chess.
XCircle.c:
Fix the comment after an ifdef to make it a real comment to silent gcc.
std.h:
Comment out a private definition of sys_errlist.
1995-07-08 21:40:01 +00:00
Joerg Wunsch
c3081fb7f9 I added a few lines of code to the latest info browser in the
texinfo-3.6 distribution to enable the use of the cursor keys.
Since there is an open problem report (gnu/289) for this it might be
of interest for (some of) you.

I (Joerg) have also added a minor hack that makes info recognizing a
window size change while it has been suspended.

Submitted by:	thomas@ghpc8.ihf.rwth-aachen.de (Thomas Gellekum)
1995-07-08 16:46:13 +00:00
Doug Rabson
2b7f9b5ea1 Define CPLUSPLUSLIB so that bsd.lib.mk will add c++rt0.o to call
constructors and destructors.
Add -lgcc_pic to LDADD for the shared library since C++ code uses stuff from
libgcc and we no longer have a shared libgcc.  Should this be done by
CPLUSPLUSLIB?
1995-07-05 15:04:47 +00:00
Bill Paul
3f95a88ec7 Oh fer cryin' out loud... While playing with the ypserv code on a different
platform, I discovered the following: if you use ypcat (or anything that
does a yp_all() for that matter) to dump out a map and then hit ^C before
it finishes, ypserv gets hit with a SIGPIPE and dies. (The ypall() service
is implemented using TCP.)

Fix: ignore SIGPIPEs.
1995-07-04 21:58:38 +00:00
Bruce Evans
a7aac2725f Add a dependency on the .x source file and avoid copying it.
bootparam_prot.x was changed for nfsv3 but bootparamd and callbootd
kept using the old version which fortunately failed at build time.
Copying hasn't been necessary since path handling was fixed in
rpcgen/rpc_main.c some time ago.
1995-07-04 08:39:27 +00:00
Bill Paul
d32dc73f83 Small touchups in open_database():
- Use one sprintf() to put together the path to the map database instead
  of strcat()s and strcpy()s.

- Make the 'error opening database' Perror()  statement sane.
1995-07-02 18:48:21 +00:00
Doug Rabson
82aaeb09ad Change ld.so to correctly load dependant libraries for dlopen and unload them
on dlclose.  Also correctly call constructors and destructors for libraries
linked with /usr/lib/c++rt0.o.
Change interpretation of dlopen manpage to call _init() rather than init()
for dlopened objects.
Change c++rt0.o to avoid using atexit to call destructors, allowing dlclose to
call destructors when an object is unloaded.
Change interface between crt0 and ld.so to allow crt0 to call a function on
exit to call destructors for shared libraries explicitly.

These changes are backwards compatible.  Old binaries will work with the new
ld.so and new binaries will work with the old ld.so.  A version number has
been introduced in the crt0-ld.so interface to allow for future changes.

Reviewed by:	GAWollman, Craig Struble <cstruble@singularity.bevc.blacksburg.va.us>
1995-06-27 09:53:27 +00:00
Bruce Evans
278e874772 Remove bogus references to /usr/ucb. 1995-06-26 06:40:23 +00:00
Bruce Evans
d1e00e9390 Improve the handling of large minor numbers:
cpio/copyout.c:
Don't output a file if the major, minor or totality of its rdev would be
truncated.  Print a message about the skipped files to stderr but don't
report the error in the exit status.  cpio's abysmal error handling doesn't
allow continuing after an error, and the rdev checks had to be misplaced
to avoid the problem of returning an error code from routines that return
void.

pax/pax.h:
Use the system macros for major(), minor() and makedev().

pax already checks _all_ output conversions for overflow.  This has the
undesirable effect that failure to convert relatively useless fields
such as st_dev for regular files causes files not to be output.  pax
doesn't report exactly which fields couldn't be converted.

tar/create.c:
Don't output a file if the major or minor its rdev would be truncated.
Print a message about the skipped files to stderr and report the error
in the exit status.

tar/tar.c:
For not immediately fatal errors, exit with status 1, not the error count
(mod 256).

All:
Minor numbers are limited to 21 bits in pax's ustar format and to 18
bits in archives created by gnu tar (gnu tar wastes 3 bits for padding).
pax's and cpio's ustar format is incompatible with gnu tar's ustar
format for other reasons (see cpio/README).
1995-06-26 06:24:48 +00:00
Joerg Wunsch
00a44db927 Convert the colon after (send-pr) into a period, so the info file can
be actually found.

Suggested by:  someone on the bugs (or -hackers) list, whose name i forgot
1995-06-24 17:11:56 +00:00
Satoshi Asami
f606c848fa Add an "-m" flag to merge instead of replace the entries. We can
now safely add a line like

ldconfig -m ${PREFIX}/lib

in ports' Makefiles and packing lists without throwing away some
directories the user may have added.

Submitted by:   Mostly by Paul Kranenburg <pk@cs.few.eur.nl>
1995-06-24 10:08:44 +00:00
Bill Paul
0a6205d8d0 Fixed awk scripts for 'netgroup,' 'ethers.*' and 'bootparams' targets so that
corresponding map databases are created correctly.

This fixes the problem Ken Wilcox noted on the freebsd-bugs list.
1995-06-18 16:08:15 +00:00
Joerg Wunsch
5fbea18fbe Make `ld' properly honoring the umask setting when chmod'ing the
output file for the `x' bits.

This is a Posix requirement.
1995-06-14 06:25:09 +00:00
Rodney W. Grimes
d3628763db Merge RELENG_2_0_5 into HEAD 1995-06-11 19:33:05 +00:00
Rodney W. Grimes
4399be3cbd Remove trailing whitespace. 1995-05-30 05:05:38 +00:00
Andreas Schulz
6ba0afa724 Added a NOMAN= macro as this subdir doesn't have a manpage yet. 1995-05-28 21:21:26 +00:00
Andreas Schulz
ad15376867 Replaced the whole former Makefile with a more BSD conformant Makefile. 1995-05-28 21:20:30 +00:00
Andreas Schulz
cbce938a64 Reviewed by: with the allowance of Rod :-).
Add a NOMAN= . It doesn't have a manual page yet.

Please don't cry :-). I ask Rod first. the whole isdn subdir is not
used in the moment and is only dead source code in the tree.
1995-05-28 21:18:20 +00:00
Andrey A. Chernov
f7cdf1f7ad Add link to sperl4.036, needed for suid scripts and pgms
which use sperl$]
1995-05-28 19:40:18 +00:00
Andrey A. Chernov
5a630b07ee Make link to tperl4.036, needed for suid scripts and other stuff
which use tperl$]
1995-05-28 19:38:59 +00:00
Andrey A. Chernov
4b7250c3f9 Fix $] variable value (version number), close PR 449
Submitted by: Bill Fenner <fenner@parc.xerox.com>
1995-05-28 19:21:54 +00:00
Jordan K. Hubbard
267e12ca09 Don't make TAB and BACK-TAB destroy field contents incorrectly.
Submitted by:	gibbs
1995-05-28 03:36:05 +00:00
Adam David
e43fc3243b eliminate coredump for readline(NULL) case 1995-05-22 13:32:29 +00:00
Jean-Marc Zucconi
f7fda1a3c9 configuration files are in /etc/uucp and spool files are in /var/spool/uucp 1995-05-20 21:25:25 +00:00
Andrey A. Chernov
7b9728ce0b Don't chdir to subdirs before formatting, non-native manpages
assume it for .so directive
Submitted by: Wolfram Schneider <wosch@cs.tu-berlin.de>
1995-05-20 19:02:53 +00:00
Rodney W. Grimes
58d8a5e922 Make error message for no input files specified consistent across all
three compilers.

Submitted by:	Thomas Graichen <graichen@sirius.physik.fu-berlin.de>
1995-05-17 01:03:56 +00:00
Andrey A. Chernov
a66edb3187 Remove extra argument from mesgbox 1995-05-16 10:17:13 +00:00
Andrey A. Chernov
05b91f7dce Call mesgbox instead of msgbox for long descriptions 1995-05-16 06:09:28 +00:00
Jordan K. Hubbard
64b91eadc2 Changes to support the new dialog_dselect() features required to fix
pkg_install.  dialog_dselect() wasn't very useful before.
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-05-16 01:31:40 +00:00
Andrey A. Chernov
0ae932377a Fix draw shadow bug, when shadow reaches end of the screen,
bringed by devmenu or tzsetup f.e.
1995-05-15 16:40:02 +00:00
Rodney W. Grimes
4f66643c1d This patch teaches info to read gzipped files (emacs info already
works) so one can gzip files in /usr/share/info and save a few
megabytes diskspace.

Submitted by:	Kai Vorma <vode@snakemail.hut.fi>
1995-05-14 17:54:44 +00:00
Andrey A. Chernov
cb874294c9 Install uuconv/uuchk with right permissions 1995-05-14 17:01:07 +00:00
Andrey A. Chernov
38e121ed71 Update other Makefiles to reflect uuconv/uuchk install place change 1995-05-13 12:57:44 +00:00
Andrey A. Chernov
12421b942f Install uuconv/uuchk to /usr/sbin 1995-05-13 12:30:17 +00:00
Andrey A. Chernov
4769e93ea2 Add missing include 1995-05-12 19:21:46 +00:00
Rodney W. Grimes
ba0879629f Submitted by: Charles Henrich <henrich@fubar.cl.msu.edu>
Quite up man when directories in MANPATH do not exist.  If you want
it to tell you about problems use man -d.
1995-05-12 04:56:28 +00:00
Rodney W. Grimes
1f2c9ce35f Submitted by: gj
Delete suspicious looking chunk of code that was partially commented out.
1995-05-09 13:59:22 +00:00
Rodney W. Grimes
eb0b975c2d Fix nested comments for -Wcomment warnings. 1995-05-09 12:58:53 +00:00
Andrey A. Chernov
a5d744927b Bump major number, function deleted 1995-05-08 16:10:34 +00:00
Andrey A. Chernov
011048ae6a Bump major number 1995-05-08 08:43:06 +00:00
Andrey A. Chernov
883c5f31fa Fix nasty shadow bug sneaked in Marc's commit.
Implement ^K and KEY_EOL as clear end of line
Move common code from line_edit to static function
Cosmetique changes in textbox
1995-05-08 01:43:52 +00:00
Joerg Wunsch
d2b27ba8b6 From Wolfram: Fix: typos, old links
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-05-06 19:04:07 +00:00
Andrey A. Chernov
8c18198a0c Bump major number instead of minor: old functions arguments was changed too 1995-05-04 09:45:29 +00:00
Andrey A. Chernov
fbe3680005 Bump minor number 1995-05-03 18:54:09 +00:00
Bill Paul
8a17ad7e57 Small fix for yp_match implementation:
In the case where ypserv is started with the -dns flag, fall through to
the DNS lookup code only if asked to match a map with the word 'host'
in its name. This prevents failed matches on non-host maps from being
incorrectly handed off to DNS.
1995-05-03 14:36:12 +00:00
Andrey A. Chernov
1ccc95ada5 Handle too long strings correctly in print_autowrap()
Submitted by: Marc van Kempen <wmbdmr@urc.tue.nl>
1995-04-30 19:43:53 +00:00
Andrey A. Chernov
4c639bf9d7 Fix HAVE_SAVED_IDS and HAVE_BROKEN_SETREUID defines 1995-04-29 12:22:41 +00:00
Andrey A. Chernov
4843859879 Remove setr* hacks 1995-04-27 19:56:37 +00:00
Jordan K. Hubbard
4b1e0d1665 Close this PR:
>Number:         364
>Category:       bin
>Synopsis:       Interrupting man results in half-baked man page
>Description:

Interrupting man while it is waiting for the page to be formatted
results in a zero length file or a half-baked file.

>How-To-Repeat:

Inetrrupt man while it is formatting a page.

>Fix:

Pay more attention to the return value from the system command.
Submitted by:	John Capo <jc@irbs.com>
1995-04-26 16:19:23 +00:00
Jordan K. Hubbard
38f4846ec5 Gary J's patches to make gdb -w work properly.
Submitted by:	gj
1995-04-26 01:01:20 +00:00
Jordan K. Hubbard
6e9cd00afe Hastily back out my previous change to install ui_objects.h; upon further
examination, I'm not entirely sure this was meant to be public.  It's not
idempotent or anything.  I'll make pkg_manage deal with it another way
until it's been confirmed one way or the other by Marc.
1995-04-21 10:18:33 +00:00
Jordan K. Hubbard
effc53c83c Also install new ui_objects.h header file. I'm not sure how I feel about
these Makefile constructs - surely there's a better way?
1995-04-21 10:15:31 +00:00
Nate Williams
110aea11f2 Sync. up bits with Paul K. Cascade support plus some cosmetic changes.
Obtained from: NetBSD
1995-04-21 04:57:50 +00:00
Andrey A. Chernov
7f6e7c13b5 Upgrade.
Submitted by: Marc van Kempen  <wmbfmk@urc.tue.nl>
1995-04-20 17:39:37 +00:00
Joerg Wunsch
e6073fb7f6 Fix for the ``gdb -k /nonexistent /dev/mem'' core dump.
Submitted by:	gj@freebsd.org (Gary Jennejohn)
1995-04-19 22:59:33 +00:00
Nate Williams
c0a7a54b73 Backed out the only FreeBSD specific change to the stock CVS sources now
that it's taken care of in the CVSROOT/cvsignore file which is FreeBSD
specific.

This will make it easier to track changes in the *official* release.
1995-04-18 18:14:57 +00:00
Andrey A. Chernov
a989b77e9e Fix update_line() updates on screen edges
Obtained from: bash sources
1995-04-18 11:00:47 +00:00
Rodney W. Grimes
aa556f48a9 Add missing $(DESTDIR) to rm command so that this stops removing files
from my master system.

This makefile is a crock, and will soon be rewritten!
1995-04-17 19:10:20 +00:00
Nate Williams
3cc6a1ed2e Added back 'examples' to the subdirs which was bogusly removed. 1995-04-14 15:15:27 +00:00
Joerg Wunsch
c8a2ad770c Fix broken file name globbing. Man is now also able to find pages
like "3DBorder" and "[".  (NB, the "3DBorder" problem has actually
been intention, it allowed for weird section names like "3xyzzy".  We
don't have them, either.)

(Partially) Submitted by:	taob@gate.sinica.edu.tw (Brian Tao)
1995-04-11 22:01:53 +00:00
Nate Williams
65cc5b32c2 Re-enabled cvs now that Rod is satisfied that it will work correctly. 1995-04-11 17:28:26 +00:00
Jordan K. Hubbard
f0681de0c2 Mods to tar (--fast-read) to cause it to stop looking for exact-matching
file specifications when they've been extracted (enabling you to get a file
fast if it occurs somewhere close to the front).
Submitted by:	Marc van Kempen <wmbfmk@urc.tue.nl>
1995-04-10 11:47:37 +00:00
Nate Williams
b6b718f326 as Thomas Graichen recently wrote in private mail:
> * the gdb-4.13 of current (compiled and used under 2.0R) can not attach to my
> own processes (it works only then i'm root - else i get open failed - for my
> own processes)

how embarassing ! This turns out to be a bug in infptrace.c. Below
is a patch. Could some kind soul apply it ?

Submitted by:	"Gary J." <garyj@rks32.pcs.dec.com>
1995-04-10 00:01:01 +00:00
Nate Williams
5b9d4f5aa8 Added Makefile for example files. They are now installed in
/usr/share/examples/cvs for use by the cvsinit script.
1995-04-08 17:50:48 +00:00
Nate Williams
5a5755a556 Because -lcompat defines the same symbols as -lgnuregex and the weakness
of the linker to enforce linking of modules in command line order it is
not possible to link gdb shared with -lcompat.

*HACK ALERT*
Removed -lcompat from LDADD and bring in the necessary functions out of
libcompat as a source module until the linker can be fixed.
1995-04-07 05:13:26 +00:00
Nate Williams
7e613ac7bd Back out my change to enforce command line linker order due to
underlying bugs which are caused by mixing static/shared libraries with
this change in place.

The shlib code is not capable of supporting this feature in it's present
state and will need significant modifications in order to do so.
1995-04-07 05:08:28 +00:00
Bill Paul
3670011ae8 Added a new feature from Peter Eriksson's latest release of ypserv (0.13):
register ourselves as an NIS version 1 UDP server to pacify older SunOS 4
ypbinds that seem to insist on having one around. All this does is allow
ypserv to respond to DOMAIN_NONACK requests that are periodically
transmitted by ypbind: the server will not actually work as an NIS v1
server in any other way.

Unlike the mainline code, which implements this as a compile-time
option, this feature can be turned on with the newly-added -k flag
at runtime.

Bunped version number to 0.13. (What the hell.)

Updated the man page to reflect this change, also made a couple of small
edits to reflect the recent changes in the /etc/rc* setup.
1995-04-05 03:23:40 +00:00
Bill Paul
0b2a7a1bff Take yp_svc.c out of CLEANFILES rule. 1995-04-02 20:28:09 +00:00
Bill Paul
adaf7ba36a Add back some stuff to yppush.c that I was a little over-zealous in
removing. Also do away with compiling yp_svc.c: yppush doesn't need it.
1995-04-02 20:01:50 +00:00
Bill Paul
b8ca7ca6c6 Removed code from yp_xdr.c module that now lives in libc. (Unfortunately,
ypxfr can't easily be reduced down to one file like yppush because it
needs to do certain special things (such as binding to a specific
machine (the NIS master)) which the yp_*() functions in libc don't
allow.
1995-04-02 17:01:31 +00:00
Bill Paul
56e74043f4 Make yppush compile again when obj directory exists. *groan* 1995-04-02 16:00:30 +00:00
Bruce Evans
15519b2f58 Fix compiler warnings: don't declare enum types as static. 1995-04-02 13:11:14 +00:00
Bill Paul
df561fc414 Spruce up Makefile.yp: add support for netgroups and bootparams maps,
make use of yp_mkdb's -i, -o and -m flags.
1995-04-02 01:53:47 +00:00
Bill Paul
812647ed6b Reduce yppush. Now that all the required yp_xdr functions are
in libc, we can get rid of the private/special copies of yp_*.c
files and rpcgen them at compile time instead. This leaves us with
just one unique source files: yppush.c
1995-04-02 01:10:13 +00:00
Bill Paul
ef230bdf24 Log syslog messages at LOG_NOTICE priority. 1995-04-01 19:31:12 +00:00
Bill Paul
8e36f47bd5 Remove yppasswd_xdr.c and take out references to if from Makefile: use
-lrpcsvc instead.
1995-04-01 19:23:11 +00:00
Joerg Wunsch
f000edcf92 Fix the
Ignore wrong indent value: ``''

bug, as reported by Chris Kukulies.
1995-04-01 11:43:09 +00:00
Bill Paul
4f93d7d4de One line fix to silently ignore entries that start with a '+' or '-'.
This prevents yp_mkdb from adding magic NIS entries to NIS maps themselves.
1995-03-31 19:45:13 +00:00
Nate Williams
7b1fcc6ab5 Forgot one FreeBSD specific change needed.
date: 1995/02/04 20:27:23;  author: phk;  state: Exp;  lines: +1 -1
added *.info and *.db to the default "ignore" list in cvs to avoid obviously
common mistakes.
1995-03-31 08:21:06 +00:00
Nate Williams
73a425b915 Temporarily disable building CVS to avoid anyone hosing up their CVS
tree until a bit more testing is done.

Submitted by:	rgrimes@gndrsh.aac.dev.com "Rod Grimes"
1995-03-31 08:00:06 +00:00
Nate Williams
01c3e6a55a Merged in FreeBSD necessary changes in. Note, all of our source
modifications were *not* merged in (FreeBSD-DEVELOPER and symlink) but
the source is now the stock sources.
1995-03-31 07:55:30 +00:00
Nate Williams
06d8715958 Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:34 +00:00
Nate Williams
488f2c4c00 This commit was generated by cvs2svn to compensate for changes in r7516,
which included commits to RCS files with non-trunk default branches.
1995-03-31 07:45:34 +00:00
Nate Williams
30d2417fd3 Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:34 +00:00
Nate Williams
33afdd16ab Original sources from CVS-1.4A2 munged to fit our directory structure. 1995-03-31 07:45:33 +00:00
Nate Williams
789377fada This commit was generated by cvs2svn to compensate for changes in r7514,
which included commits to RCS files with non-trunk default branches.
1995-03-31 07:45:33 +00:00
Bill Paul
4b2f613d23 Rework error reporting/logging: although the SunOS documentation says
that ypxfr is supposed to log messages to /var/yp/ypxfr.log if it exists,
using syslog() makes more sense, especially since ypserv does the same
thing already. Try to use stderr by default, and use syslog() if stderr
is not a tty.

Also update the man page to reflect this change.
1995-03-31 05:45:23 +00:00
Joerg Wunsch
c0106644ad Wolfram's latest update.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-03-31 04:00:53 +00:00
Bill Paul
8d36de4ea2 Ack... clean up the logfile name generation that I botched in the last
commit.
1995-03-30 04:21:31 +00:00
Bill Paul
effe773667 Fix up the way _PATH_YP is used to put together the pathname to the
NIS maps (get rid of extraneous slash a la /var/yp//domainname).

Have ypxfr log all output to /var/yp/ypxfr.log if stdin is not a
tty. This should allow logging to be done when ypxfr is called from
inside ypserv in response to a yppush request.

Update man page to reflect the change (and fix a typo).
1995-03-30 04:14:46 +00:00
Jean-Marc Zucconi
509b93f067 'directories...' is an argument, not an option 1995-03-27 01:52:59 +00:00
Joerg Wunsch
266e938a21 Made this script a bit more fool-proof, so people like me can better
use it. :-)

It now explicitly requires the specification of a directory to import
from, either as an argument to the script, or by asking the user about
it.  (Previously, it implicitly used `.', like cvs import does.)

Also implemented an option `-n', which does essentially the same like
the overall CVS option `-n': show only what would have been done,
don't do any commitment.  Note that since the modules' database is
checked out in place (and not commited back), it will erroneously be
reported as to be imported, too:

cvs import: Importing /home/ncvs/ports/foobar/foo/modules
I ports/foobar/foo/modules/CVS
N ports/foobar/foo/modules/modules

This is an unwanted side-effect, but gives the user the option to see
if the `ed' magic did the right thing when editing modules/modules.

Rod, can you please check the function ``checktag'' in the script if it
will be restritctive enough?
1995-03-26 21:56:32 +00:00
Andrey A. Chernov
4b99bfd375 Comment out all perverted curses optimization 1995-03-26 03:01:04 +00:00
Andrey A. Chernov
4b0ef7df4c Change wrong -ltermcap -ltermlib picked up to -lmytinfo 1995-03-26 02:41:45 +00:00
Jordan K. Hubbard
91f88b9615 Get PERL found in any of its obvious locations. 1995-03-25 17:14:11 +00:00
Bruce Evans
efeca6c1f3 Don't attempt to fix the mode of mus - mus might be read-only. Just
interpret it.  I've preserved the bugs that perl must be installed
to build part of perl and that it must be installed in the wrong place
(no ${DESTDIR}).
1995-03-25 15:43:57 +00:00
Jordan K. Hubbard
d8274511ca If mus script not executable, fix. 1995-03-24 19:22:33 +00:00
Andrey A. Chernov
09237e9da4 Fix -C arg overriding when -T file used 1995-03-24 19:01:25 +00:00
Andrey A. Chernov
ed42ac9324 Get rid of strtok(), it is depricated inside libs 1995-03-24 17:59:48 +00:00
Jordan K. Hubbard
97d6478890 Adjust include paths. 1995-03-24 05:56:41 +00:00
Jordan K. Hubbard
80926682fd Bring back perl/usub as usub/, this time containing an updated curseperl
which is also installed by default (the reason for which should also be
plain shortly).
1995-03-24 04:33:54 +00:00
Nate Williams
ab795d6abc Added gdb back in since it can no compile with the ld change. 1995-03-22 19:39:45 +00:00
Nate Williams
4979433a3c Modify the default behavior of the linker to no longer prefer static
members over shared library members.  This modification causes the linker
to use the first definition it sees for a symbol instead of having
priorities based on the library type.  This modification should allow
gdb to compile again.

Obtained from:
  Email conversation with Paul Kranenbury, but implemented completely by
  me.  If it doesn't work, it's my fault not his.
1995-03-22 19:38:07 +00:00
Jordan K. Hubbard
3bdf20c2d4 This just exited on most errors, some of which were legitimate and
I don't *want* to cause my application to be exited!  Some of the fprintfs()
should probably be calls to some dialog error menu popup anyway.
1995-03-22 02:06:06 +00:00
Andrey A. Chernov
ee02f1d697 Saved scroll fixed. 1995-03-21 01:06:07 +00:00
Rodney W. Grimes
edbae4a194 Pretty much a complete rewrite of this Makefile.
Remove private mkdir command for /usr/include/g++, this is now
handled by mtree.

Make the whole file fit in 80 column output, sort the SRCS list and
split into .c and .cc sources.

Use $Id$ instead of $FreeBSD$ since we pulled support for this.

Add DPADD to match LDADD and now include <bsd.prog.mk> to define
the DPADD values (This is a hack until the .mk stuff can be corrected
so that ${LIB*} is visiable in bsd.lib.mk.)

Optimize beforeinstall target by eliminating a subshell.
1995-03-20 09:38:21 +00:00
Nate Williams
8af57ca9dd Removed /usr/local/lib from the standard library search path to be
consistant.  Programs shouldn't rely on non-standard paths for bringing
in default libraries.

Suggested by:	Andreas Schulz <ats@freebsd.first.gmd.de>
1995-03-19 21:20:09 +00:00
Andrey A. Chernov
cb850faba6 Fix sparse files handling
Submitted by: Alan Bawden <alan@curry.epilogue.com>
1995-03-18 17:45:13 +00:00
Andrey A. Chernov
e831146aee Don't use user PATH into environment for sec reasons 1995-03-18 02:19:25 +00:00
Andrey A. Chernov
24e24f916f 1) Call nroff instead of groff, nroff have some internal groff options
2) Use absolute pathname for nroff
3) Use -Tascii instead -Tlatin1, too many strange chars (like
soft hyphens f.e.) appearse in other case.
1995-03-18 02:11:56 +00:00
Paul Traina
8454052590 rename ngroff to groff 1995-03-18 01:23:06 +00:00
Nate Williams
738ff67657 Gcc v2.6.3 currently has a problem with templates. Specifically, with
default switches, template functions get EXTERNAL linkage in each file
in which they occur, causing multiple definition errors during
linking.  The enclosed patch (from gnu.g++.bug) appears to solve the
problem (I enclose the accompanying message as well).

This patch fixes the multiply defined template functions bug
which was introduced in 2.6.1.

Submitted by:	"Justin T. Gibbs" <gibbs@estienne.cs.berkeley.edu>
Obtained from:  Jason Merrill at cygnus support on G++ mailing list
1995-03-17 21:24:25 +00:00
Andrey A. Chernov
dd970fbdb0 Fix savestring & gdb conflict
Moreover, this fix not breaks any pgm which uses readline's savestring
1995-03-17 21:11:53 +00:00
Rodney W. Grimes
f71681dcf8 Add dummy lchown function so that cpio understands 4.4 symbolic links.
Reviewed by:	phk
1995-03-17 07:52:23 +00:00
Andrey A. Chernov
0efbb29eec Upgrade 1995-03-17 01:40:52 +00:00
Joerg Wunsch
01e694c2e2 Wolfram's replacement for the oldish ugly catman(1) program. The new
one is much more intelligent, not only that it would accept multiple
man page locations, it also behaves like ``make'' in that it will only
deal with cat pages that are out of date (by default).

Wolfram also wrote a man page for it.

Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-03-15 22:47:38 +00:00
Poul-Henning Kamp
c66585d539 Disabled gdb until it compiles. I need make world to work... 1995-03-13 19:14:05 +00:00
Andrey A. Chernov
4ad6de4413 Bump SHLIB_MAJOR to 263 to match ../Makefile.inc 1995-03-13 01:30:02 +00:00
Andrey A. Chernov
c14b1eb830 Add cmp -s to beforeinstall target 1995-03-12 23:21:29 +00:00
Poul-Henning Kamp
0282d7a383 Don't install shared libgcc, we can't do it this way.
I will uuencode and check in to a "compat20" area the 2.0-RELEASE version.
1995-03-12 20:17:07 +00:00
Bruce Evans
dad6f71aed Remove the last vestige of COMMENT_BEGIN. 1995-03-12 11:47:20 +00:00
Bruce Evans
60ae9f8840 Undo most of the changes in the gcc-2.6.3 "upgrade"
- Don't define NO_IMPLICIT_EXTERN_C here.  It is already the default
  (defined in i386/bsd.h).
- Don't lose the fixed comment about FUNCTION_PROFILER.
- Don't lose the define of NO_PROFILE_DATA.

Replace the unused define of COMMENT_BEGIN by the less-unused define
of ASM_COMMENT_START.  COMMENT_BEGIN was only defined in i386-specific
files and was not used in any part of gcc-2.6.3.  ASM_COMMENT_START
is defined for several targets and is used for stuff that we don't
support (dwarf).
1995-03-12 11:45:12 +00:00
cvs2svn
36d59faf6a This commit was manufactured by cvs2svn to create branch 'VENDOR-cvs'. 1995-03-12 10:18:55 +00:00
Joerg Wunsch
8dcdb65e4e Add my script here to make people's life easier when importing new
stuff.  I'd like to have it in CVS, and i figured that this might be
the best place to go.

Someone (phk?) could install it into /usr/local/bin on freefall, for
convenience.

Suggested by: phk
1995-03-12 10:18:54 +00:00
Poul-Henning Kamp
fd6eef4fd9 Remove a bunch of funtions that are in libc already.
Add back the shared libgcc, now that we don't use it to link against.
1995-03-12 09:37:26 +00:00
Nate Williams
c6bc11c2f6 Added support for #pragma weak.
Obtained from: NetBSD
1995-03-11 04:07:26 +00:00
Nate Williams
b18f8c1dda Updated the sources to gcc 2.6.3 with FreeBSD changes already applied.
Note: This isn't the most correct way, but it works and it's fast.
1995-03-11 03:51:44 +00:00
David Greenman
28b6ade77a Back out Poul's hack that forces static libgcc. This has been fixed via
gcc instead.
1995-03-10 19:41:50 +00:00
David Greenman
c683527908 Define LINK_LIBGCC_SPECIAL_1 so that gcc will build static with libgcc. 1995-03-10 19:39:32 +00:00
Poul-Henning Kamp
93ccf2fa5e Since we are in the gcc bashing mood anyway: Add two changes for
basic-block profiling:
1. use a .stabs(25) symbol to link all the data structures together with.
The regular method isn't safe for the kernel.
2. add a BB before the prologue and add a BB after the epilogue,  this
alows us to find the length of any counted BB.  This is a cheap and somewhat
reasonable measure of actual cost.
1995-03-10 08:24:09 +00:00
Paul Richards
0d09ae1111 Change the return status of do_system_command to be -1
if a signal is received.

This fixes a bug where killing the process would cause a
"No manual entry for XXX" to be printed even if the manpage
was found.
1995-03-09 19:56:23 +00:00
Jordan K. Hubbard
fdf5c453e0 We can't bail out on generating the pic archive yet.
Submitted by:	bde
1995-03-06 12:17:49 +00:00
Poul-Henning Kamp
3d496ce9e4 Don't make the shared libgcc. I don't belive we need the libgcc_pic.a
anymore, so I killed that as well.
1995-03-06 08:04:05 +00:00
Poul-Henning Kamp
316f7f7725 Never again shall we link libgcc dynamic. It was a big mistake in the
first place and we were too long in finding out.  Now we know, and the
damage is hard to fix.  This is part one:  ld will not link gcc dynamic,
if specified as "-lgcc".

Suggested by:	dyson & davidg
1995-03-06 08:00:23 +00:00
Nate Williams
0be9c260c5 Install the include file in the same way that all other includes file are
in the 'beforeinstall' target.
1995-03-06 05:51:32 +00:00
Bill Paul
e7969ab094 Added support for bootparams map. 1995-03-05 22:48:50 +00:00
Poul-Henning Kamp
fcb2469be6 "Various very violent dissections
disables dysfunctional disinformed namei's,
needlessly negating namei cache."

These hacks cuts the number futile attempts made by cc and ccp to find
cross-compilers and other weird stuff.  A make of the BOOTFLP kernel
has 20% less namei calls now, that is from 30647 down to 24563 calls.
1995-03-05 20:34:41 +00:00
Nate Williams
c79eac4c4c Weak symbol support from NetBSD. This should bring us in sync with the
NetBSD ld code except for local changes for dlopen() and friends and
the hashing on the minor value of the shlibs.  We should be binary
compatible now with all their libraries.

Obtained from: NetBSD
1995-03-04 17:49:20 +00:00
Nate Williams
d6212a19ca Add the abilitity to compile the Lites code with the native FreeBSD assembler.
(This adds minor support for the .bss directive)

Submitted by:	Many folks, but I believe Remy Card was the first person to
                propose this change.
1995-03-02 20:29:18 +00:00
Andrey A. Chernov
2270889953 Fix arrows printout for non-arrows keys in menubox
Move arrows printout to single kernel function
Add PgUp/PgDn/Home/End to checkbox and radiobox
1995-03-02 01:03:39 +00:00
Joerg Wunsch
c71243fd9a typo.
Submitted by: "Philippe Charnier" <charnier@lirmm.fr>
1995-02-28 23:16:33 +00:00
Andrey A. Chernov
6c5f92f17f Fix two quad_t casts, one reported by wcp@lpds.sublink.org 1995-02-26 23:48:51 +00:00
Joerg Wunsch
def5a1b108 Patch bei Wolfram to avoid processing duplicate directories.
Submitted by:	wosch@cs.tu-berlin.de (Wolfram Schneider)
1995-02-26 19:35:06 +00:00