]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoCap the initial PV and PTE table preallocations. Otherwise we explode
peter [Wed, 17 Jul 2002 23:21:59 +0000 (23:21 +0000)]
Cap the initial PV and PTE table preallocations.  Otherwise we explode
on the Itanium2 system I have when we use up *all* of the initial 256MB
direct mapped region before we are ready to dynamically expand it.

The machine that I have has 4 cpus and a very big hole in the middle.
This makes the bogus '(last_address - first_address) / PAGE_SIZE'
calculations especially dangerous and caused many millions of initial
PV/PTE's to be preallocated.

22 years agoBe sure to use a logical address for the SAL table. For some reason the
peter [Wed, 17 Jul 2002 23:17:49 +0000 (23:17 +0000)]
Be sure to use a logical address for the SAL table.  For some reason the
phsysical address is still mapped at this stage of boot on the Itanium1
SDV boxes we have.  But Itanium2 does *not* let us get away with this.

22 years agoUpdate for new ACPICA import. Gah.
peter [Wed, 17 Jul 2002 23:14:41 +0000 (23:14 +0000)]
Update for new ACPICA import.  Gah.

22 years agoAdd END markers to asm functions so that debuggers can find their size.
jake [Wed, 17 Jul 2002 22:20:41 +0000 (22:20 +0000)]
Add END markers to asm functions so that debuggers can find their size.

22 years agoAvoid trying to set PG_G on the first 4MB when we set up the 4MB page.
peter [Wed, 17 Jul 2002 21:47:05 +0000 (21:47 +0000)]
Avoid trying to set PG_G on the first 4MB when we set up the 4MB page.
This solves the SMP panic for at least one system.  I'd still like to know
why my xeon works though.

Tested by: bmilekic

22 years agoAvoid passing NULL to freehostent(3).
yar [Wed, 17 Jul 2002 19:29:25 +0000 (19:29 +0000)]
Avoid passing NULL to freehostent(3).

MFC after: 1 week

22 years agoFix a reversed test.
julian [Wed, 17 Jul 2002 19:20:48 +0000 (19:20 +0000)]
Fix a reversed test.
Fix some style nits.
Fix a KASSERT message.
Add/fix some comments.

Submitted by: bde@freebsd.org

22 years agoMake sure the process state for the idle proc is set correctly
julian [Wed, 17 Jul 2002 19:18:45 +0000 (19:18 +0000)]
Make sure the process state for the idle proc is set correctly
from the beginning.

22 years agoFix setting parameters for getipnodebyaddr(3):
yar [Wed, 17 Jul 2002 19:07:07 +0000 (19:07 +0000)]
Fix setting parameters for getipnodebyaddr(3):
o "struct addrinfo" contains a pointer to "struct sockaddr,"
  not "struct sockaddr" itself
o the function takes a pointer to "struct in*_addr", not to
  "struct sockaddr," so the address length must be corresponding

MFC after: 1 week

22 years agoAdd myself.
scop [Wed, 17 Jul 2002 19:00:37 +0000 (19:00 +0000)]
Add myself.

Approved by: knu (mentor)

22 years agoIn pam_init_ctx(), register a cleanup function that will kill the child
des [Wed, 17 Jul 2002 17:44:02 +0000 (17:44 +0000)]
In pam_init_ctx(), register a cleanup function that will kill the child
process if a fatal error occurs.  Deregister it in pam_free_ctx().

22 years agoSort FILES.
ru [Wed, 17 Jul 2002 16:35:00 +0000 (16:35 +0000)]
Sort FILES.

22 years agoFix a spelling mistake.
dwmalone [Wed, 17 Jul 2002 16:22:24 +0000 (16:22 +0000)]
Fix a spelling mistake.

PR: 40695
Submitted by: Maxim Maximov <mcsi@agava.com>
MFC after: 1 week

22 years agoClean up the syntax WRT semicolons at the end of function-like-macros, and protect...
markm [Wed, 17 Jul 2002 16:19:37 +0000 (16:19 +0000)]
Clean up the syntax WRT semicolons at the end of function-like-macros, and protect GCCisms from non-GNU compilers and lint.

22 years agoFix installworld.
roberto [Wed, 17 Jul 2002 15:35:31 +0000 (15:35 +0000)]
Fix installworld.

Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>

