]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoFix a bug in MAKEDEV -- when creating /dev/usb, the code was using
luigi [Thu, 24 Oct 2002 17:59:58 +0000 (17:59 +0000)]
Fix a bug in MAKEDEV -- when creating /dev/usb, the code was using
whatever random value was already in $unit. It happened to work
because the variable is often unset, but this is not always the
case e.g. when you call "MAKEDEV sio2 usb ..."

This affects -stable as well.

Reviewed by: n_hibma
Silence from: re
MFC after: 3 days

21 years agoDon't try to be cute and save a call/return by implementing a degenerate
phk [Thu, 24 Oct 2002 17:55:49 +0000 (17:55 +0000)]
Don't try to be cute and save a call/return by implementing a degenerate
vrele() inline.

21 years agoanother int * to size_t * change for getbsize() to make it compile
gallatin [Thu, 24 Oct 2002 17:43:56 +0000 (17:43 +0000)]
another int * to size_t *  change for getbsize() to make it compile
on LP64 hosts

21 years agogetbsize() now takes a pointer to a size_t as its first arg. A pointer
gallatin [Thu, 24 Oct 2002 17:27:32 +0000 (17:27 +0000)]
getbsize() now takes a pointer to a size_t as its first arg.  A pointer
to an int no longer works on an LP64 platform...

21 years agoReport the MONITOR bit.
phk [Thu, 24 Oct 2002 17:23:52 +0000 (17:23 +0000)]
Report the MONITOR bit.

21 years agoProvide kernel options for the various MAC policy modules so that
rwatson [Thu, 24 Oct 2002 17:21:40 +0000 (17:21 +0000)]
Provide kernel options for the various MAC policy modules so that
they may be statically linked into the kernel.  Note that statically
linked modules, unlike dynamically linked modules, get INVARIANTS,
so if there are INVARIANTS failures, you'll bump into them rather
than not.  Add the options to NOTES.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agodevice rc no longer requires a count since jhb newbussified the rc
rwatson [Thu, 24 Oct 2002 16:46:53 +0000 (16:46 +0000)]
device rc no longer requires a count since jhb newbussified the rc
device driver.

21 years agoHave ftpd specify the LOGIN_SETMAC flag to setlogincontext() so that
rwatson [Thu, 24 Oct 2002 16:19:52 +0000 (16:19 +0000)]
Have ftpd specify the LOGIN_SETMAC flag to setlogincontext() so that
MAC labels are set if MAC is enabled and configured for the user
logging in.

Note that lukemftpd is not considered a supported application when
MAC is enabled, as it does not use the standard system interfaces for
managing user contexts; if lukemftpd is used with labeled MAC policies,
it will not properly give up privileges when switching to the user
account.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years ago# WARNING: lukemftpd does not support PAM, MAC, per-class nologin files,
rwatson [Thu, 24 Oct 2002 15:46:10 +0000 (15:46 +0000)]
# WARNING: lukemftpd does not support PAM, MAC, per-class nologin files,
# or any login.conf resource limits or features; use it only if this is
# appropriate for your environment.  If you require these features, use
# the regular FreeBSD ftpd below.

Discourage users from using lukemftpd if they rely any of these standard
FreeBSD features that are fully supported by our native ftpd.  There
may be other features that are not yet supported that I have not yet
discovered.

21 years agoInstall mac_partition include files.
rwatson [Thu, 24 Oct 2002 15:25:37 +0000 (15:25 +0000)]
Install mac_partition include files.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agorespect TDF_SINTR, also for SINGLE_NO_EXIT threading mode, if a thread
davidxu [Thu, 24 Oct 2002 14:43:48 +0000 (14:43 +0000)]
respect TDF_SINTR, also for SINGLE_NO_EXIT threading mode, if a thread
was already suspended, do nothing.

21 years ago#ifdef out assignToPartition on non x86 arches to unbreak the world
gallatin [Thu, 24 Oct 2002 13:35:52 +0000 (13:35 +0000)]
#ifdef out assignToPartition on non x86 arches to unbreak the world
on alpha, sparc64 and ia64

21 years agoEliminate warnings.
ru [Thu, 24 Oct 2002 13:31:34 +0000 (13:31 +0000)]
Eliminate warnings.

