Commit Graph

57427 Commits

Author SHA1 Message Date
imp
b73b5414e7 Include -DDEFSHELL=1 in Makefile.dist so people boostrapping will
have a sane default.

Also add $FreeBSD$ while I'm here.

Pointed out by: bde
2001-03-01 06:26:32 +00:00
imp
f46c374718 Include <unistd.h> for getopt's interface rather than declare things
individually here.
2001-03-01 06:22:46 +00:00
imp
d9aa3d164d optarg and optind are declared in unistd.h, so don't redundantly
declare them here.
2001-03-01 06:20:51 +00:00
imp
8ea05a7c13 MAXPATHLEN includes the trailing NUL.
Correct array sizes to reflect this.
Correct NUL termination after strncpy.

# Didn't to strncpy -> strlcpy change.
2001-03-01 06:03:17 +00:00
imp
9ff30f68ab MAXPATHLEN contains the trailing NUL. 2001-03-01 06:00:22 +00:00
imp
83cfdca42c MAXPATHLEN is enough.
Also, snprinf is guaranteed by the new ansi standard to NUL terminate the
string, so we don't need to do that ourselves.
2001-03-01 05:52:38 +00:00
dcs
4fa94267e2 All temperature scales are centigrades. Use "Celsius" instead. 2001-03-01 05:51:46 +00:00
imp
2f28911795 MAXPATHLEN already accounts for the trailing NUL, so no need to add one in.
In addition, since we pass readlink MAXPATHLEN - 1, we would have never have
used that extra byte anyway.
2001-03-01 05:49:36 +00:00
imp
40f6e5b06d MAXPATHLEN includes the trailing NUL character, so there's no need to add 1
to it for the size of path.
2001-03-01 05:47:28 +00:00
imp
cb2b79eb74 Remove redundant declaration of optind. It has been declared in unistd.h
for ages.
2001-03-01 05:46:03 +00:00
imp
6da2732b8b o Add support for wall -g. This will send a message to all members of
a given group.
o Minor code style cleanups while I'm here

Reviewed by: bde, kris, markm, audit@
2001-03-01 05:43:12 +00:00
deischen
2d1163e370 Hide the definition of struct __sFILEX and add the needed
lock definitions to it.  flockfile state is now allocated
along with the rest of FILE.  This eliminates the need for a
separate allocation of flockfile state as well as eliminating
the mutex/lock used to serialize its allocation.
2001-03-01 05:22:14 +00:00
deischen
242ddf3c95 s/fstat/_fstat/
Approved by:	phantom
2001-03-01 04:59:01 +00:00
imp
b3f8c9cab9 Document the resource_*_value and resource_query_string families of
functions.  These man pages likely need some markup work, so I've
specifically not added them to the Makefile yet.
2001-03-01 04:28:40 +00:00
gshapiro
8552a40ebe Don't build/install sendmail related items if NO_SENDMAIL is set.
Submitted by:	ru
2001-03-01 03:51:18 +00:00
gshapiro
d383ddef28 Move installation of sendmail helpfile into etc/sendmail/Makefile. It is
a user configurable file and it would benefit from mergemaster.
2001-03-01 03:50:28 +00:00
jlemon
ac28896429 In ascpoll, return revents, not 0. 2001-03-01 03:21:16 +00:00
mjacob
986091ca5c Eliminate the use of the getenv_int stuff we'd been using (with a bitmap
for selecting unit). Instead, use the resource hints mechanism.

One unfortunate situation here is that there is no resource_quad_value
function- which is what I needed for WWN boot time replacement. Worse-
you can't store the hint as just plain

hint.isp.0.nodewwn="0x50000000aaaa0001"

because this gets interpreted as an int- incorrectly because it can't
be converted to an int. I can't even get this as a string. To work
around this particular case for nodewwn && portwwn setting, this
rather grotesque form will be used:

hint.isp.0.nodewwn="w50000000aaaa0001"
hint.isp.0.portwwn="w50000000aaaa0002"