22 years agoOne external utility was ommitted in the previous delta:
sheldonh [Wed, 17 Jul 2002 15:34:25 +0000 (15:34 +0000)]
One external utility was ommitted in the previous delta:

alias

22 years agoMFi386: revision 1.524.
nyan [Wed, 17 Jul 2002 12:43:52 +0000 (12:43 +0000)]
MFi386: revision 1.524.

22 years agoMFi386: revision 1.350.
nyan [Wed, 17 Jul 2002 12:42:37 +0000 (12:42 +0000)]
MFi386: revision 1.350.

22 years agodi_createtime -> di_birthtime.
roberto [Wed, 17 Jul 2002 10:31:38 +0000 (10:31 +0000)]
di_createtime -> di_birthtime.

Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>

22 years agoHandle installation of links through bsd.links.mk.
ru [Wed, 17 Jul 2002 08:21:50 +0000 (08:21 +0000)]
Handle installation of links through bsd.links.mk.
Removed comments that no longer directly apply here.

22 years agoFix a panic when doing "ipfw add pipe 1 log ..."
luigi [Wed, 17 Jul 2002 07:21:42 +0000 (07:21 +0000)]
Fix a panic when doing "ipfw add pipe 1 log ..."

Also synchronize ip_dummynet.c with the version in RELENG_4 to
ease MFC's.

22 years agoThe following builtins are now available as external commands as well:
sheldonh [Wed, 17 Jul 2002 07:12:37 +0000 (07:12 +0000)]
The following builtins are now available as external commands as well:

bg
        cd
        command
        fc
        fg
        getopts
        jobs
        read
        umask
        unalias
        wait

22 years agoBetter verbage on hw.pcic sysctls, delete now obsolete comment
imp [Wed, 17 Jul 2002 06:29:35 +0000 (06:29 +0000)]
Better verbage on hw.pcic sysctls, delete now obsolete comment

22 years agoo Remove workaround that I put in to mask the BadVcc problem.
imp [Wed, 17 Jul 2002 06:02:07 +0000 (06:02 +0000)]
o Remove workaround that I put in to mask the BadVcc problem.
o Add preliminary support for Cirrus Logic CL-PD6729 using PCI
  interrupts.  To use it you you need to set hw.pcic.pd6729_intr_path
  to 2.  This is allow us to still default to ISA intrrupt path for
  this part (which is found much more often in laptops using ISA IRQs).
  But some PCI cards have this part on them and this should allow them
  to be used.  It is untested on PCI, but it seems to not break the ISA
  case.
o Better sysctl descriptions (I hope).

22 years agoBe more conservative about the address ranges we assign. Some
imp [Wed, 17 Jul 2002 05:50:06 +0000 (05:50 +0000)]
Be more conservative about the address ranges we assign.  Some
machines don't like the more liberal default, so be more conservative
about what we do by default.

22 years agoGLOB_QUOTE has been retired.
mikeh [Wed, 17 Jul 2002 05:47:49 +0000 (05:47 +0000)]
GLOB_QUOTE has been retired.

22 years agoAdd definitions for the Ext 1 register on cirrus logic PD-6729.
imp [Wed, 17 Jul 2002 05:43:39 +0000 (05:43 +0000)]
Add definitions for the Ext 1 register on cirrus logic PD-6729.

22 years agoQualify comment on machdep.cpu_idle_hlt. Turning this on on a SMP
dillon [Wed, 17 Jul 2002 05:41:43 +0000 (05:41 +0000)]
Qualify comment on machdep.cpu_idle_hlt.  Turning this on on a SMP
machine will result in approximately a 4.2% loss of performance (buildworld)
and approximately a 5% reduction in power consumption (when idle).  Add XXX
note on how to really make hlt work (send an IPI to wakeup HLTed cpus on
a thread-schedule event?  Generate an interrupt somehow?).

22 years agopccard_common.c is no longer necssary
imp [Wed, 17 Jul 2002 05:22:00 +0000 (05:22 +0000)]
pccard_common.c is no longer necssary

