]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years ago - removed unnecessary includes
Peter Grehan [Thu, 19 Sep 2002 04:28:45 +0000 (04:28 +0000)]
 - removed unnecessary includes
 - converted inline asm to C for int enable
 - shifted clearing of 'cold' to end of routine

Approved by: benno

22 years agoRepo copied to <sys/smbus/smb.h>
Peter Wemm [Thu, 19 Sep 2002 04:13:43 +0000 (04:13 +0000)]
Repo copied to <sys/smbus/smb.h>

22 years agoRepo copied to <sys/iicbus/iic.h>
Peter Wemm [Thu, 19 Sep 2002 04:13:29 +0000 (04:13 +0000)]
Repo copied to <sys/iicbus/iic.h>

22 years agointmax_t is printed with %jd, not %lld.
David E. O'Brien [Thu, 19 Sep 2002 03:55:30 +0000 (03:55 +0000)]
intmax_t is printed with %jd, not %lld.

22 years agoReturn the correct environment name for 64-bit platforms in the
Garrett Wollman [Thu, 19 Sep 2002 03:47:36 +0000 (03:47 +0000)]
Return the correct environment name for 64-bit platforms in the
_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS case.

22 years agosimos.c needs a to be updated from the old pci shims. Yell loudly but
Peter Wemm [Thu, 19 Sep 2002 03:40:17 +0000 (03:40 +0000)]
simos.c needs a to be updated from the old pci shims.  Yell loudly but
stop breaking alpha LINT.

22 years agoCompletely revamp the way getconf(1) works, for better adherence to the
Garrett Wollman [Thu, 19 Sep 2002 03:39:03 +0000 (03:39 +0000)]
Completely revamp the way getconf(1) works, for better adherence to the
intent of the Standard.

- Make getconf able to distinguish between configuration variables which
  are entirely unknown and those which are merely not defined in the
  compilation environment.  The latter now get a more appropriate
  "undefined\n" result rather than a diagnostic.  This may not be
  exactly right, but it's closer to the intent of the Standard than
  the previous behavior.