At the same time, if we have no hinted WWN, set the default WWN (which, btw,
gets overridden if the card has valid NVRAM, which is usual) to
0x400000007F000009ull (which translates to NAA == IPv4, 127.0.0.9).

Eliminate more printf's and replace them either with device_printf or
isp_prt calls.
2001-03-01 02:21:36 +00:00
mjacob
28f17c5bc2 Go to a default port and default node wwn model. Eliminate isp_name
and isp_unit and just store the device_t, fer gosh sakes.... Include
sys/bus.h for use by isp_pci.c.
2001-03-01 02:15:58 +00:00
mjacob
855a0afc91 Finally eliminate as many of the printf calls as possible (still leaving
ones where we have a CAM path) and replacing them with calls to isp_prt.,

Eliminate isp_unit references- we no longer have an isp_unit- we now
have an isp_dev that device_get_unit can work with.
2001-03-01 02:14:54 +00:00
obrien
24ec32f09f Stylistic changes mirroring ones done in the FSF/GNU 3.0 development sources. 2001-02-28 22:37:32 +00:00
jkh
95a8f4bd49 Have coff be a default ibcs2 loader if we have ibcs2 support enabled. 2001-02-28 22:28:00 +00:00
iedowse
63324ae546 The kernel did not hold a vnode reference associated with the
`rootvnode' pointer, but vfs_syscalls.c's checkdirs() assumed that
it did. This bug reliably caused a panic at reboot time if any
filesystem had been mounted directly over /.

The checkdirs() function is called at mount time to find any process
fd_cdir or fd_rdir pointers referencing the covered mountpoint
vnode. It transfers these to point at the root of the new filesystem.
However, this process was not reversed at unmount time, so processes
with a cwd/root at a mount point would unexpectedly lose their
cwd/root following a mount-unmount cycle at that mountpoint.

This change should fix both of the above issues. Start_init() now
holds an extra vnode reference corresponding to `rootvnode', and
dounmount() releases this reference when the root filesystem is
unmounted just before reboot. Dounmount() now undoes the actions
taken by checkdirs() at mount time; any process cdir/rdir pointers
that reference the root vnode of the unmounted filesystem are
transferred to the now-uncovered vnode.

Reviewed by:	bde, phk
2001-02-28 20:54:28 +00:00
jhay
3af5c788c3 The secure temporary directory is always created, so always remove it. 2001-02-28 19:21:44 +00:00
julian
cceb0beb35 Shuffle netgraph mutexes a bit and hold a reference on a node
from the function that is calling the destructor.
2001-02-28 18:49:09 +00:00
obrien
68b225051b Use _PATH_DEV.
Reviewed by:	grog
2001-02-28 17:50:29 +00:00
obrien
130eca7d1b Merge in strtoul.3 rev 1.11 mdoc(7) police changes:
.Nd line broken in rev 1.10
	use .Bx for ``BSD''
2001-02-28 17:46:56 +00:00
ru
f4325cbb8b Eliminate mdocNG warnings caused by misplaced or extraneous macro calls. 2001-02-28 17:38:53 +00:00
jlemon
15e59884c9 Use EV_SET() macro to initialize kevent structure. 2001-02-28 16:16:31 +00:00
dwmalone
dceceb9475 Add missing prefix for nano, I presume this was missing 'cos of the
prefix recusrion bug. Remove units which can be derived using prefixes
and other units.

Add new prefixes for 2^10, 2^20, etc...
2001-02-28 16:00:32 +00:00
dwmalone
24a3b712aa Give units a bit of a cleanup:
1) Fix a bug where the recursion on prefixes where if recusrion failed
	then the next attempt started too far along the string.
2) Up some internal limits that we were about to hit off.
3) Change the constness and signedness of some things and complete missing
	prototypes.
4) Remove the readerror function 'cos it could print out the wrong
	wrong file name. Replace it with more useful error messages.
5) Use sizeof when passing buffers to fgets.
6) Warn about empty prefix definitions.