21 years agoPreprocess with tbl(1), eliminate warnings.
ru [Thu, 24 Oct 2002 13:21:29 +0000 (13:21 +0000)]
Preprocess with tbl(1), eliminate warnings.

21 years agoRestored sigaction's name in its prototype.
bde [Thu, 24 Oct 2002 13:03:46 +0000 (13:03 +0000)]
Restored sigaction's name in its prototype.

21 years agoFixed a warning.
ru [Thu, 24 Oct 2002 12:59:10 +0000 (12:59 +0000)]
Fixed a warning.

21 years agoWhen expanding a specific [1-char] variable, only expand said specific
jmallett [Thu, 24 Oct 2002 12:57:42 +0000 (12:57 +0000)]
When expanding a specific [1-char] variable, only expand said specific
[1-char] variable.  Don't just automatically expand something which
starts with that character.

Obtained from: OpenBSD [3 years ago!]

21 years ago* Modernize aio(4), providing instructions for static and dynamic kernel
sheldonh [Thu, 24 Oct 2002 12:57:05 +0000 (12:57 +0000)]
* Modernize aio(4), providing instructions for static and dynamic kernel
  linking.

* Fix disorder in the SEE ALSO sections of aio_*(2).

* Remove unnecessary cross-references from the SEE ALSO sections of
  aio_*(2); config(8), kldload(8) and kldunload(8) are cross-referenced
  from aio(4).

* Remove the KERNEL OPTIONS sections from aio_*(2), now that these
  pages cross-reference aio(4), which contains suitable kernel linking
  reference material.

21 years agoFixed references and a bunch of other warnings.
ru [Thu, 24 Oct 2002 12:56:20 +0000 (12:56 +0000)]
Fixed references and a bunch of other warnings.

21 years agoAdd cross-references to the aio(4) manual page.
des [Thu, 24 Oct 2002 12:22:57 +0000 (12:22 +0000)]
Add cross-references to the aio(4) manual page.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoAdd a simple man page for the aio facility.
des [Thu, 24 Oct 2002 12:22:19 +0000 (12:22 +0000)]
Add a simple man page for the aio facility.

21 years agoA version of SGR disabling stuff that is believed to be safe.
ru [Thu, 24 Oct 2002 11:05:58 +0000 (11:05 +0000)]
A version of SGR disabling stuff that is believed to be safe.

Submitted by: Werner LEMBERG <wl@gnu.org>

21 years agoAdd new loader tunable hw.acpi.ec.event_driven so that we control
iwasaki [Thu, 24 Oct 2002 10:56:33 +0000 (10:56 +0000)]
Add new loader tunable hw.acpi.ec.event_driven so that we control
EcWaitEventIntr()'s behavior.
Some EC controllers require this for working properly (including
sleep/wakeup).

21 years agoFix kernel build on sparc64 in the IPDIVERT case.
mux [Thu, 24 Oct 2002 09:58:50 +0000 (09:58 +0000)]
Fix kernel build on sparc64 in the IPDIVERT case.

21 years agodon't forget to remove kse from idle queue.
davidxu [Thu, 24 Oct 2002 09:16:46 +0000 (09:16 +0000)]
don't forget to remove kse from idle queue.

21 years agoMove thread related code from kern_proc.c to kern_thread.c.
julian [Thu, 24 Oct 2002 08:46:34 +0000 (08:46 +0000)]
Move thread related code from kern_proc.c to kern_thread.c.
Add code to free KSEs and KSEGRPs on exit.
Sort KSE prototypes in proc.h.
Add the missing kse_exit() syscall.

ksetest now does not leak KSEs and KSEGRPS.

Submitted by: (parts) davidxu

21 years ago - Now that uma_zalloc_internal is not the fast path don't be so fussy about
jeff [Thu, 24 Oct 2002 07:59:03 +0000 (07:59 +0000)]
 - Now that uma_zalloc_internal is not the fast path don't be so fussy about
   extra function calls.  Refactor uma_zalloc_internal into seperate functions
   for finding the most appropriate slab, filling buckets, allocating single
   items, and pulling items off of slabs.  This makes the code significantly
   cleaner.
 - This also fixes the "Returning an empty bucket." panic that a few people
   have seen.

Tested On: alpha, x86

