Commit Graph

2764 Commits

Author SHA1 Message Date
Bruce Evans
0b53fbe8da Don't use SIG_DFL or SIG_IGN for case label expressions. ANSI requires
such expressions to have integral type.  "gcc -ansi -pedantic -W..."
fails to diagnose this constraint error.
1994-09-20 05:42:46 +00:00
Bruce Evans
254b131faa Fix the order of includes (*.mk must be included after *.inc). 1994-09-20 05:25:38 +00:00
Bruce Evans
f44ca047d4 Add dependency for -lcompat. 1994-09-20 05:17:50 +00:00
Bruce Evans
2b3d0249bd Remove the alias splnone() for spl0(). It was used only once. 1994-09-20 05:07:32 +00:00
Garrett Wollman
d5b7518d9c Re-implement YP password file support from scratch. This implementation
correctly handles +user entries and + entries with local overrides.
1994-09-20 01:23:45 +00:00
Garrett Wollman
28ca30918a Maintain pw_fields, and output same to password database.
!!!!!!!!
NB
!!!!!!!!
You MUST pwd_mkdb /etc/master.passwd before attempting to use the new
libc, or things may go wrong.  (I doubt anything actually /will/ go
wrong, but the actual behavior is undefined.  YOU HAVE BEEN WARNED.)
The database format is, however, backwards-compatible, so old executables
will still work.
1994-09-20 01:15:08 +00:00
Garrett Wollman
6913240fbc Add a new field to the passwd structure, indicating which of the fields have
something in them, and which ones were left blank.  This will be used
for YP support in a few minutes, and for user login classes if anyone cares
to implement them.
1994-09-20 01:12:04 +00:00
Andrey A. Chernov
e79033e4cf resettodr() now exists, enable it 1994-09-20 00:32:40 +00:00
Andrey A. Chernov
7b915aa631 resettodr() implemented, inittodr() fixed
Submitted by: me & chris@gnome.co.uk
1994-09-20 00:31:07 +00:00
Andrey A. Chernov
736c101eaf Correction for new sysctl interface 1994-09-19 23:18:41 +00:00
Andrey A. Chernov
c0b605c3d9 Remove warning about adjkerntz /var/run file 1994-09-19 23:13:37 +00:00
Andrey A. Chernov
bb84bd5c6b rewritted to use sysctl, no more /var/run/.adjkerntz now 1994-09-19 23:09:34 +00:00
Garrett Wollman
075e8696f8 Put back missing .text before swi_net. This could probably be made faster;
I invite Bruce to look at it.
1994-09-19 22:24:31 +00:00
Andrey A. Chernov
0b00772e37 Function in this module bloodly called 'gethostname' and linked
with all pgms, you can imagine results!
Change 'gethostname' -> 'ntp_gettime', I don't know what real name
must be here but try to guess.
1994-09-19 22:04:28 +00:00
Garrett Wollman
0385520e72 For Bruce: -DNO_SHARED_LIBCC_INT reverts back to static libcc_int.
This makes the back end run faster, but at the cost of speed.
1994-09-19 21:37:50 +00:00
Garrett Wollman
72ca7d4032 Get rid of the files that now live in src/share/examples/etc, and update
Makefile to install them from there rather than from here.
1994-09-19 21:30:29 +00:00
Garrett Wollman
d1e0c8254c Install /etc from the same source as /usr/share/examples/etc (mostly). 1994-09-19 21:28:28 +00:00
Andrey A. Chernov
a40a3595b7 oget/sethostname: add missing argument to kern_sysctl
Reviewed by:
Submitted by:
Obtained from:
1994-09-19 21:15:14 +00:00
Andrey A. Chernov
e9e2a85282 sysctl incorrectly check name[2] instead of name[1] 1994-09-19 21:07:00 +00:00
Adam David
6766ed571b More reasonable example of BOOTWAIT parameter
Added comment about multiplication factor
1994-09-19 20:10:10 +00:00
Adam David
fcf8309d74 Default wait approx 10 seconds for keypress during boot
Added comment about multiplication factor
1994-09-19 19:54:49 +00:00
Geoff Rehmet
49de41577e More elegant fix for short settings.
(Our existing fixes already plugged the security holes involved.)
Submitted by:	Geoff Rehmet after consultation with David Burren
1994-09-19 19:26:39 +00:00
Doug Rabson
2eed683f10 Changed some NetBSD backwards compatibility code which was confusing mountd. 1994-09-19 19:24:44 +00:00
Doug Rabson
541758b1c6 Added support for MSDOS file systems. 1994-09-19 18:47:12 +00:00
Poul-Henning Kamp
4b210e2959 removed usr/include/md 1994-09-19 17:47:22 +00:00
Andrey A. Chernov
1e35c6c787 Add vm/vm.h for complete sysctl type.
Remove wrong time declaration, already have correct in kernel.h
(kern_ntptime not compiled without this changes)
1994-09-19 17:39:21 +00:00
Doug Rabson
834d25cdf1 Reversed last revision which was a mistake. 1994-09-19 15:49:46 +00:00
Doug Rabson
3f9a698275 Added MSDOSFS option. 1994-09-19 15:45:02 +00:00
Doug Rabson
27a0bc89a4 Added msdosfs.
Obtained from: NetBSD
1994-09-19 15:41:57 +00:00
Doug Rabson
5cb2bca1a3 Added mount_msdos.
Obtained from: NetBSD
1994-09-19 15:30:36 +00:00
Andrey A. Chernov
0a7f0f3504 bugfix: change gidset[] type from int to gid_t 1994-09-19 13:52:38 +00:00
David Greenman
3012a727a0 Declared msginfo, shminfo, and seminfo structs. 1994-09-19 10:24:38 +00:00
Paul Traina
475727a09f Add support for '-k' option to print file allocation space in 'K' instead of
system blocks.

