Commit Graph

2731 Commits

Author SHA1 Message Date
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
Andrey A. Chernov
f32a347542 Add (#ifdef'ed by STARTUP_LOCALE) following line to crt0.c
(void) setlocale(LC_ALL, "");

It will be easiest way now to make national chars available
for all ctype-oriented programs at once by simple:

setenv LANG Your_National_Charset

Default case (without "LANG" environment
variable) will be fully ANSI compatible (got "C" locale).

If "LANG" variable present, extention becomes active.

Effect of this extention is great: in one time all ctype
oriented programs can accept/print national characters
without any touching source/binary code, it is big win, IMHO.

This method is fully compatible with ISO8859-* and russian koi8-r
too (in general -- with all 8-bit character sets). I think
it is very useful.
I got this idea from Xenix locale implementation.

This extention is even never compiled in, unless you set
	setenv STARTUP_LOCALE
before rebuilding crt0.c or corresponding variable in /etc/make.conf
1994-09-18 22:21:04 +00:00
Garrett Wollman
66415998d0 It turns out that occasionally you want both shared and static versions
of INTERNALLIBs, so generate both.
1994-09-18 22:06:04 +00:00
Bruce Evans
6052572ac4 Replace unsigned' by u_int' so that it is not necessary to include
<sys/types.h> before including this header.  This header is now
idempotent.

Uniformize idempotency #ifdef.
1994-09-18 22:05:22 +00:00
Bruce Evans
e4b7e53da8 Clean up #includes. <machine/spl.h> has to be included by almost everything
in case an spl inline is used, so this is not the place to include it.

Uniformize idempotency #ifdef.
1994-09-18 21:37:56 +00:00
Bruce Evans
a58a9ef8c0 Remove "#ifdef notdef" around declaration of fuibyte(). fuibyte() _is_
actually used.

Remove "#ifdef __GNUC__" around some __dead* declarations.  __dead* is
harmless if __GNUC__ is not defined.

Uniformize idempotency #ifdef.
1994-09-18 21:30:30 +00:00
Garrett Wollman
63c72c78d2 Added domainname. 1994-09-18 21:25:26 +00:00
Rodney W. Grimes
a861b63c28 Add q modifier (for long longs) support to -Wformat.
Reviewed by:	bde
1994-09-18 21:25:02 +00:00
Garrett Wollman
6f2d50c0d0 A new domainname(1) command based on hostname(1), this time with a correct
manual page.
1994-09-18 21:23:37 +00:00
Stefan Eßer
d49fc97c3c Removed obsolete example of specifying PCI IntA to IRQ mapping for NCR. 1994-09-18 21:18:49 +00:00
Rodney W. Grimes
10c4c64eb7 1. Remove commented out CFLAGS+=-DDEBUG from Makefile
2.  Clean up code so it compiles -Wall (except for sccsid's and copyright).
    This included fixing several printf formats that where not correct,
    and changing the data types of a few things.

3.  Implement new option -i that produces indented mtree output files.

4.  Implement new option -n that turns off directory comments.

5.  Only emit /set records if something has changed since the last one.
1994-09-18 21:17:40 +00:00
Garrett Wollman
7d39692365 Declare [gs]etdomainname(). 1994-09-18 21:09:10 +00:00
Garrett Wollman
3f31c649d1 Redo Kernel NTP PLL support, kernel side.
This code is mostly taken from the 1.1 port (which was in turn taken from
Dave Mills's kern.tar.Z example).  A few significant differences:

1) ntp_gettime() is now a MIB variable rather than a system call.  A few
fiddles are done in libc to make it behave the same.

2) mono_time does not participate in the PLL adjustments.

3) A new interface has been defined (in <machine/clock.h>) for doing
possibly machine-dependent things around the time of the clock update.
This is used in Pentium kernels to disable interrupts, set `time', and
reset the CPU cycle counter as quickly as possible to avoid jitter in
microtime().  Measurements show an apparent resolution of a bit more than
8.14usec, which is reasonable given system-call overhead.
1994-09-18 20:40:01 +00:00
Garrett Wollman
69f5174d9a Redo kernel NTP PLL support, user-mode interface. 1994-09-18 20:29:55 +00:00
Steven Wallace
504e8b978b Add LDDESTDIR to ld command.
Add -I${DESTDIR}/usr/include to cpp command.
1994-09-18 19:41:38 +00:00
Steven Wallace
893f3712e5 Put LDDESTDIR before library listing. 1994-09-18 19:10:11 +00:00
Andrey A. Chernov
65c3bb832a Add 'rm -f /etc/localtime' before cp to /etc/localtime,
I have a link here and got strange results without 'rm'
1994-09-18 18:27:30 +00:00
Poul-Henning Kamp
13ae5a03ea added fdwrite -> usr.sbin/fdwrite 1994-09-18 07:48:40 +00:00
Poul-Henning Kamp
cb3131379f Added a missing ${DESTDIR}. The real problem is that stuff related to
floppy formatting is in /sys/i386/isa/fdreg.h, it should be in /usr/include
somewhere ??
1994-09-18 07:42:11 +00:00
Steven Wallace
dfc5d1d4eb Makefile: add ${LDDESTDIR} to linking of boot code so ${DESTDIR}/usr/lib
is used instead of /usr/lib

io.c: add #include <machine/cpufunc.h> as instructed by David Greenman to
avoid inb/outb linking errors.
NOTE:  I just discovered that if GNUC is not used the inline functions will not be expanded from the include file and real inb/outb functions would
be needed.
1994-09-18 07:39:55 +00:00
Poul-Henning Kamp
b5173cbeea A small program, which can take a file of any size, format, write and verify
it onto a bunch of floppies in a semi-intelligent way.

Useful for things like:  tar cf - . | gzip -9 | fdwrite -d /dev/rfd0.1720 -v

Where it will keep asking for floppies until tar is done.
1994-09-18 07:39:19 +00:00
Poul-Henning Kamp
9d8044d0d9 libmd no longer built as shared-lib, only static.
Renamed the beforeinstall to test.
1994-09-18 07:22:08 +00:00
Poul-Henning Kamp
0999b624b0 Parallel-port TCP/IP interface can now take any MTU. 1994-09-18 06:12:45 +00:00
Steven Wallace
240baf2f68 Declare fuction setpassive in file cmds.c void and update corresponding
prototype declaration in extern.h.
1994-09-18 05:45:29 +00:00
David Greenman
802265809c Fix from John Kohl:
/usr/libexec/getty doesn't properly interpret the '%d' escape.  It tries
to use %P to get AM or PM, but instead all it gets is "P".

Submitted by:	John Kohl
1994-09-18 04:14:54 +00:00
David Greenman
f3932b979d Various fixes:
modload doesn't honor it's -p argument.

It also will destroy the input file when you don't specify an output
symbol file with -o.

Submitted by:	John Kohl
1994-09-18 04:12:13 +00:00
David Greenman
63f5112ede Kludge to workaround ftp coredumping when password is specified before
login in .netrc.

Submitted by:	John Kohl
1994-09-18 04:09:28 +00:00
Jordan K. Hubbard
061c9be80f New man pages from Wilko Bulte.
Reviewed by:	jkh
Submitted by:	Wilko Bulte
1994-09-18 00:00:36 +00:00
Joerg Wunsch
6b7bd95b6d Fixed the problem where the floppy has incorrectly failed probing
when the drive had been left on a cylinder > 67 after kernel boot. The
most common case for this is booting a kernel that is located on
the inner cylinders of a floppy.

Also removed all occurences of spinwait(), replaced by DELAY.
Nuked a return line saying nothing, this might make Bruce happy 8^)

Submitted by:	partially by Bruce Evans
1994-09-17 18:08:36 +00:00
David Greenman
f38ec702f9 Fix include path. 1994-09-17 17:55:03 +00:00
David Greenman
d4f61326ba Added fdformat utility from 1.1.5. 1994-09-17 17:08:31 +00:00
David Greenman
3a2f7427fe Updated driver to the 1.1.5 version:
date: 1994/05/22 12:35:38;  author: joerg;  state: Exp;  lines: +6 -6
First round of floppy changes. Try making `fd' more robust.