21 years agoo Fix a size calculation based on a 8KB page, while under EFI
marcel [Thu, 24 Oct 2002 07:53:12 +0000 (07:53 +0000)]
o  Fix a size calculation based on a 8KB page, while under EFI
   pages are 4KB.
o  As a second order fix, don't assume we have enough space
   after the bootinfo block left in a page to hold the memory
   map.
o  A third order fix as that we removed the assumption that a
   bootinfo block fits in a single 8KB page.

PR: ia64/39415
submitted by: Espen Skoglund <esk@ira.uka.de>

21 years agoRemove unneeded variables.
nyan [Thu, 24 Oct 2002 07:35:30 +0000 (07:35 +0000)]
Remove unneeded variables.

21 years agoThe rc driver is not needed for pc98.
nyan [Thu, 24 Oct 2002 07:18:24 +0000 (07:18 +0000)]
The rc driver is not needed for pc98.

21 years agoBuild the following modules on ia64 as well:
marcel [Thu, 24 Oct 2002 07:16:24 +0000 (07:16 +0000)]
Build the following modules on ia64 as well:
ar, asr, bktr, cardbus, cbb, ep, exca, hea, hfa, ipfilter, lomac,
netgraph, pccard, rc, sound, sppp, vinum.

21 years ago - Move the destructor calls so that they are not called with the zone lock
jeff [Thu, 24 Oct 2002 06:17:30 +0000 (06:17 +0000)]
 - Move the destructor calls so that they are not called with the zone lock
   held.  This avoids a lock order reversal when destroying zones.
   Unfortunately, this also means that the free checks are not done before
   the destructor is called.

Reported by: phk

21 years agoUnbreak by merging the change in r1.51 of src/libexec/ftpd/Makefile.
kuriyama [Thu, 24 Oct 2002 04:55:25 +0000 (04:55 +0000)]
Unbreak by merging the change in r1.51 of src/libexec/ftpd/Makefile.

21 years agoDuplicate the variable name in the v->name field, as otherwise it points to
jmallett [Thu, 24 Oct 2002 04:10:55 +0000 (04:10 +0000)]
Duplicate the variable name in the v->name field, as otherwise it points to
data that will be modified.  And do the appropriate thing now and free the
v->name buffer along with other relinquished memory.

XXX There is duplication here of destroying a Var, which is probably bogus,
and probably missed in a few places.

21 years agoRemove gcc-specific optimization/debugging CFLAGS
kris [Thu, 24 Oct 2002 03:56:16 +0000 (03:56 +0000)]
Remove gcc-specific optimization/debugging CFLAGS

21 years agoReplace wcsstr() with an implementation based on strstr(), which is far
tjr [Thu, 24 Oct 2002 02:53:45 +0000 (02:53 +0000)]
Replace wcsstr() with an implementation based on strstr(), which is far
more efficient. The problem with the previous implementation was that it
calculated the length of the first argument ("big") with wcslen() when
it was not necessary.

21 years agoRestore Berkeley SCCS id.
tjr [Thu, 24 Oct 2002 02:48:45 +0000 (02:48 +0000)]
Restore Berkeley SCCS id.

21 years agoCommit of Makefile missed in earlier pass.
rwatson [Thu, 24 Oct 2002 02:04:03 +0000 (02:04 +0000)]
Commit of Makefile missed in earlier pass.

Submitted by: kuriyama

21 years agoUnbreak the automatic remapping of an INADDR_ANY destination address
iedowse [Thu, 24 Oct 2002 02:02:34 +0000 (02:02 +0000)]
Unbreak the automatic remapping of an INADDR_ANY destination address
to the primary local IP address when doing a TCP connect(). The
tcp_connect() code was relying on in_pcbconnect (actually in_pcbladdr)
modifying the passed-in sockaddr, and I failed to notice this in
the recent change that added in_pcbconnect_setup(). As a result,
tcp_connect() was ending up using the unmodified sockaddr address
instead of the munged version.

There are two cases to handle: if in_pcbconnect_setup() succeeds,
then the PCB has already been updated with the correct destination
address as we pass it pointers to inp_faddr and inp_fport directly.
If in_pcbconnect_setup() fails due to an existing but dead connection,
then copy the destination address from the old connection.