Reviewed by:	iedowse
2001-02-28 15:57:38 +00:00
jlemon
f962d0dc9b Use the new EV_SET macro to insure that all fields in struct kevent
are correctly initialized before use.  This should fix the problem
with DNS.

Pointy hat to:  me
2001-02-28 15:47:47 +00:00
ru
e7ebccfa37 Prepare for mdocNG. 2001-02-28 13:18:04 +00:00
ru
1f34e99769 mdoc(7) police: prepare for mdocNG. 2001-02-28 13:11:51 +00:00
ru
eb11ec5a72 mdoc(7) police: fix the .Nd line broken in previous revision.
Noticed by:	bde

Use .Bx for ``BSD''.
2001-02-28 12:54:16 +00:00
obrien
a5bd8bc113 Fix style bug I introduced with rev 1.13 (rcsid after includes).
Along with CSRG id lossage in rev 1.11.

Submitted by:	bde
2001-02-28 11:06:04 +00:00
obrien
5fa97ec5bf Allow "NOSHARED" to be overridden.
Submitted by:	bde
2001-02-28 10:46:50 +00:00
phk
78a2aff290 Fix jails. 2001-02-28 09:38:48 +00:00
gshapiro
3fd57baf14 ip6fw doesn't support -q if reading from a file so don't use ${fw6cmd} which
may have a -q if ${ipv6_firewall_quiet} is set.

Reviewed by:	kris
2001-02-28 06:51:17 +00:00
imp
e32fb0047a It is now safe to go back into the water. 2001-02-28 05:45:16 +00:00
dillon
951d4c0a1d Linux does not filesystem-sync file-backed writable mmap pages on
a regular basis.  Adjust our linux emulation to conform.  This will
cause more dirty pages to be left for the pagedaemon to deal with,
but our new low-memory handling code can deal with it.   The linux
way appears to be a trend, and we may very well make MAP_NOSYNC the
default for FreeBSD as well (once we have reasonable sequential
write-behind heuristics for random faults).
(will be MFC'd prior to 4.3 freeze)

Suggested by: Andrew Gallatin
2001-02-28 04:30:27 +00:00
dillon
86a16a841c If we intend to make the page writable without requiring another fault,
make sure that PG_NOSYNC is properly set.  Previously we only set it
for a write-fault, but this can occur on a read-fault too.
(will be MFCd prior to 4.3 freeze)
2001-02-28 04:26:43 +00:00
dillon
f1c1ec2bab Fix lockup for loopback NFS mounts. The pipelined I/O limitations could be
hit on the client side and prevent the server side from retiring writes.
Pipeline operations turned off for all READs (no big loss since reads are
usually synchronous) and for NFS writes, and left on for the default bwrite().
(MFC expected prior to 4.3 freeze)

Testing by: mjacob, dillon
2001-02-28 04:13:11 +00:00
gshapiro
2ab101b239 Fix dependencies and cleanup spacing in the file 2001-02-28 04:04:07 +00:00
gshapiro
4e167066ca Fix dependencies and use a better variable name 2001-02-28 04:03:51 +00:00
obrien
bdfc38bbbc Update HISTORY. 2001-02-28 03:33:44 +00:00
peter
0595f4ab95 newbus_ioconf() is long gone 2001-02-28 02:55:15 +00:00
jake
623f06756a Sigh. Try to get priorities sorted out. Don't bother trying to
update native priority, it is diffcult to get right and likely
to end up horribly wrong.  Use an honestly wrong fixed value
that seems to work; PUSER for user threads, and the interrupt
priority for ithreads.  Set it once when the process is created
and forget about it.

Suggested by:	bde
Pointy hat:	me
2001-02-28 02:53:44 +00:00
peter
b31794bc17 Some more tidying up. we dont use config-dependent anyware. Eliminate
some duplicate code (cut/paste bug?). tidy up some other minor stuff.
2001-02-28 02:53:32 +00:00
gshapiro
5e2296a1b5 Add a pointer to the ORBS web site for more DNS black hole lists. 2001-02-28 02:47:52 +00:00