- Support ``programming environments'' by validating that the environment
  requested with the `-v' flag is the one-and-only execution environment.
  (If more environments are supported for some platforms in the future,
  multiple getconf(1) executables will be required, but a simple edit in
  progenv.gperf will enable automatic support for it.)  Document POSIX
  standard programming environments.

- Add all of the 1003.1-2001 configuration variables.  FreeBSD does not
  support all of these (including some that are mandatory); getconf will
  later be fixed to break the world should a required variable not be
  defined.

As a result of all these changes, gperf is no longer adequate.  Keep the
overall format and names of the files for now, to preserve revision history.
Use an awk script to process the .gperf files into C source, which does a
few things that gperf, as a more general tool, cannot do.  The keyword
recognition function is no longer a perfect hash function.

This may obviate the need for gperf in the source tree.

- Add a small compile-time regression test to break the build if any of the
  .gperf files declare conflicting token sets.  (gperf itself would have done
  this for the simple case of duplicate tokens in the same input file.)

22 years agoAdd Yet Another Duplicate of the font.h and ukbdmap.h rules. Remove
Peter Wemm [Thu, 19 Sep 2002 03:36:25 +0000 (03:36 +0000)]
Add Yet Another Duplicate of the font.h and ukbdmap.h rules.  Remove
the font8x16.o glue, since that appears to have died ages ago and has
no remaining references.

22 years agoAdd dev/iicbus and dev/smbus to LSUBDIRS list
Peter Wemm [Thu, 19 Sep 2002 03:28:52 +0000 (03:28 +0000)]
Add dev/iicbus and dev/smbus to LSUBDIRS list

22 years agomove <machine/iic.h> and <machine/smb.h> to <dev/iicbus/iic.h> and
Peter Wemm [Thu, 19 Sep 2002 03:25:46 +0000 (03:25 +0000)]
move <machine/iic.h> and <machine/smb.h> to <dev/iicbus/iic.h> and
<dev/smbus/smb.h> - there is nothing MD about these ioctl definitions.

22 years ago fix style.. Return in the kernel always has () around the arguments.
Julian Elischer [Thu, 19 Sep 2002 03:18:44 +0000 (03:18 +0000)]
 fix style.. Return in the kernel always has () around the arguments.

22 years agoCompiler was correct:
Julian Elischer [Thu, 19 Sep 2002 03:15:39 +0000 (03:15 +0000)]
Compiler was correct:
m WAS being used uninitialized..

22 years agomove wl (isa wavelan card, not "wi") to i386-only
Peter Wemm [Thu, 19 Sep 2002 03:10:23 +0000 (03:10 +0000)]
move wl (isa wavelan card, not "wi") to i386-only

22 years agomove "profile 2" to i386
Peter Wemm [Thu, 19 Sep 2002 03:04:07 +0000 (03:04 +0000)]
move "profile 2" to i386

22 years agomove ncv, nsp, stg to i386-only section (there is no pc98-specific version)
Peter Wemm [Thu, 19 Sep 2002 03:02:42 +0000 (03:02 +0000)]
move ncv, nsp, stg to i386-only section (there is no pc98-specific version)

22 years agoMove dgb to the i386 section
Peter Wemm [Thu, 19 Sep 2002 02:58:41 +0000 (02:58 +0000)]
Move dgb to the i386 section

22 years agoUpdate the KSE test utility to the new KSE API.
Jonathan Mini [Thu, 19 Sep 2002 02:15:27 +0000 (02:15 +0000)]
Update the KSE test utility to the new KSE API.

22 years agoAdd some extra directories created by recent versions of XFree86-4
Kris Kennaway [Thu, 19 Sep 2002 02:05:41 +0000 (02:05 +0000)]
Add some extra directories created by recent versions of XFree86-4

Reviewed by:    anholt (XFree86-4 maintainer)
MFC after:      1 day

22 years agoIf M_PKTHDR is set then we don't need to do a loop to find the total length.
Darren Reed [Thu, 19 Sep 2002 01:21:24 +0000 (01:21 +0000)]
If M_PKTHDR is set then we don't need to do a loop to find the total length.

22 years agoWelcome the sem_ API to libc!
Alfred Perlstein [Thu, 19 Sep 2002 01:14:08 +0000 (01:14 +0000)]
Welcome the sem_ API to libc!

22 years agoInstall _semaphore.h.
Alfred Perlstein [Thu, 19 Sep 2002 01:13:31 +0000 (01:13 +0000)]
Install _semaphore.h.

22 years agoadd a stub for pthread_cond_destroy.
Alfred Perlstein [Thu, 19 Sep 2002 01:09:49 +0000 (01:09 +0000)]
add a stub for pthread_cond_destroy.

22 years agoRegen for added syscalls.
Alfred Perlstein [Thu, 19 Sep 2002 00:48:57 +0000 (00:48 +0000)]
Regen for added syscalls.

22 years agoAdd the rest of the kernel support for the sem_ API in kern/uipc_sem.c.
Alfred Perlstein [Thu, 19 Sep 2002 00:43:32 +0000 (00:43 +0000)]
Add the rest of the kernel support for the sem_ API in kern/uipc_sem.c.

Option 'P1003_1B_SEMAPHORES' to compile them in, or load the "sem" module
to activate them.

Have kern/makesyscalls.sh emit an include for sys/_semaphore.h into sysproto.h
to pull in the typedef for semid_t.

Add the syscalls to the syscall table as module stubs.

22 years agoBring in my implementation of kernel support for posix realtime semaphores
Alfred Perlstein [Wed, 18 Sep 2002 22:47:42 +0000 (22:47 +0000)]
Bring in my implementation of kernel support for posix realtime semaphores
that are shareable between processes.

There will be a cleanup shortly along with the necessary changes made to
libc, libc_r, libpthread as well as the hooks into sys/conf and sys/modules.

22 years agoRemove un-needed stack variable 'ops'.
Robert Watson [Wed, 18 Sep 2002 22:35:02 +0000 (22:35 +0000)]
Remove un-needed stack variable 'ops'.

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

22 years agostyle nit: unsigned -> u_int in the kernel, particularly to
Bosko Milekic [Wed, 18 Sep 2002 22:33:52 +0000 (22:33 +0000)]
style nit: unsigned -> u_int in the kernel, particularly to
stay consistent in this file, and keep m_length() and m_fixhdr()
consistent with their prototypes in mbuf.h

Inspired by: bde

22 years agomore style fixes: 'unsigned' should be 'u_int' in this file.
Bosko Milekic [Wed, 18 Sep 2002 22:29:33 +0000 (22:29 +0000)]
more style fixes: 'unsigned' should be 'u_int' in this file.

Submitted by: bde

22 years agostyle(9): tab after #define.
Mike Barcroft [Wed, 18 Sep 2002 22:23:59 +0000 (22:23 +0000)]
style(9): tab after #define.

22 years agoConvert descriptions in the ERRORS section to full sentences if they
Don Lewis [Wed, 18 Sep 2002 22:12:43 +0000 (22:12 +0000)]
Convert descriptions in the ERRORS section to full sentences if they
were not full sentences, elaborating as necessary.

22 years agoClarify comment to "Code borrowed from if_fxp.c" to deal with running
Doug Ambrisko [Wed, 18 Sep 2002 21:32:48 +0000 (21:32 +0000)]
Clarify comment to "Code borrowed from if_fxp.c" to deal with running
out of fragments.

Suggested by: jhb

22 years agoAdd a missing file into the CLEANFILES variable.
Maxime Henrion [Wed, 18 Sep 2002 21:16:17 +0000 (21:16 +0000)]
Add a missing file into the CLEANFILES variable.

Approved by: peter

22 years agoWhitespace-only indention fixups for revision 1.20. This lets the 1.20
John Baldwin [Wed, 18 Sep 2002 20:51:25 +0000 (20:51 +0000)]
Whitespace-only indention fixups for revision 1.20.  This lets the 1.20
diff actually be readable.

22 years agoOops, fix userland _CPUCFLAGS. Move adding of _CPUCFLAGS to bottom of
John Baldwin [Wed, 18 Sep 2002 20:48:54 +0000 (20:48 +0000)]
Oops, fix userland _CPUCFLAGS.  Move adding of _CPUCFLAGS to bottom of
file after end of empty CPUTYPE else clause.

22 years agoFor the default case of CPUTYPE not being set, don't define CPUTYPE to the
John Baldwin [Wed, 18 Sep 2002 20:44:46 +0000 (20:44 +0000)]
For the default case of CPUTYPE not being set, don't define CPUTYPE to the
lowest value in order to get the right MACHINE_CPU values since setting
CPUTYPE can result in problems later in the buildkernel case.  Instead,
set MACHINE_CPU directly and leave CPUTYPE alone.

Tested by: mbr

22 years agoRemove any VOP_PRINT that redundantly prints the tag.
Nate Lawson [Wed, 18 Sep 2002 20:42:04 +0000 (20:42 +0000)]
Remove any VOP_PRINT that redundantly prints the tag.
Move lockmgr_printinfo() into vprint() for everyone's benefit.

Suggested by: bde

22 years agostyle fixes to mbuf.h
Bosko Milekic [Wed, 18 Sep 2002 20:28:58 +0000 (20:28 +0000)]
style fixes to mbuf.h

Submitted by: bde

22 years agoAdd m_fixhdr() and m_length().
Poul-Henning Kamp [Wed, 18 Sep 2002 20:04:30 +0000 (20:04 +0000)]
Add m_fixhdr() and m_length().

22 years agoOptimize the way we call BPF a tiny bit: If we chop the ether-header off
Poul-Henning Kamp [Wed, 18 Sep 2002 19:50:48 +0000 (19:50 +0000)]
Optimize the way we call BPF a tiny bit:  If we chop the ether-header off
ourselves, call bpf before we do so, rather than re-construct the entire
thing afterwards.

Sponsored: http://www.babeltech.dk/

22 years agoUse m_length() instead of home-rolled.
Poul-Henning Kamp [Wed, 18 Sep 2002 19:48:59 +0000 (19:48 +0000)]
Use m_length() instead of home-rolled.

In bpf_mtap(), if the entire packet is in one mbuf, call bpf_tap()
instead since it is a tad faster.

Sponsored by: http://www.babeltech.dk/

22 years agoUse m_length() instead of home-rolled versions.
Poul-Henning Kamp [Wed, 18 Sep 2002 19:44:14 +0000 (19:44 +0000)]
Use m_length() instead of home-rolled versions.

22 years agoUse m_fixhdr() rather than roll our own.
Poul-Henning Kamp [Wed, 18 Sep 2002 19:43:01 +0000 (19:43 +0000)]
Use m_fixhdr() rather than roll our own.

22 years agoMake m_length() and m_fixhdr() return unsigned.
Poul-Henning Kamp [Wed, 18 Sep 2002 19:42:06 +0000 (19:42 +0000)]
Make m_length() and m_fixhdr() return unsigned.

Suggested by: arr

22 years agoUpdate the usage string in the limits(1) manpage to include -b for
Brian Feldman [Wed, 18 Sep 2002 16:25:59 +0000 (16:25 +0000)]
Update the usage string in the limits(1) manpage to include -b for
sbsize. Also, correct the format string in getopt(3) usage to reflect
that -b takes an argument, and correct another case of RLIMIT_SBSIZE
having been forgotten.

22 years agoFix GNU coding violations.
David E. O'Brien [Wed, 18 Sep 2002 16:20:49 +0000 (16:20 +0000)]
Fix GNU coding violations.

22 years agoBasic stubbed-out support for building on sparc64 slipped in w/rev 1.41.
David E. O'Brien [Wed, 18 Sep 2002 16:19:05 +0000 (16:19 +0000)]
Basic stubbed-out support for building on sparc64 slipped in w/rev 1.41.

22 years agoStop using 3 distinct and far varied coding styles in a single file.
David E. O'Brien [Wed, 18 Sep 2002 16:14:36 +0000 (16:14 +0000)]
Stop using 3 distinct and far varied coding styles in a single file.
Pretend to actually adhere to the GNU coding standards.

22 years agoMake the DEBUGF() macro portable by (ugh) adding a Debug() function, which
Juli Mallett [Wed, 18 Sep 2002 16:13:03 +0000 (16:13 +0000)]
Make the DEBUGF() macro portable by (ugh) adding a Debug() function, which
is merely printf() but to stderr.  This takes care of the caveat which lead
to the use of a vararg macro -- getting everything to stderr.

22 years agoIntroduce the m_length() function which will return the accumulated
Poul-Henning Kamp [Wed, 18 Sep 2002 14:57:35 +0000 (14:57 +0000)]
Introduce the m_length() function which will return the accumulated
length of an mbuf-chain and optionally a pointer to the last mbuf.

22 years agoAdd missing #include <sys/mbuf.h>
Poul-Henning Kamp [Wed, 18 Sep 2002 14:21:52 +0000 (14:21 +0000)]
Add missing #include <sys/mbuf.h>

22 years agoThese RFCs and internet-drafts are not really needed in the base
Jacques Vidrine [Wed, 18 Sep 2002 14:17:14 +0000 (14:17 +0000)]
These RFCs and internet-drafts are not really needed in the base
system, and I've not been importing them lately.  cvs rm them now
so they can be cleaned out of the attic later.

Requested by: obrien

22 years agoMove m_fixhdr() from "mbchain" to "mbuf" where it belongs.
Poul-Henning Kamp [Wed, 18 Sep 2002 13:41:37 +0000 (13:41 +0000)]
Move m_fixhdr() from "mbchain" to "mbuf" where it belongs.

22 years agoOptimise the common case where no special encoding is in use (LC_CTYPE is "C"
Tim J. Robbins [Wed, 18 Sep 2002 12:17:28 +0000 (12:17 +0000)]
Optimise the common case where no special encoding is in use (LC_CTYPE is "C"
or "POSIX", other European locales). Use __sgetc() and __sputc() where
possible to avoid a wasteful lock and unlock for each byte and to avoid
function call overhead.

22 years agoLogic error in previous: don't exit the loop when an incomplete multibyte
Tim J. Robbins [Wed, 18 Sep 2002 10:21:41 +0000 (10:21 +0000)]
Logic error in previous: don't exit the loop when an incomplete multibyte
sequence is detected.

22 years agoAlways open file in the DENYNONE mode and let the server to decide what is
Boris Popov [Wed, 18 Sep 2002 09:54:16 +0000 (09:54 +0000)]
Always open file in the DENYNONE mode and let the server to decide what is
good for this file.
This should allow read only access to file which is already opened on server.

22 years agoUpdate supported chipset list.
Søren Schmidt [Wed, 18 Sep 2002 09:40:18 +0000 (09:40 +0000)]
Update supported chipset list.

22 years agoAdd support for the VIA 8235.
Søren Schmidt [Wed, 18 Sep 2002 09:39:37 +0000 (09:39 +0000)]
Add support for the VIA 8235.

Submitted by: Jason Dambrosio <jason@wiz.cx>

22 years agoStyle and markup changes only.
Don Lewis [Wed, 18 Sep 2002 09:34:01 +0000 (09:34 +0000)]
Style and markup changes only.

Capitalize the first letter of the descriptions for the entries in the ERRORS
section if they are complete sentences and end the sentences with periods.

22 years agoImplement additional SMB calls to allow proper update of file size as some
Boris Popov [Wed, 18 Sep 2002 09:27:04 +0000 (09:27 +0000)]
Implement additional SMB calls to allow proper update of file size as some
file servers fail to do it in the right way.

New NFLUSHWIRE flag marks pending flush request(s).

NB: not all cases covered by this commit.

Obtained from: Darwin

22 years agoFix implementation of rc variables $amd_flags and $amd_map_program in
Ralf S. Engelschall [Wed, 18 Sep 2002 08:49:50 +0000 (08:49 +0000)]
Fix implementation of rc variables $amd_flags and $amd_map_program in
rcNG. The $amd_flags variable was already taken over into $rc_flags
by run_rc_command() when amd_precmd() is executed, so changing
$amd_flags there no longer effects the actual execution of amd.
Hence in amd_precmd() the $rc_flags have to be adjusted instead.

22 years ago - Split UMA_ZFLAG_OFFPAGE into UMA_ZFLAG_OFFPAGE and UMA_ZFLAG_HASH.
Jeff Roberson [Wed, 18 Sep 2002 08:26:30 +0000 (08:26 +0000)]
 - Split UMA_ZFLAG_OFFPAGE into UMA_ZFLAG_OFFPAGE and UMA_ZFLAG_HASH.
 - Remove all instances of the mallochash.
 - Stash the slab pointer in the vm page's object pointer when allocating from
   the kmem_obj.
 - Use the overloaded object pointer to find slabs for malloced memory.

22 years agoARIN has annoyingly started using caps when referencing
Mike Barcroft [Wed, 18 Sep 2002 07:51:46 +0000 (07:51 +0000)]
ARIN has annoyingly started using caps when referencing
whois.apnic.net.  To properly receive hints for recursive IP searches,
we convert a buffer to lowercase before searching for magic words.

PR: 42834
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> (mostly)
X-MFC-After: re approval

22 years agoPermit an empty username which is useful for browsing.
Boris Popov [Wed, 18 Sep 2002 07:43:21 +0000 (07:43 +0000)]
Permit an empty username which is useful for browsing.

22 years agoIncrease send/receive queue to accomodate large readx/writex requests.
Boris Popov [Wed, 18 Sep 2002 07:38:10 +0000 (07:38 +0000)]
Increase send/receive queue to accomodate large readx/writex requests.

Receive packets in a small pieces (NB_SORECEIVE_CHUNK), so TCP slowstart will
get its ACKs faster.

Obtained from: Darwin

22 years agoRestore status register A of RTC at resume time.
Mitsuru IWASAKI [Wed, 18 Sep 2002 07:34:04 +0000 (07:34 +0000)]
Restore status register A of RTC at resume time.
This should fix the 'too many RTC interrupts and statclock seems
broken after resume' problem.

MFC after: 1 week

22 years agoImplement C99's va_copy() macro.
Mike Barcroft [Wed, 18 Sep 2002 07:33:16 +0000 (07:33 +0000)]
Implement C99's va_copy() macro.

22 years agoDeprecate the rest of the rune interface.
Tim J. Robbins [Wed, 18 Sep 2002 06:19:12 +0000 (06:19 +0000)]
Deprecate the rest of the rune interface.

22 years agoMark mbmb(), mbrune(), and mbrrune() as deprecated functions. We want to
Tim J. Robbins [Wed, 18 Sep 2002 06:11:21 +0000 (06:11 +0000)]
Mark mbmb(), mbrune(), and mbrrune() as deprecated functions. We want to
get applications to move to the ISO C interfaces as well as have the
freedom to replace the rune interfaces with ones that support stateful
conversions some time in the future.

22 years agoReimplement the functionality of fgetrune(), fputrune(), and fungetrune()
Tim J. Robbins [Wed, 18 Sep 2002 05:58:11 +0000 (05:58 +0000)]
Reimplement the functionality of fgetrune(), fputrune(), and fungetrune()
here in terms of mbrtowc(), wcrtomb(), and the single-byte I/O functions.
The rune I/O functions are about to become deprecated in favour of the
ones provided by ISO C90 Amd. 1 and C99.

22 years agoo Don't include <nl_types.h>, instead provide a typedef for nl_item.
Mike Barcroft [Wed, 18 Sep 2002 05:54:25 +0000 (05:54 +0000)]
o Don't include <nl_types.h>, instead provide a typedef for nl_item.
o Use relatively new visibility primitives to conditionalize some
  constants.

22 years agoMove definition of nl_item type to <sys/_types.h>, so that it can be
Mike Barcroft [Wed, 18 Sep 2002 05:51:23 +0000 (05:51 +0000)]
Move definition of nl_item type to <sys/_types.h>, so that it can be
shared.

22 years agoMostly rewrite the flag handling of uname(1) to be overridable, such as:
Juli Mallett [Wed, 18 Sep 2002 04:33:10 +0000 (04:33 +0000)]
Mostly rewrite the flag handling of uname(1) to be overridable, such as:
  freefall% uname -s
  FreeBSD
  freefall% env UNAME_s=Linnex ./uname -s
  Linnex

MFC after: 1 month

22 years agoMake obrien happy. Add a bad awk script which emulates as much of
Garrett Wollman [Wed, 18 Sep 2002 03:15:25 +0000 (03:15 +0000)]
Make obrien happy.  Add a bad awk script which emulates as much of
gperf's behavior as we ever actually needed here.  This generates
a much-less-efficient keyword recognizer, but it's not like that matters
in this application.  Makefile changes coming once this passes the world
test.

22 years agoUse relatively new visibility primitives for conditionals. Document
Mike Barcroft [Wed, 18 Sep 2002 02:07:08 +0000 (02:07 +0000)]
Use relatively new visibility primitives for conditionals.  Document
unimplemented functions.

22 years agoAdd a toggle to disable VM enforcement.
Robert Watson [Wed, 18 Sep 2002 02:02:08 +0000 (02:02 +0000)]
Add a toggle to disable VM enforcement.

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

22 years agoAt the cost of seeming a little gauche, make use of more traditional
Robert Watson [Wed, 18 Sep 2002 02:00:19 +0000 (02:00 +0000)]
At the cost of seeming a little gauche, make use of more traditional
alphabetization for mac_enforce_pipe sysctl.

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

22 years agoDon't call VOP_LEASE() while holding the accounting mutex.
Robert Watson [Wed, 18 Sep 2002 01:56:13 +0000 (01:56 +0000)]
Don't call VOP_LEASE() while holding the accounting mutex.

22 years agoMFC: Elan support;
Sam Leffler [Tue, 17 Sep 2002 22:39:57 +0000 (22:39 +0000)]
MFC: Elan support;

o Recognize AMD Elan SC520 hostbridge.
o Add initialization code for the AMD Elan sc520 which maps the MMCR
  into KVM and sets the i8254 frequency to the correct value.
o MAKEDEV entry for elan-mmcr device

Reviewed by: phk, jhb
Approved by: re(jhb)

22 years agostyle(9): line up function names
Mike Barcroft [Tue, 17 Sep 2002 22:39:43 +0000 (22:39 +0000)]
style(9): line up function names

22 years agoMove common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using
Juli Mallett [Tue, 17 Sep 2002 22:31:26 +0000 (22:31 +0000)]
Move common use of if (DEBUG(FOO)) printf... to DEBUGF(FOO, ...), using
variable length arguments to a macro.  Bump version as this makes DEBUG
statements *always* go to stderr rather than sometimes stdout.  There are
a few stragglers, which I will take care of as soon as I can.  Mostly these
relate to the need-for-death-of some of the remote job code.

Nearby stylistic nits and XXX added/fixed where appropriate.

22 years agoUse the relatively new visibility primitives for conditionals.
Mike Barcroft [Tue, 17 Sep 2002 22:25:40 +0000 (22:25 +0000)]
Use the relatively new visibility primitives for conditionals.

22 years agoo Add typedefs for mode_t, off_t, pid_t rather than including
Mike Barcroft [Tue, 17 Sep 2002 22:22:50 +0000 (22:22 +0000)]
o Add typedefs for mode_t, off_t, pid_t rather than including
  <sys/types.h>.
o Use the relatively new visibility primitives for conditionals.
o Make O_SYNC an alias for O_FSYNC.
o Mark the F* names as deprecated.
o Add some comments to note missing POSIX requirements or options.

22 years agoGuido reported an interesting bug where an FTP connection between a
Matthew Dillon [Tue, 17 Sep 2002 22:21:37 +0000 (22:21 +0000)]
Guido reported an interesting bug where an FTP connection between a
Windows 2000 box and a FreeBSD box could stall.  The problem turned out
to be a timestamp reply bug in the W2K TCP stack.  FreeBSD sends a
timestamp with the SYN, W2K returns a timestamp of 0 in the SYN+ACK
causing FreeBSD to calculate an insane SRTT and RTT, resulting in
a maximal retransmit timeout (60 seconds).  If there is any packet
loss on the connection for the first six or so packets the retransmit
case may be hit (the window will still be too small for fast-retransmit),
causing a 60+ second pause.  The W2K box gives up and closes the
connection.

This commit works around the W2K bug.

15:04:59.374588 FREEBSD.20 > W2K.1036: S 1420807004:1420807004(0) win 65535 <mss 1460,nop,wscale 2,nop,nop,timestamp 188297344 0> (DF) [tos 0x8]
15:04:59.377558 W2K.1036 > FREEBSD.20: S 4134611565:4134611565(0) ack 1420807005 win 17520 <mss 1460,nop,wscale 0,nop,nop,timestamp 0 0> (DF)

Bug reported by: Guido van Rooij <guido@gvr.org>

22 years ago#define<space> -> #define<tab>
Juli Mallett [Tue, 17 Sep 2002 21:29:06 +0000 (21:29 +0000)]
#define<space> -> #define<tab>

22 years agoPrint debugging from DEBUG(VAR) level to stderr. About to macroise this.
Juli Mallett [Tue, 17 Sep 2002 21:26:57 +0000 (21:26 +0000)]
Print debugging from DEBUG(VAR) level to stderr.  About to macroise this.
(Read: More commits to come).

MFC in: 4 days.

22 years agoFixed editing error in previous commit (*blush*).
Bruce Evans [Tue, 17 Sep 2002 19:43:53 +0000 (19:43 +0000)]
Fixed editing error in previous commit (*blush*).

22 years agoUse consistent terminology in the usage message, the man page
John Polstra [Tue, 17 Sep 2002 18:10:39 +0000 (18:10 +0000)]
Use consistent terminology in the usage message, the man page
synopsis, and the man page description ("selector" vs. "sel" and
"addr" vs. "reg").

Fix the usage message and man page synopsis to show that the "value"
argument is not optional.

22 years agoDon't depend on <sys/types.h> pollution in <sys/fcntl.h>.
Mike Barcroft [Tue, 17 Sep 2002 17:59:51 +0000 (17:59 +0000)]
Don't depend on <sys/types.h> pollution in <sys/fcntl.h>.

22 years agoRename new PLONG type to PGTOK as the conversion is more important than the
Juli Mallett [Tue, 17 Sep 2002 17:13:52 +0000 (17:13 +0000)]
Rename new PLONG type to PGTOK as the conversion is more important than the
size (which is mostly undefined anyway).

Submitted by: bde

22 years agoFix standard kse breakge of non-x86 platforms. sigh.
Jake Burkholder [Tue, 17 Sep 2002 16:21:48 +0000 (16:21 +0000)]
Fix standard kse breakge of non-x86 platforms.  sigh.

Pointy hat to: kse

22 years agoCheck for FD_SET overruns.
Jacques Vidrine [Tue, 17 Sep 2002 15:52:35 +0000 (15:52 +0000)]
Check for FD_SET overruns.

Approved by: peter

22 years agoOnly include parent directory Makefile.inc if it exists. Now you can
John Baldwin [Tue, 17 Sep 2002 14:56:23 +0000 (14:56 +0000)]
Only include parent directory Makefile.inc if it exists.  Now you can
cvs co acpi and build acpi utilities w/o needing the usr.sbin Makefile.inc.

22 years agoFixed unsorting of SRCS.
Bruce Evans [Tue, 17 Sep 2002 14:33:23 +0000 (14:33 +0000)]
Fixed unsorting of SRCS.

22 years ago- increment interface output counter. sync w/ netbsd-current
Hajimu UMEMOTO [Tue, 17 Sep 2002 14:25:19 +0000 (14:25 +0000)]
- increment interface output counter.  sync w/ netbsd-current
- increase if_oerrors.  sync w/netbsd

Obtained from: KAME

22 years agoFirewire device support for Apple eMac with PPC kernel.
Katsushi Kobayashi [Tue, 17 Sep 2002 12:50:43 +0000 (12:50 +0000)]
Firewire device support for Apple eMac with PPC kernel.
Contributed by Peter Grehan <grehan@freebsd.org>

22 years agoRegen:
Sheldon Hearn [Tue, 17 Sep 2002 11:47:53 +0000 (11:47 +0000)]
Regen:

* Hart: rev 332 of pcidevs.txt (2002-09-09)

22 years agoAdd /dev/soekris-errled device to control the Error-LED on Soekris cards/boxes.
Poul-Henning Kamp [Tue, 17 Sep 2002 11:47:38 +0000 (11:47 +0000)]
Add /dev/soekris-errled device to control the Error-LED on Soekris cards/boxes.

    # turn LED off
    echo '0' > /dev/soekris-errled

    # turn LED on
    echo '1' > /dev/soekris-errled

    # flash LED (5 hz)
    echo 'f' > /dev/soekris-errled

    # flash LED (4/2 = 2 hz), syntax: "f[1-9]" -> .5 -> 4.5 Hz
    echo 'f4' > /dev/soekris-errled

    # flash digits 1,3 and 7, syntax: "d[1-9]*"
    echo 'd137' > /dev/soekris-errled

Characters not understood are ignored.

22 years agoRemove __RCSID().
Maxim Sobolev [Tue, 17 Sep 2002 11:31:41 +0000 (11:31 +0000)]
Remove __RCSID().

Submitted by: bde

22 years agoFix vsnprintf(3) memory leak for size == 0.
Maxim Konovalov [Tue, 17 Sep 2002 11:28:24 +0000 (11:28 +0000)]
Fix vsnprintf(3) memory leak for size == 0.

PR:             bin/36175
Obtained from:  OpenBSD
Reviewed by:    silence on -audit
MFC after:      5 days

22 years agoExplicitly clear M_FRAG flag on a mbuf with the last fragment to unbreak
Maxim Konovalov [Tue, 17 Sep 2002 11:20:02 +0000 (11:20 +0000)]
Explicitly clear M_FRAG flag on a mbuf with the last fragment to unbreak
ip fragments reassembling for loopback interface.

Discussed with: bde, jlemon
Reviewed by: silence on -net
MFC after: 2 weeks