21 years agoMinor tweaks to the acpi.4 man page: xref acpiconf.8, and one of the
rwatson [Thu, 24 Oct 2002 01:44:50 +0000 (01:44 +0000)]
Minor tweaks to the acpi.4 man page: xref acpiconf.8, and one of the
bugs (device naming) isn't present [anymore].

Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>

21 years agoRemove the Standards section again until we get these functions sorted
tjr [Thu, 24 Oct 2002 01:24:26 +0000 (01:24 +0000)]
Remove the Standards section again until we get these functions sorted
out. This will probably have to wait until after 5.0-R.

21 years agoPlace mac_prepare() with the other mac_prepare*() functions.
chris [Thu, 24 Oct 2002 01:16:56 +0000 (01:16 +0000)]
Place mac_prepare() with the other mac_prepare*() functions.

21 years agoAttempt improved use of fts results: use the correct path to the
rwatson [Thu, 24 Oct 2002 01:01:53 +0000 (01:01 +0000)]
Attempt improved use of fts results: use the correct path to the
object to retrieve label information on, rather than directly
consuming the fts-provided paths (none of which are quite right).
This is based on the similar readlink() code, and may contain
the same bugs.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agomac_free() no longer accepts a void * parameter; only mac_t's are supposed
chris [Thu, 24 Oct 2002 01:01:29 +0000 (01:01 +0000)]
mac_free() no longer accepts a void * parameter; only mac_t's are supposed
to be passed.  Point this out in a warning notice, which will eventually
go away, sometime between now and -RELEASE.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoTeach "ls -Z" to use the policy-agnostic MAC label interfaces rather
rwatson [Thu, 24 Oct 2002 00:07:30 +0000 (00:07 +0000)]
Teach "ls -Z" to use the policy-agnostic MAC label interfaces rather
than the LOMAC-specific interfaces for listing MAC labels.  This permits
ls to view MAC labels in a manner similar to getfmac, when ls is used
with the -l argument.  Next generation LOMAC will use the MAC Framework
so should "just" work with this and other policies.  Not the prettiest
code in the world, but then, neither is ls(1).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoUse the MAC interface to list process MAC labels rather than using
rwatson [Thu, 24 Oct 2002 00:00:57 +0000 (00:00 +0000)]
Use the MAC interface to list process MAC labels rather than using
the LOMAC-specific interface (which is being deprecated).  The
revised LOMAC using the MAC framework will export levels listable
using this mechanism.

Approved by: re
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove superfluous empty "FILES" section.
chris [Wed, 23 Oct 2002 23:56:15 +0000 (23:56 +0000)]
Remove superfluous empty  "FILES" section.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoRemove hard sentence breaks.
chris [Wed, 23 Oct 2002 23:55:23 +0000 (23:55 +0000)]
Remove hard sentence breaks.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoProvide a simple sample labeled access control policy, mac_partition.
rwatson [Wed, 23 Oct 2002 23:36:27 +0000 (23:36 +0000)]
Provide a simple sample labeled access control policy, mac_partition.
This policy can be loaded dynamically, and assigns each process a
partition number, as well as permitting processes to operate outside
the partition.  Processes contained in a partition can only "see"
processes inside the same partition, so it's a little like jail.
The partition of a user can be set using the label mechanisms in
login.conf.  This sample policy is a good starting point for developers
wanting to learn about how to produce labeled policies, as it labels
only one kernel object, the process credential.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoProvide a simple sample labeled access control policy, mac_partition.
rwatson [Wed, 23 Oct 2002 23:36:26 +0000 (23:36 +0000)]
Provide a simple sample labeled access control policy, mac_partition.
This policy can be loaded dynamically, and assigns each process a
partition number, as well as permitting processes to operate outside
the partition.  Processes contained in a partition can only "see"
processes inside the same partition, so it's a little like jail.
The partition of a user can be set using the label mechanisms in
login.conf.  This sample policy is a good starting point for developers
wanting to learn about how to produce labeled policies, as it labels
only one kernel object, the process credential.

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove efree(), it isn't used consistently enough to even pretend that it
jmallett [Wed, 23 Oct 2002 23:16:43 +0000 (23:16 +0000)]
Remove efree(), it isn't used consistently enough to even pretend that it
might help on the systems it could possibly be used as a bandaid for.  In
fact, the only thing it's useful for is instrumenting free(3) calls, and in
that capacity, it's better served as a local patch, than a public wrapper.