22 years agoEliminate the need for pccard_common.c by moving the function inline
imp [Wed, 17 Jul 2002 05:20:43 +0000 (05:20 +0000)]
Eliminate the need for pccard_common.c by moving the function inline
in the .h file.  Make it static __inline to make sure that it doesn't
wind up defined in any files.

Also, fix a typo that said null_do_attach instead of null_do_probe.

22 years agoUpdate glob(3) to add all the POSIX required options, specifically:
mikeh [Wed, 17 Jul 2002 04:58:09 +0000 (04:58 +0000)]
Update glob(3) to add all the POSIX required options, specifically:

- add GLOB_NOMATCH return value and use it when we don't get a match
- rename GLOB_ABEND to GLOB_ABORTED and use it instead of returning 1
  in some places
- add GLOB_NOESCAPE flag and retire GLOB_QUOTE to compatibility
  section

Suggestions/advice on correct usage of POSIX defines: wollman

22 years agoAdd support for Elsa XI325, Netgear MA401RA, and Nokia C110. From OpenBSD
imp [Wed, 17 Jul 2002 04:07:07 +0000 (04:07 +0000)]
Add support for Elsa XI325, Netgear MA401RA, and Nokia C110.  From OpenBSD
by various people there.

22 years agoregen from pccarddevs 1.33
imp [Wed, 17 Jul 2002 04:02:52 +0000 (04:02 +0000)]
regen from pccarddevs 1.33

22 years agoMFOpenBSD:
imp [Wed, 17 Jul 2002 04:01:57 +0000 (04:01 +0000)]
MFOpenBSD:

1.93; henning; MA401RA wi card
1.92; millert; elsa XI-325 wi card
1.91; fgsch; gemplus cpr400 smartcard reader
1.90; mickey; Nokia c110/c111 is prism2 card
1.89-1.86 (similar to what we do already)

22 years ago- Use more correct values to initialize the AGP controller during setup.
jhb [Wed, 17 Jul 2002 02:52:01 +0000 (02:52 +0000)]
- Use more correct values to initialize the AGP controller during setup.
  The value we use is still questionable for 440BX chipsets.
- When flushing the TLB just toggle the bit in question instead of writing
  a magic value that could trash other unrelated bits.

22 years agoPreallocate a struct file as the first thing in falloc() before we lock
jhb [Wed, 17 Jul 2002 02:48:43 +0000 (02:48 +0000)]
Preallocate a struct file as the first thing in falloc() before we lock
the filelist_lock and check nfiles.  This closes a race where we had to
unlock the filedesc to re-lock the filelist_lock.

Reported by: David Xu
Reviewed by: bde (mostly)

22 years agoAdd a KASSERT() to assert that td_critnest is == 1 when mi_switch() is
jhb [Wed, 17 Jul 2002 02:46:13 +0000 (02:46 +0000)]
Add a KASSERT() to assert that td_critnest is == 1 when mi_switch() is
called.

22 years agoAllow alphas to do crashdumps: Refuse to run anything in choosethread()
gallatin [Wed, 17 Jul 2002 02:23:44 +0000 (02:23 +0000)]
Allow alphas to do crashdumps:  Refuse to run anything in choosethread()
after a panic which is not an interrupt thread, or the thread which
caused the panic.  Also, remove panicstr checks from msleep() and from
cv_wait() in order to allow threads to go to sleep and yeild the cpu
to the panicing thread, or to an interrupt thread which might
be doing the crashdump.

Reviewed by: jhb  (and it was mostly his idea too)