This is semi-original code, not the same way this crufty option was handled
in FreeBSD 1.x.
1994-09-19 07:49:56 +00:00
Poul-Henning Kamp
ec5d3c392a This is the present state of CTM version 2. Please do not ask for
subscriptions yet.  Wait for the announcement.

CTM is my humble attempt to get -current out to people beyond TCP/IP 
connections.  This is for people with dial-up connections and such.

CTM can make a delta from one version to another of a source-tree, in 
a efficient and verified way.  Even if there are binary files in the
tree.  It will even try to make the delta as small as possible.

It is OK with me if you yell "Bloating!" but I'll just forward your email
to some of the happy customers from CTM version 1, and let them tell you
what they think.

I will not put ctm into "make world" yet.  For now it is just the logical
way to get the sources out to people who helps me test this.

Poul-Henning
1994-09-19 07:32:24 +00:00
Paul Traina
986c2270fe Fix 'ls' alias to work with new ls (-k is not supported) 1994-09-19 07:01:35 +00:00
Steven Wallace
b058360fef Change setup.c so that game files are generated into obj dir,
then Makefile installs into ${DESTDIR}/var/games/phantasia
1994-09-19 05:41:13 +00:00
Poul-Henning Kamp
267994de9f Need to call on libmd in "includes" target. 1994-09-19 05:32:31 +00:00
Poul-Henning Kamp
345ee1c674 Added beforeinstall rule to install .h files. We might need some .mk
support for this kind of thing.  Look at src/Makefile target "includes".
1994-09-19 05:30:33 +00:00
Andrey A. Chernov
496357be5b Add commented out setenv ENABLE_STARTUP_LOCALE 1994-09-19 02:09:13 +00:00
Andrey A. Chernov
89c8b5adfd Remove STARTUP_LOCALE reference, obsoleted 1994-09-19 02:02:55 +00:00
Andrey A. Chernov
54335ac349 Change level of setlocale hack enabling from compile option STARTUP_LOCALE
to check (via getenv) environment variable "ENABLE_STARTUP_LOCALE" at
runtime.
Submitted by: me per Bruce suggestion
1994-09-19 02:00:21 +00:00
Rodney W. Grimes
c27b58e1b6 These are mtree generated versions of these files using the
new mtree options.

I will be updating these shortly to remove some old stuff and add some
new stuff.  These currently produce the exact same trees as they did.
1994-09-19 01:40:40 +00:00
Rodney W. Grimes
5104ed9c4a My optimization to eliminate /set records was a little too aggressive, it
optimized away the first one :-(.
1994-09-19 01:32:57 +00:00
Jordan K. Hubbard
724a286e43 Modified DEPENDS rule so that anything you depend on gets both
made AND installed.  Folks, check out DEPENDS if you have one port
that depends on another!  With this change, it should be really convenient
to use.
1994-09-19 01:08:35 +00:00
Andrey A. Chernov
9e5efb09f2 DESTDIR added to PORTSDIR definition 1994-09-19 00:41:03 +00:00
Bruce Evans
8ebeb948c5 The previous revision got the wrong log message (for clock.c). It should
have got the following:

Back out the changes in the previous revision.  Function-like macros
were replaced by compound statements that work in less contexts.

Unoformize idempotency #ifdef.
1994-09-18 23:18:32 +00:00
Bruce Evans
eb51e37703 Remove some unnecessary #includes.
Restore the simple leap year calculation as a macro and document it so
that it doesn't become complicated again.  The simple version works
for all leap years covered by 32-bit time_t's.  The complicated version
doesn't work for all leap years covered by 64-bit time_t's since among
other reasons, the solar system is not stable for long enough.

Fix declarations.

Nuke spinwait().
1994-09-18 23:08:56 +00:00
Bruce Evans
6485b5ff77 Use new-style declarations for min/max functions so that
"gcc -Wstrict-prototypes" doesn't emit warnings about them.

Write each min/max functions on a single line so that the similarity and
triviality of the functions is more obvious.

Put the quad min/max functions in the correct place (aphabetical order).

The u_quad min/max functions are missing.  Only 3 or 4 of the min/max
functions are actually used.  sys/socketvar.h ``should use "lmin" but
it doesn't exist now''.  lmin does exist now, but isn't used.  Since we
depend on gcc for `inline', perhaps we should depend on it for __typeof
and function-expressions and use only macros min() and max() that work
for any types (I'm not sure how to handle mixed types).
1994-09-18 23:04:25 +00:00
Garrett Wollman
b4aca961be Make GCC's back end be shared among all languages. cc, c++, and cpp now
no longer link against the whole library, since they don't require much
from it, but just compile the few small modules they actually need static.

This should save a measurable amount of space; compare:

-r-xr-xr-x  1 bin   bin   155648 Sep 18 18:00 cc1*
-r-xr-xr-x  1 root  bin  1048576 Sep 18 17:33 cc1.noshae*

Of course, the library takes up a bit of space, but when you add in the
savings from the C++ compiler, you more than make up the difference:

-r--r--r--  1 bin  bin  1157344 Sep 18 18:27 /usr/lib/libcc_int.so.26.0
-r-xr-xr-x  1 bin  bin  491520 Sep 18 18:27 /usr/libexec/cc1plus*
1994-09-18 22:35:55 +00:00
Garrett Wollman
ac1a8b47c7 Emendation to previous commit: only create static INTERNALLIBs if
INTERNALSTATICLIB is also set.
1994-09-18 22:22:32 +00:00