21 years agoRename ifconfig's "mac" argument to "maclabel" to prevent confusion
rwatson [Wed, 23 Oct 2002 22:50:04 +0000 (22:50 +0000)]
Rename ifconfig's "mac" argument to "maclabel" to prevent confusion
regarding 802.1 MAC and Mandatory Access Control (MAC).  Some
potential for confusion remains further in other areas of the
system regarding Message Authentication Codes (MAC).

Requested by: wollman
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoFix for changed getbsize arg type.
markm [Wed, 23 Oct 2002 22:09:05 +0000 (22:09 +0000)]
Fix for changed getbsize arg type.

21 years agoWe must be careful to avoid recursive copy-on-write faults when
mckusick [Wed, 23 Oct 2002 21:47:02 +0000 (21:47 +0000)]
We must be careful to avoid recursive copy-on-write faults when
trying to clean up during disk-full senarios.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove the hack to build groff statically on alpha, now that the rtld
gallatin [Wed, 23 Oct 2002 21:28:52 +0000 (21:28 +0000)]
Remove the hack to build groff statically on alpha, now that the rtld
has been extended to grok binaries with only one PLT_LOAD segment

An UPDATING entry about this is pending review..

Approved by: ru

21 years agoMore lobotomy:
phk [Wed, 23 Oct 2002 21:05:42 +0000 (21:05 +0000)]
More lobotomy:
        remove CHUNK_BSD_COMPAT, it was a bad idea, and now its gone.
        remove DOSPTYP_ONTRACK, missed in OnTrack removal commit.
        unifdef -DHAVE_GEOM
make tst01 compile again.

21 years agoRemove another 10 mindless #ifdefs.
phk [Wed, 23 Oct 2002 20:35:42 +0000 (20:35 +0000)]
Remove another 10 mindless #ifdefs.

21 years agoWe always need sys/pcpu.h now, not just for the SMP case.
jhb [Wed, 23 Oct 2002 20:18:33 +0000 (20:18 +0000)]
We always need sys/pcpu.h now, not just for the SMP case.

Approved by: jake

21 years agoRely on sysctl kern.disks to be there, and get rid of one of the far too
phk [Wed, 23 Oct 2002 20:15:10 +0000 (20:15 +0000)]
Rely on sysctl kern.disks to be there, and get rid of one of the far too
many lists of disk device driver names in the system.  At this point
we should really get the names from the XML, but hey...

21 years agoRemove unnecessary ioctls tickling kernel side to realize that we fiddled
phk [Wed, 23 Oct 2002 20:02:33 +0000 (20:02 +0000)]
Remove unnecessary ioctls tickling kernel side to realize that we fiddled
with the disk.  GEOM will automatically retaste when we closet he filedesc.

21 years agoUntangle #ifdefs in the write-end of things by giving each arch its
phk [Wed, 23 Oct 2002 19:52:32 +0000 (19:52 +0000)]
Untangle #ifdefs in the write-end of things by giving each arch its
own file and own copy of WriteDisk() to do things in.

This should have happened years ago, instead of adding #ifdefs all
over the place.

21 years agoSeparate the struct disklabel filling stuff from the rest of Write_FreeBSD().
phk [Wed, 23 Oct 2002 19:32:18 +0000 (19:32 +0000)]
Separate the struct disklabel filling stuff from the rest of Write_FreeBSD().

21 years agoChange the type of an unused variable to appease a warning.
markm [Wed, 23 Oct 2002 19:10:15 +0000 (19:10 +0000)]
Change the type of an unused variable to appease a warning.

21 years agoA crude temporary hack to fix building of ms(7) formatted documents
ru [Wed, 23 Oct 2002 19:04:00 +0000 (19:04 +0000)]
A crude temporary hack to fix building of ms(7) formatted documents
while I am working on a real fix.

21 years agoAdjust for getbsize argument type change.
markm [Wed, 23 Oct 2002 19:02:17 +0000 (19:02 +0000)]
Adjust for getbsize argument type change.

21 years agoAdjust argument passed to getbsize().
markm [Wed, 23 Oct 2002 18:55:20 +0000 (18:55 +0000)]
Adjust argument passed to getbsize().