22 years agoChange utimes to set the file creation time (for filesystems that
mckusick [Wed, 17 Jul 2002 02:03:19 +0000 (02:03 +0000)]
Change utimes to set the file creation time (for filesystems that
support creation times such as UFS2) to the value of the
modification time if the value of the modification time is older
than the current creation time. See utimes(2) for further details.

Sponsored by: DARPA & NAI Labs.

22 years agoIntroduce the DEVFS "rule" subsystem. DEVFS rules permit the
dd [Wed, 17 Jul 2002 01:46:48 +0000 (01:46 +0000)]
Introduce the DEVFS "rule" subsystem.  DEVFS rules permit the
administrator to define certain properties of new devfs nodes before
they become visible to the userland.  Both static (e.g., /dev/speaker)
and dynamic (e.g., /dev/bpf*, some removable devices) nodes are
supported.  Each DEVFS mount may have a different ruleset assigned to
it, permitting different policies to be implemented for things like
jails.

Approved by: phk

22 years ago'recm' was not being unconditionally cleared for each loop, leading to
dillon [Wed, 17 Jul 2002 01:07:08 +0000 (01:07 +0000)]
'recm' was not being unconditionally cleared for each loop, leading to
system lockups (infinite loops) when a zero-length RPC is received.
Linux clients will sometimes send zero-length RPC requests.

Reorganize the use of recm in the loop.

Cc: security@freebsd.org
Submitted by: Mike Junk <junk@isilon.com>
MFC after: 3 days

22 years agoThe new implementation of 'lpc topq' is intended to be upwardly compatible
gad [Wed, 17 Jul 2002 00:52:06 +0000 (00:52 +0000)]
The new implementation of 'lpc topq' is intended to be upwardly compatible
with the previous implementation.  One noticeable difference is the order
in which messages are printed.  In the previous implementation, the
command "lpc topq lp 1 20 300" might print:

lp:
    moved cfA300some.host.org
    moved cfA020some.host.org
    moved cfA001some.host.org

while in the new implementation you'll see:

lp:
    moved cfA001some.host.org
    moved cfA020some.host.org
    moved cfA300some.host.org

The final order of jobs in the queue is exactly the same, it's just
that the jobs are now moved in the same order they were specified,
instead of being moved (and thus listed) in the reverse order.

The new implementation also supports more options for how to select
which jobs should be moved.  The previous topq allowed the user to
select jobs based on a job number, or based on a userid:
    topq lp 17
    topq lp drosehn

The new one also allows for a range of job numbers, or a hostname
(matching jobs that were sent from that hostname).  To specify a
hostname, you must prefix it with an '@'-sign:
    topq lp 17
    topq lp 15-25
    topq lp drosehn
    topq lp @some.host.com

or a combination of those things:
    topq lp drosehn:17
    topq lp 15-25:drosehn
    topq lp 15-25@some.host.edu
    topq lp gad:15-25@some.host.edu

Futhermore, in the new implementation the user can also use
filename-style pattern-matching on the userid or hostname fields:
    topq lp dros[ie]hn
    topq lp @samba*
    topq lp gad@*freebsd.org

(although the user should probably include those in quotes when they
are specifying the topq command as part of the 'lpc' command, just
to make sure the pattern-matching characters are not expanded by
whatever shell they are typing the command into)

The operator can still specify several of these job-specifiers in a
single command:
   topq lp 17 22 27 drosihn:23 gad@*freebsd.org 97

If a job is matched by multiple job-specifiers on a single command,
then its final position in the queue is based on the first job-specifer
which matched it.

The previous implementation also recognized a jobnumber followed by
a hostname (with no separator), or a hostname:jobnumber, although
neither of these options were documented.  Eg:
    topq lp 42some.host.org
    topq lp some.host.org:42

The new version allows the first one, and will also recognize the
second one *iff* the hostname includes a period (otherwise it is
assumed to be a userid followed by a job number).  Both remain
undocumented, and are only provided in case there were some users
who did know about those options, and are used to typing them in.

The new implementation also fixes a few subtle security issues in
the old one (mainly just making sure all error-messages are printed
while the process is "not-priv"), avoids integer-overflow issues on
bad user input, and prints out more descriptive messages in a number
of circumstances.

The new bottomq command accepts all the same arguments as topq, but
moves the selected jobs to the bottom of the queue instead of the top.

22 years agoChanges which rewrite 'lpc topq', and which add 'lpc bottomq'. These
gad [Wed, 17 Jul 2002 00:51:19 +0000 (00:51 +0000)]
Changes which rewrite 'lpc topq', and which add 'lpc bottomq'.  These
reflect much valuable feedback from wollman.  More details on the new
'lpc topq' are in the log message for revision 1.2 of lpc/movejobs.c.

The previous implementation of 'lpc topq' is available as 'lpc xtopq',
in case there are any problems noticed in the new implementation.  If
there are no problems with this version, a later update will remove the
'lpc xtopq' command.

Reviewed by: freebsd-print@bostonradio.org
MFC after: 6 days

22 years agoFixed some print format errors. Avoid some warnings about possible
bde [Tue, 16 Jul 2002 23:18:29 +0000 (23:18 +0000)]
Fixed some print format errors.  Avoid some warnings about possible
(but not actual) alignment problems.  Both of these bugs were detected
on ia64's and were fatal on ia64's due to premature setting of WARNS
to 4.

22 years agoChange the name of st_createtime to st_birthtime. This change is
mckusick [Tue, 16 Jul 2002 22:36:00 +0000 (22:36 +0000)]
Change the name of st_createtime to st_birthtime. This change is
made to reduce confusion between st_ctime and st_createtime.

Submitted by: Eric Allman <eric@sendmail.org>
Sponsored by: DARPA & NAI Labs.

22 years agoA little bit more thought has resulted in a generic script which can
wollman [Tue, 16 Jul 2002 22:16:05 +0000 (22:16 +0000)]
A little bit more thought has resulted in a generic script which can
implement any of the useless POSIX-required ``regular shell builtin''
utilities, saving one frag and one inode each.  The script moves to
usr.bin/alias which is alphabetically the first of these commands.

22 years agoForgot to change command name in Makefile. (Where's the pointy hat?)
wollman [Tue, 16 Jul 2002 21:14:01 +0000 (21:14 +0000)]
Forgot to change command name in Makefile.  (Where's the pointy hat?)

22 years agoPOSIX requires these shell builtins to also exist as totally pointless
wollman [Tue, 16 Jul 2002 21:13:11 +0000 (21:13 +0000)]
POSIX requires these shell builtins to also exist as totally pointless
external commands.  Since they serve no useful purpose, it's OK that their
implementation is not the most efficient possible.

22 years agoDon't ask me how I consistently turned struct statvfs into struct vfsconf....
wollman [Tue, 16 Jul 2002 20:40:12 +0000 (20:40 +0000)]
Don't ask me how I consistently turned struct statvfs into struct vfsconf....

22 years agoFix a bug nfs_write() related to ^C'ing during a file write on an
dillon [Tue, 16 Jul 2002 19:43:59 +0000 (19:43 +0000)]
Fix a bug nfs_write() related to ^C'ing during a file write on an
interruptable mount.  We were returning from inside the loop without
releasing the rslock.

Submitted by: Mike Junk <junk@isilon.com>
MFC after: 3 days

22 years ago o Use vm_pageq_remove_nowakeup() and vm_pageq_enqueue() in
alc [Tue, 16 Jul 2002 19:39:40 +0000 (19:39 +0000)]
 o Use vm_pageq_remove_nowakeup() and vm_pageq_enqueue() in
   vm_page_zero_idle() instead of partially duplicated implementations.
   In particular, this change guarantees that the number of free pages
   in the free queue(s) matches the global free page count when Giant
   is released.

Submitted by: peter (via his p4 "pmap" branch)

22 years agoVarious comment and minor style fixes. No actual content changes.
jhb [Tue, 16 Jul 2002 18:20:17 +0000 (18:20 +0000)]
Various comment and minor style fixes.  No actual content changes.

Inspired by: bde

22 years agoWhen multiple IOMMUs are present in a system, use a single TSB for all
tmm [Tue, 16 Jul 2002 18:17:03 +0000 (18:17 +0000)]
When multiple IOMMUs are present in a system, use a single TSB for all
of them, and couple them by always performing all operations on all
present IOMMUs. This is required because with the current API there
is no way to determine on which bus a busdma operation is performed.

While being there, clean up the iommu code a bit.

This should be a step in the direction of allow some of larger machines
to work; tests have shown that there still seem to be problems left.

22 years agoDon't imply that setting the boot_ variables to "NO" will disable them.
mp [Tue, 16 Jul 2002 18:16:01 +0000 (18:16 +0000)]
Don't imply that setting the boot_ variables to "NO" will disable them.

MFC after: 3 days

22 years agoAdd new UltraSPARC-III VIS II instructions.
tmm [Tue, 16 Jul 2002 17:44:01 +0000 (17:44 +0000)]
Add new UltraSPARC-III VIS II instructions.

22 years ago- Use IO mode to reset the controller (82544 and beyond)
pdeuskar [Tue, 16 Jul 2002 16:55:03 +0000 (16:55 +0000)]
- Use IO mode to reset the controller (82544 and beyond)
- Read the Mac address only once during attach.
  (This fixes the failover issue observed using the bonding driver)

MFC after: 3 days

22 years agoUse the right indent for the closing brace: it belongs to `if',
yar [Tue, 16 Jul 2002 16:48:15 +0000 (16:48 +0000)]
Use the right indent for the closing brace: it belongs to `if',
not to `for'.  The previous indent was reather misleading for
the code reader.

MFC after: 1 week

22 years agoReplace the awkward hackery about strtok(3)
yar [Tue, 16 Jul 2002 16:30:41 +0000 (16:30 +0000)]
Replace the awkward hackery about strtok(3)
by conventional one-way parsing of ftphosts(5).
Don't let NULL hostname pointers into virtual
host records as well.

PR: bin/18410
MFC after: 1 month

22 years agoAdd new LSU bits for UltraSPARC-III.
tmm [Tue, 16 Jul 2002 16:24:03 +0000 (16:24 +0000)]
Add new LSU bits for UltraSPARC-III.

22 years agoAdd ASI definitions of UltraSPARC-III (Cu) processors, and add some
tmm [Tue, 16 Jul 2002 16:22:25 +0000 (16:22 +0000)]
Add ASI definitions of UltraSPARC-III (Cu) processors, and add some
previously missing US-I and II ones.

22 years agoAdd missing quotes around ID string in __FBSDID().
tmm [Tue, 16 Jul 2002 16:20:44 +0000 (16:20 +0000)]
Add missing quotes around ID string in __FBSDID().

Pointy hat to: obrien

22 years agoThis isn't quite ready for WARNS=3 in the sparc64 case.
mike [Tue, 16 Jul 2002 16:10:39 +0000 (16:10 +0000)]
This isn't quite ready for WARNS=3 in the sparc64 case.

Noticed by: sparc64 tinderbox

22 years agoSome style cleanups.
jhb [Tue, 16 Jul 2002 15:40:19 +0000 (15:40 +0000)]
Some style cleanups.

Submitted by: bde

22 years agoIf we get a receive error in nfs_receive() and then get an error trying to
jhb [Tue, 16 Jul 2002 15:12:07 +0000 (15:12 +0000)]
If we get a receive error in nfs_receive() and then get an error trying to
obtain the send lock, we would bogusly try to unlock the send lock before
returning resulting in a panic.  Instead, only unlock the send lock if
nfs_sndlock() succeeds and nfs_reconnect() fails.

MFC after: 3 days
Sponsored by: The Weather Channel

22 years agoChange include order.
nyan [Tue, 16 Jul 2002 14:39:52 +0000 (14:39 +0000)]
Change include order.

22 years agoCheck return status from fd_in() function.
nyan [Tue, 16 Jul 2002 14:34:38 +0000 (14:34 +0000)]
Check return status from fd_in() function.

22 years agoThe main reason for this is to reduce diffs between all the crt1.c's.
markm [Tue, 16 Jul 2002 12:28:50 +0000 (12:28 +0000)]
The main reason for this is to reduce diffs between all the crt1.c's.

Assembler macros are tidied up and made as similar as sanely possible.
The macros are translated into C (__inline static) functions for lint.

Declaration orders are made the same.
Declarations are all ISOfied and tidied up.

Comment contents have gratuitous diffs removed.

The net result is a bunch of crt1.c's that are 90% the same.
It may be possible to now encapsulate the differences in one
MD header, and have only one MI crt1.c file (although the macros
to do this may be ugly).

Helpful comments by: obrien, bde
Alpha tested by: des
i386-elf tested by: markm

22 years agoUnbreak Alpha build.
des [Tue, 16 Jul 2002 09:58:36 +0000 (09:58 +0000)]
Unbreak Alpha build.

22 years agoUnbreak LINT; sort the includes so that functions are explicitly
markm [Tue, 16 Jul 2002 09:33:33 +0000 (09:33 +0000)]
Unbreak LINT; sort the includes so that functions are explicitly
declared. Remove duplicate includes.

22 years agoRetire the perl gethints.conf in favour of an awk version. Move
markm [Tue, 16 Jul 2002 09:28:25 +0000 (09:28 +0000)]
Retire the perl gethints.conf in favour of an awk version. Move
the awk version to a central place for maintenance.

Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>

22 years agoFix incorrect cast.
kbyanc [Tue, 16 Jul 2002 05:57:21 +0000 (05:57 +0000)]
Fix incorrect cast.

22 years agoUse proper article.
dd [Tue, 16 Jul 2002 05:38:26 +0000 (05:38 +0000)]
Use proper article.

22 years agoThe pmap_invalidate_all() here is definately not a good idea. We are
peter [Mon, 15 Jul 2002 23:11:49 +0000 (23:11 +0000)]
The pmap_invalidate_all() here is definately not a good idea. We are
running with interrupts disabled, other cpus locked down, and only
making a temporary local mapping that we immediately back out again.

Tested by: gallatin

22 years agoSupport POSIX ``programming environment'' mistake.
wollman [Mon, 15 Jul 2002 22:51:24 +0000 (22:51 +0000)]
Support POSIX ``programming environment'' mistake.

22 years agoAssume that my bug report against 1003.1-2001 will be resolved my way,
wollman [Mon, 15 Jul 2002 22:43:03 +0000 (22:43 +0000)]
Assume that my bug report against 1003.1-2001 will be resolved my way,
and make 64-bit architectures use the LP64_OFF64 environment instead
of the LPBIG_OFFBIG one.

22 years agoSupport POSIX/SUS ``programming environment'' mistake in confstr().
wollman [Mon, 15 Jul 2002 22:21:33 +0000 (22:21 +0000)]
Support POSIX/SUS ``programming environment'' mistake in confstr().

22 years agoMove _CS_PATH from <sys/unistd.h> to <unistd.h> -- the kernel isn't involved
wollman [Mon, 15 Jul 2002 21:56:40 +0000 (21:56 +0000)]
Move _CS_PATH from <sys/unistd.h> to <unistd.h> -- the kernel isn't involved
in confstr() processing.

22 years agoAll of the things that confstr() returns are compile-time constants.
wollman [Mon, 15 Jul 2002 21:51:19 +0000 (21:51 +0000)]
All of the things that confstr() returns are compile-time constants.
It's silly to call sysctl() to get the value of _PATH_STDPATH from
<paths.h> when we can just use it directly.  This greatly simplifies
the implementation.  (This is also part of my grand scheme to get
rid of sysctl's `user' category, which should never have been created.)

Use strlcpy() instead of strncpy() as it has the exact semantics we want.

22 years agogetopt(3) was also added in 1003.2-1992.
wollman [Mon, 15 Jul 2002 21:32:45 +0000 (21:32 +0000)]
getopt(3) was also added in 1003.2-1992.

22 years agoThe .Fn function.
keramida [Mon, 15 Jul 2002 20:59:12 +0000 (20:59 +0000)]
The .Fn function.

22 years agoThe .Fn function
keramida [Mon, 15 Jul 2002 20:50:16 +0000 (20:50 +0000)]
The .Fn function

22 years agoDon't bother asking the kernel about _SC_FSYNC; it's not optional.
wollman [Mon, 15 Jul 2002 20:42:05 +0000 (20:42 +0000)]
Don't bother asking the kernel about _SC_FSYNC; it's not optional.

22 years agoDefine _POSIX_FSYNC unconditionally. (The standard has enough weasel-words
wollman [Mon, 15 Jul 2002 20:37:10 +0000 (20:37 +0000)]
Define _POSIX_FSYNC unconditionally.  (The standard has enough weasel-words
to allow us to claim compliance.)  Define a few other nearby feature tests
in the way required by 1003.1-2001.

22 years agoFix visibility:
wollman [Mon, 15 Jul 2002 20:33:58 +0000 (20:33 +0000)]
Fix visibility:
- symlink() is from 1003.1-2001 and XPG4.2
- fchown() is from 1003.1-2001
- fsync() is from ISO/IEC 9945-1:1995
- confstr() is from 1003.2-1992

22 years agoAdd a missing 'function' word.
keramida [Mon, 15 Jul 2002 20:07:09 +0000 (20:07 +0000)]
Add a missing 'function' word.
Use .Vt to mark up `struct stat' when it is a variable type.

22 years agoUse BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()
ume [Mon, 15 Jul 2002 19:58:56 +0000 (19:58 +0000)]
Use BSDi derived if_nametoindex(), if_indextoname(), if_nameindex()
and if_freenameindex().

Obtained from: KAME
MFC after: 2 weeks

22 years agoThe .Fn function
keramida [Mon, 15 Jul 2002 19:56:24 +0000 (19:56 +0000)]
The .Fn function

22 years agoDon't claim to fully implement C99 in the STANDARDS section and then disclaim
wollman [Mon, 15 Jul 2002 19:46:06 +0000 (19:46 +0000)]
Don't claim to fully implement C99 in the STANDARDS section and then disclaim
compliance in the BUGS section immediately below.

22 years agoNote that fseeko() and ftello() are standard in 1003.1-2001.
wollman [Mon, 15 Jul 2002 19:42:25 +0000 (19:42 +0000)]
Note that fseeko() and ftello() are standard in 1003.1-2001.
(Prefer the more-encompassing POSIX standard to SUSv2.)

22 years agoAdd IPv6 support.
alfred [Mon, 15 Jul 2002 19:40:23 +0000 (19:40 +0000)]
Add IPv6 support.

Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>

22 years agoClean up some of the rather strange structure and ordering of this
wollman [Mon, 15 Jul 2002 19:38:45 +0000 (19:38 +0000)]
Clean up some of the rather strange structure and ordering of this
file.  Correct visibility conditions and order blocks of declarations
in order of increasing inclusiveness.  Note that [v]snprintf() is now
in ISO C and f{seek,tell}o() are now in POSIX.  Deprecated getw() and
putw() are no longer visible in XSH6 namespace (and should probably
be removed from BSD namespace as well).

22 years ago- fixed a bug that we can't send a packet to ipv4mapped ipv6 address
ume [Mon, 15 Jul 2002 19:25:46 +0000 (19:25 +0000)]
- fixed a bug that we can't send a packet to ipv4mapped ipv6 address
  using a udp6 socket without bind(2)ing.
- fbsd4/430 reported from the FreeBSD team.
- this fix is different from the fix reported in the above PR.  i think
  this better, but we need some test.

Obtained from: KAME
MFC after: 3 weeks

22 years agoAdd a new VM options section. Move KSTACK_PAGES there from the MI NOTES
jhb [Mon, 15 Jul 2002 19:25:40 +0000 (19:25 +0000)]
Add a new VM options section.  Move KSTACK_PAGES there from the MI NOTES
file and better document it.  Add better documentation for the DISABLE_PSE
option.  Add the missing DISABLE_PG_G option and document it.

22 years agoKSTACK_PAGES is only an option on i386, so move it to the i386 NOTES file.
jhb [Mon, 15 Jul 2002 19:24:50 +0000 (19:24 +0000)]
KSTACK_PAGES is only an option on i386, so move it to the i386 NOTES file.

22 years agoWhitespace fix.
jhb [Mon, 15 Jul 2002 19:14:13 +0000 (19:14 +0000)]
Whitespace fix.

22 years agoMove SMBFS from i386 and pc98 files and options files to MI files and
jhb [Mon, 15 Jul 2002 19:11:21 +0000 (19:11 +0000)]
Move SMBFS from i386 and pc98 files and options files to MI files and
options files.

22 years agoadd support for rpc IPv6 (rpc/udp/46 ...)
alfred [Mon, 15 Jul 2002 19:09:33 +0000 (19:09 +0000)]
add support for rpc IPv6 (rpc/udp/46 ...)

Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>

22 years agouse getaddrinfo() instead of gethostbyname().
alfred [Mon, 15 Jul 2002 19:02:45 +0000 (19:02 +0000)]
use getaddrinfo() instead of gethostbyname().

Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>

22 years agoNuke unused variable.
alfred [Mon, 15 Jul 2002 19:00:34 +0000 (19:00 +0000)]
Nuke unused variable.

22 years agoThe hardware bus configuration section is now empty, so axe it. The
jhb [Mon, 15 Jul 2002 19:00:21 +0000 (19:00 +0000)]
The hardware bus configuration section is now empty, so axe it.  The
architecture specific NOTES files define which hardware busses each
architecture supports.