New features:
  .  ioctl command for setting the drive type (density etc.); restricted
     to the super-user
  .  ioctl for getting/seting `drive options'; currently only option
     is FDOPT_NORETRY: inhibit the usual retries; used when verifying
     a newly formatted track

Fixes:
  .  function prototypes
  .  made all internal functions `static'
  .  cleaned up & corrected .h files
  .  restructured, to make the chaotic function sequence more rational
  .  compiled with -Wall, and cleared all warnings
  .  introduced a mirror for the (write-only) `digital output register',
     to avoid the current kludge
  .  device probing completed by seeking/recalibrating, and looking
     for track 0 being found
  .  holding the controller down in reset state while it is idle (and
     thus saving allot of headaches)
  .  make requests fail that are not a multiple of the (physical)
     sector size
  .  removed the fixed physical sector size (512 bytes), allowing for any
     size the controller could handle (128/256/512/1024 bytes)
  .  replaced some silly messages
  .  fixed the TRACE* macro usage, debugging reports should be complete
     now again (debugging output is HUGE! though)
  .  removed fd_timeout for SEEK command; seeks are always reported by
     the controller to succeed, since the `success' only refers to the
     controller's idea of success - there is no hardware line to tell about
     the seek end (other than the `track 0' line)
  .  catch SENSEI's that report about a `terminated due to READY changed'
     status - could happen after a controller reset
  .  converted ``hz / <something>'' divide operations to divisors that are
     powers of two, so gcc can optimize them into shifts
  .  write/format operations are checked against a write-protected medium
     now *prior* starting the operation
  .  error reports of `invalid command' and `wrong cylinder' will cause
     shortcuts in the retrier() now
  .  fixed a bug in the retrier() causing bogus block numbers to be reported
  .  fdformat() does care for errors now

Known Bugs:
  .  no attempts have been made (yet) to improve the performance
  .  sometimes, bogus ``seek/recalib failed'' messages are logged; this
     is still a bug in the driver, but it's not harmful since it's
     usually caught by the retrier()

Reviewed by:
Submitted by:
Obtained from:
1994-09-17 16:56:10 +00:00
Stefan Eßer
56c74915f8 Include <i386/include/cpufunc.h> to have outb() defined ... 1994-09-17 16:51:47 +00:00
David Greenman
789668e2a4 Got rid of compiler warnings. 1994-09-17 13:24:29 +00:00