21 years agoRemove NO_GEOM from sparc64.
phk [Wed, 23 Oct 2002 18:27:37 +0000 (18:27 +0000)]
Remove NO_GEOM from sparc64.

Reminded by: jhb

21 years agoRemove duplicate declaration.
markm [Wed, 23 Oct 2002 17:35:11 +0000 (17:35 +0000)]
Remove duplicate declaration.

21 years agoRemove unneeded function prototypes.
markm [Wed, 23 Oct 2002 16:20:12 +0000 (16:20 +0000)]
Remove unneeded function prototypes.

21 years ago- New-bussify the rc(4) device driver.
jhb [Wed, 23 Oct 2002 15:53:09 +0000 (15:53 +0000)]
- New-bussify the rc(4) device driver.
- Add detach support to the driver so that you can kldunload the module.
  Note that currently rc_detach() fails to detach a unit if any of its
  child devices are open, thus a kldunload will fail if any of the tty
  devices are currently open.
- sys/i386/isa/ic/cd180.h was moved to sys/dev/ic/cd180.h as part of
  this change.

Requested by: rwatson
Tested by: rwatson

21 years agoDon't send/recieve packets when the interface is down.
simokawa [Wed, 23 Oct 2002 15:16:37 +0000 (15:16 +0000)]
Don't send/recieve packets when the interface is down.

21 years agonpx(4) doesn't honor port hints so don't provide an example one.
jhb [Wed, 23 Oct 2002 14:52:53 +0000 (14:52 +0000)]
npx(4) doesn't honor port hints so don't provide an example one.

21 years agoFix cut&paste mistake.
phk [Wed, 23 Oct 2002 14:37:43 +0000 (14:37 +0000)]
Fix cut&paste mistake.

21 years agoMake the first argument of getbsize a size_t* instead of an int*, as this is what...
markm [Wed, 23 Oct 2002 14:18:07 +0000 (14:18 +0000)]
Make the first argument of getbsize a size_t* instead of an int*, as this is what the quantity actually is. Fix an easy const while I'm here.

21 years ago- Dequeue OCBs more safely in sbp_abort_all_ocbs().
simokawa [Wed, 23 Oct 2002 13:04:02 +0000 (13:04 +0000)]
- Dequeue OCBs more safely in sbp_abort_all_ocbs().

21 years ago- The GEOM system does not work on pc98.
nyan [Wed, 23 Oct 2002 13:00:09 +0000 (13:00 +0000)]
- The GEOM system does not work on pc98.
- Fix to build w/o the HAVE_GEOM option.

21 years agoMFi386: revision 1.10
nyan [Wed, 23 Oct 2002 12:54:05 +0000 (12:54 +0000)]
MFi386: revision 1.10

21 years agoOnly define SEEK_{SET,CUR,END} if not already defined (by <stdio.h>)
phk [Wed, 23 Oct 2002 12:13:10 +0000 (12:13 +0000)]
Only define SEEK_{SET,CUR,END} if not already defined (by <stdio.h>)

21 years agoNeed to run lint1 from ${WORLDTMP}/usr/libexec during buildworld.
ru [Wed, 23 Oct 2002 12:05:27 +0000 (12:05 +0000)]
Need to run lint1 from ${WORLDTMP}/usr/libexec during buildworld.

Spotted by: fjoe

21 years agoFix the NetBSD RCS id's on these files; somehow they were initially
tjr [Wed, 23 Oct 2002 11:08:40 +0000 (11:08 +0000)]
Fix the NetBSD RCS id's on these files; somehow they were initially
committed with the tags unexpanded.

21 years agoReimplement more efficiently, using a single forward scan (like strrchr(3))
tjr [Wed, 23 Oct 2002 10:52:04 +0000 (10:52 +0000)]
Reimplement more efficiently, using a single forward scan (like strrchr(3))
instead of scanning forwards to find the end of the string then scanning
backwards to find the character.

21 years agoReimplement, handling the case where c == L'\0' correctly and fixing
tjr [Wed, 23 Oct 2002 10:47:47 +0000 (10:47 +0000)]
Reimplement, handling the case where c == L'\0' correctly and fixing
some style(9) bugs.

21 years agoAdd the new extra argument also in the alpha case.
phk [Wed, 23 Oct 2002 10:47:00 +0000 (10:47 +0000)]
Add the new extra argument also in the alpha case.

21 years agoquery ip6.arpa then ip6.int for IPv6 reverse lookup. follows RFC3152.
ume [Wed, 23 Oct 2002 10:45:09 +0000 (10:45 +0000)]
query ip6.arpa then ip6.int for IPv6 reverse lookup.  follows RFC3152.

Obtained from: KAME
MFC after: 1 week

21 years agoWhitespace cleanup.
des [Wed, 23 Oct 2002 10:26:54 +0000 (10:26 +0000)]
Whitespace cleanup.

21 years agoBe consistent about declaring a function "static", and consistent
markm [Wed, 23 Oct 2002 10:23:38 +0000 (10:23 +0000)]
Be consistent about declaring a function "static", and consistent
about the type of argv.

21 years agoConstify, staticify, rationalise types and fix other related warnings.
markm [Wed, 23 Oct 2002 10:20:01 +0000 (10:20 +0000)]
Constify, staticify, rationalise types and fix other related warnings.

21 years agoAdd a Standards section, claiming conformance to IEEE Std. 1003.1-2001.
tjr [Wed, 23 Oct 2002 10:16:21 +0000 (10:16 +0000)]
Add a Standards section, claiming conformance to IEEE Std. 1003.1-2001.
Also add a note to the Bugs section pointing out that strerror() and
perror() share the same static buffer.

21 years agoConstify to squash some warnings.
markm [Wed, 23 Oct 2002 10:15:44 +0000 (10:15 +0000)]
Constify to squash some warnings.

21 years agoVery minor whitespace/style nit.
markm [Wed, 23 Oct 2002 10:14:30 +0000 (10:14 +0000)]
Very minor whitespace/style nit.

21 years agoPut parentheses around function-like macros to shut up warnings.
markm [Wed, 23 Oct 2002 10:12:12 +0000 (10:12 +0000)]
Put parentheses around function-like macros to shut up warnings.

21 years agoKill EOL spaces.
maxim [Wed, 23 Oct 2002 10:07:55 +0000 (10:07 +0000)]
Kill EOL spaces.

Approved by: luigi
MFC after: 1 week

21 years agoUse syslog for messages about dropped sessions, do not flood a console.
maxim [Wed, 23 Oct 2002 10:05:19 +0000 (10:05 +0000)]
Use syslog for messages about dropped sessions, do not flood a console.

Suggested by: Eugene Grosbein <eugen@kuzbass.ru>
Approved by: luigi
MFC after: 1 week

21 years agoTranslate to English.
des [Wed, 23 Oct 2002 08:55:14 +0000 (08:55 +0000)]
Translate to English.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r105770,
des [Wed, 23 Oct 2002 08:21:00 +0000 (08:21 +0000)]
This commit was generated by cvs2svn to compensate for changes in r105770,
which included commits to RCS files with non-trunk default branches.

21 years ago(MFP4#19900) Write message to stdout, not stderr.
des [Wed, 23 Oct 2002 08:21:00 +0000 (08:21 +0000)]
(MFP4#19900) Write message to stdout, not stderr.

Submitted by: jmallet
Sponsored by: Rachel Hestilow <rachel@jerkcity.com>

21 years agoupdate version numbers to (consistenly):
assar [Wed, 23 Oct 2002 06:12:21 +0000 (06:12 +0000)]
update version numbers to (consistenly):

krb4 1.0.5 fb1 (including the kadmind fix)
heimdal 0.5 fb1 (including the kadmind fix)

21 years agoThis commit was generated by cvs2svn to compensate for changes in r105765,
assar [Wed, 23 Oct 2002 06:10:08 +0000 (06:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r105765,
which included commits to RCS files with non-trunk default branches.

21 years agoimport 1.29 to fix buffer overflow:
assar [Wed, 23 Oct 2002 06:10:08 +0000 (06:10 +0000)]
import 1.29 to fix buffer overflow:

check the length of the authenticator and rlen

Obtained from: Heimdal CVS

21 years agoAdd two missing </para> I noticed during translation.
ue [Wed, 23 Oct 2002 06:02:16 +0000 (06:02 +0000)]
Add two missing </para> I noticed during translation.