]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agocorrect comment for setsockopt arg size.
Hajimu UMEMOTO [Thu, 25 Jul 2002 20:40:09 +0000 (20:40 +0000)]
correct comment for setsockopt arg size.

Reported by: Martin Laabs <martin@martin.erfurt.thur.de>
Obtained from: KAME
MFC after: 1 week

22 years agoSet interrupt clear pointer for SBus slots to point to correct spot.
Matt Jacob [Thu, 25 Jul 2002 20:14:59 +0000 (20:14 +0000)]
Set interrupt clear pointer for SBus slots to point to correct spot.

22 years ago o Remove a vm_page_deactivate() that is immediately followed by a
Alan Cox [Thu, 25 Jul 2002 19:09:07 +0000 (19:09 +0000)]
 o Remove a vm_page_deactivate() that is immediately followed by a
   vm_page_rename() from vm_object_backing_scan().  vm_page_rename()
   also performs vm_page_deactivate() on pages in the cache queues,
   making the removed vm_page_deactivate() redundant.

22 years agomake setsockopt(IPV6_V6ONLY, 0) actuall work for tcp6.
Hajimu UMEMOTO [Thu, 25 Jul 2002 18:10:04 +0000 (18:10 +0000)]
make setsockopt(IPV6_V6ONLY, 0) actuall work for tcp6.

MFC after: 1 week

22 years agoUse <arpa/ftp.h> stuff cleanly, without introducing
Yaroslav Tykhiy [Thu, 25 Jul 2002 17:41:47 +0000 (17:41 +0000)]
Use <arpa/ftp.h> stuff cleanly, without introducing
non-portable constants (in this case, hidden as offsets
to the "?AEIL" string.)

MFC after: 1 week

22 years agocleanup usage of ip6_mapped_addr_on and ip6_v6only. now,
Hajimu UMEMOTO [Thu, 25 Jul 2002 17:40:45 +0000 (17:40 +0000)]
cleanup usage of ip6_mapped_addr_on and ip6_v6only. now,
ip6_mapped_addr_on is unified into ip6_v6only.

MFC after: 1 week

22 years agoMake sure that if are in fact using 'full SMP', make the interrupt
Matt Jacob [Thu, 25 Jul 2002 16:02:09 +0000 (16:02 +0000)]
Make sure that if are in fact using 'full SMP', make the interrupt
flags include INTR_MPSAFE. Put the flags in a common place so that
both isp_sbus && isp_pci DTRT.

In isp_mbxdma setup, drop any locks prior to calling things like
bus_dmatag_create. This gets rid of these obnoxious WITNESS messages
about 'sleeping with locks held' blah blah blah blah blah.

22 years agoPut MODULE_VERSION back here so that ispfw is happy.
Matt Jacob [Thu, 25 Jul 2002 16:00:24 +0000 (16:00 +0000)]
Put MODULE_VERSION back here so that ispfw is happy.

22 years agoDocument the FreeBSD default for CheckHostIP, which was changed in
Tony Finch [Thu, 25 Jul 2002 15:59:40 +0000 (15:59 +0000)]
Document the FreeBSD default for CheckHostIP, which was changed in
rev 1.2 of readconf.c.

Approved by: des

22 years agoWhen parsing the program name from the incoming log message
Robert Drehmel [Thu, 25 Jul 2002 15:45:41 +0000 (15:45 +0000)]
When parsing the program name from the incoming log message
from a client, accept all printable characters as being part
of the program name, except ':' and '[', because each is a
possible delimiter.

22 years agoChange the default setting of an IPv4-mapped IPv6 address to off.
Hajimu UMEMOTO [Thu, 25 Jul 2002 15:44:01 +0000 (15:44 +0000)]
Change the default setting of an IPv4-mapped IPv6 address to off.

Requested by: many people

22 years agoBraino in the 1.672 commit: scripts/games-make.sh expects the
Ruslan Ermilov [Thu, 25 Jul 2002 14:42:08 +0000 (14:42 +0000)]
Braino in the 1.672 commit: scripts/games-make.sh expects the
"manpages" and "catpages" dists to be already built.

22 years agoRegen.
Takanori Watanabe [Thu, 25 Jul 2002 14:16:47 +0000 (14:16 +0000)]
Regen.

22 years agoMFNetBSD: FTDI USB-serial converter chips description.
Takanori Watanabe [Thu, 25 Jul 2002 14:15:49 +0000 (14:15 +0000)]
MFNetBSD: FTDI USB-serial converter chips description.

22 years agoMoved some more NIC drivers to the second floppy.
Ruslan Ermilov [Thu, 25 Jul 2002 14:04:38 +0000 (14:04 +0000)]
Moved some more NIC drivers to the second floppy.

22 years agoAdd a -P/-o physical option which behaves similarly to bash/ksh's options
Tim J. Robbins [Thu, 25 Jul 2002 10:57:39 +0000 (10:57 +0000)]
Add a -P/-o physical option which behaves similarly to bash/ksh's options
by the same name. This option makes the cd and pwd builtins behave physically
(as opposed to logically) by default.

Submitted by: fanf

22 years agoSet opterr to zero to avoid duplicate warnings from getopt(3) for unknown
Tim J. Robbins [Thu, 25 Jul 2002 10:47:38 +0000 (10:47 +0000)]
Set opterr to zero to avoid duplicate warnings from getopt(3) for unknown
options.

22 years agoWhen reading a program name from the syslog configuration file,
Robert Drehmel [Thu, 25 Jul 2002 09:56:37 +0000 (09:56 +0000)]
When reading a program name from the syslog configuration file,
do not stop copying it into a buffer when encountering a
non-alphanumerical character.  Only stop at unprintable characters.
This makes syslogd work correctly with executables like `interp.bin',
`httpd_old', etc.

PR: misc/40941
MFC after: 1 week

22 years agoUse PATH_MAX instead of a local guess at it, which happened to be incorrect.
Tim J. Robbins [Thu, 25 Jul 2002 09:56:08 +0000 (09:56 +0000)]
Use PATH_MAX instead of a local guess at it, which happened to be incorrect.

Suggested by: fanf

22 years agopwdcmd()'s argc and argv arguments are no longer unused, remove __unused.
Tim J. Robbins [Thu, 25 Jul 2002 09:46:31 +0000 (09:46 +0000)]
pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.

Pointed out by: fanf

22 years agoAdd SEE ALSO references to papers handling RED.
Sheldon Hearn [Thu, 25 Jul 2002 09:37:11 +0000 (09:37 +0000)]
Add SEE ALSO references to papers handling RED.

22 years agosysctl(NET_RT_IFLIST) up to several (currently 5) times.
Hajimu UMEMOTO [Thu, 25 Jul 2002 08:08:30 +0000 (08:08 +0000)]
sysctl(NET_RT_IFLIST) up to several (currently 5) times.
This will make the behavior robuster if many addresses are added
after the size estimation of storage at the first sysctl.

Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
MFC after: 1 week

22 years agoBah, I forgot to commit this part of the nfssvc() cleanup. Sorry folks.
Peter Wemm [Thu, 25 Jul 2002 06:18:22 +0000 (06:18 +0000)]
Bah, I forgot to commit this part of the nfssvc() cleanup. Sorry folks.

22 years agoGive an example showing how to change the mesg status of terminals
Tim J. Robbins [Thu, 25 Jul 2002 05:16:49 +0000 (05:16 +0000)]
Give an example showing how to change the mesg status of terminals
other than the default one.

PR: 13073

22 years agoFix some of the places where sound(4) can sleep with a lock held. (Help
Brian Feldman [Thu, 25 Jul 2002 04:49:45 +0000 (04:49 +0000)]
Fix some of the places where sound(4) can sleep with a lock held.  (Help
courtesy of fenner).

22 years agoget suspension counting right.
Julian Elischer [Thu, 25 Jul 2002 03:21:35 +0000 (03:21 +0000)]
get suspension counting right.
fix an error message

Submitted by: David Xu <bsddiy@yahoo.com>

22 years agoMFC noted: acct(2) appends to file.
Johan Karlsson [Thu, 25 Jul 2002 02:18:41 +0000 (02:18 +0000)]
MFC noted: acct(2) appends to file.

New release notes: cp(1) -n, biff(1)/mesg(1) redirect stdin to affect
   another tty.

Reviewed by: bmah

22 years agoChange 'int pid' to 'pid_t pid'
Juli Mallett [Thu, 25 Jul 2002 01:48:19 +0000 (01:48 +0000)]
Change 'int pid' to 'pid_t pid'

Submitted by: Bruce "Allah" Dang <bruce@research.teamxor.org>

22 years agoClarify the sizeof(var) rule. This is the result of the consensus in
Warner Losh [Thu, 25 Jul 2002 00:30:24 +0000 (00:30 +0000)]
Clarify the sizeof(var) rule.  This is the result of the consensus in
arch@ between myself, bde and markm.  I kept the parts that all of us
agreed to, and omitted some more extensive text that I'd originally
wanted.

22 years agofix some style problems and remove a mis-merged assert.
Julian Elischer [Thu, 25 Jul 2002 00:27:39 +0000 (00:27 +0000)]
fix some style problems and remove a mis-merged assert.

22 years agoslight stylisations to take into account recent code changes.
Julian Elischer [Wed, 24 Jul 2002 23:59:15 +0000 (23:59 +0000)]
slight stylisations to take into account recent code changes.

22 years agoAdd some locking asserts and some comments
Julian Elischer [Wed, 24 Jul 2002 23:21:05 +0000 (23:21 +0000)]
Add some locking asserts and some comments

22 years agoFix a typo
Julian Elischer [Wed, 24 Jul 2002 23:18:15 +0000 (23:18 +0000)]
Fix a typo
Cleanup a define
Correct locking notes (a bit)
Add a definition and a field for future work on thread suspension.

22 years agoOops, another unused arg to nfssvc_nfsd(). *blush*
Peter Wemm [Wed, 24 Jul 2002 23:10:34 +0000 (23:10 +0000)]
Oops, another unused arg to nfssvc_nfsd().  *blush*

Submitted by: jake

22 years agoInline ${_cxx_consumers}.
Ruslan Ermilov [Wed, 24 Jul 2002 23:08:57 +0000 (23:08 +0000)]
Inline ${_cxx_consumers}.

22 years agoWe're done with 1.287 and 1.288 now.
Peter Wemm [Wed, 24 Jul 2002 22:44:19 +0000 (22:44 +0000)]
We're done with 1.287 and 1.288 now.

Submitted by: ru

22 years agoFully exterminate nfsd_srvargs and nfsd_cargs. They were either unused
Peter Wemm [Wed, 24 Jul 2002 22:27:35 +0000 (22:27 +0000)]
Fully exterminate nfsd_srvargs and nfsd_cargs.  They were either unused
or giant NOP's.  There was a credential in srvargs that was giving
rwatson some heartburn. :-)

22 years agoRemove WARNS and WFORMAT overrides.
Mark Peek [Wed, 24 Jul 2002 22:26:44 +0000 (22:26 +0000)]
Remove WARNS and WFORMAT overrides.

22 years agoIf NO_MAILWRAPPER is set, and sendmail is still enabled, then install
Peter Wemm [Wed, 24 Jul 2002 22:17:22 +0000 (22:17 +0000)]
If NO_MAILWRAPPER is set, and sendmail is still enabled, then install
a direct symlink to sendmail.

22 years agoenable fdisk for ia64 as well as i386
Peter Wemm [Wed, 24 Jul 2002 22:16:11 +0000 (22:16 +0000)]
enable fdisk for ia64 as well as i386

22 years agoOnly install the mbr code on i386.. not ia64. This changes it from
Peter Wemm [Wed, 24 Jul 2002 22:15:51 +0000 (22:15 +0000)]
Only install the mbr code on i386.. not ia64.  This changes it from
#ifndef __alpha__ to #ifdef __i386__

22 years agoTurn nfsiod back on. It is basically now just a sysctl wrapper that also
Peter Wemm [Wed, 24 Jul 2002 22:14:27 +0000 (22:14 +0000)]
Turn nfsiod back on.  It is basically now just a sysctl wrapper that also
arranges a kldload of the nfs client file system code if necessary.

22 years agoWARNS clean
Peter Wemm [Wed, 24 Jul 2002 22:13:08 +0000 (22:13 +0000)]
WARNS clean

22 years agoFake a resume method for this chip via calling detach/attach. This lets
Doug Ambrisko [Wed, 24 Jul 2002 21:27:22 +0000 (21:27 +0000)]
Fake a resume method for this chip via calling detach/attach.  This lets
ThinkPads using this chip to have sound after a suspend/resume sequence
without resorting to kldunload/kldload.

MFC after: 1 week

22 years agoCopy the right dhclient-script(8).
Ruslan Ermilov [Wed, 24 Jul 2002 20:37:21 +0000 (20:37 +0000)]
Copy the right dhclient-script(8).

22 years agoWhen single threading a multithreaded program, awaken the
Julian Elischer [Wed, 24 Jul 2002 19:50:08 +0000 (19:50 +0000)]
When single threading a multithreaded program, awaken the
'single threading thread' when the last other thread suspends.
I had this code in there before but it seems to have been
accidentally deleted somewhere along the way.  This would only affect
multithreaded processes.

Reviewed by: David Xu <bsddiy@yahoo.com>

22 years agoFix a stupid bug where I wasn't initializing the names
Maxime Henrion [Wed, 24 Jul 2002 19:50:00 +0000 (19:50 +0000)]
Fix a stupid bug where I wasn't initializing the names
of 0-length mount options.

22 years ago o Merge vm_fault_wire() and vm_fault_user_wire() by adding a new parameter,
Alan Cox [Wed, 24 Jul 2002 19:47:56 +0000 (19:47 +0000)]
 o Merge vm_fault_wire() and vm_fault_user_wire() by adding a new parameter,
   user_wire.

22 years agomake sure to set/unset INP_IPV4 according to a value
Hajimu UMEMOTO [Wed, 24 Jul 2002 19:19:53 +0000 (19:19 +0000)]
make sure to set/unset INP_IPV4 according to a value
of IN6P_IPV6_V6ONLY

Reviewed by: Keiichi SHIMA <keiichi@iij.ad.jp>

22 years ago- ntohs() returns unsigned value.
Hajimu UMEMOTO [Wed, 24 Jul 2002 18:58:32 +0000 (18:58 +0000)]
- ntohs() returns unsigned value.
- use strlcpy.
- snprintf can return negative value, so cope with it.
- tweak interface index on interface locals (ff01::/16).
- removed unused macros.
- removed a macro that uses only once (in a trivial context).
- explicitly say goodbye to ENI_xxx.
- constify struct afd.

Obtained from: KAME
MFC after: 1 week

22 years agostyle(9): - Put a space after the 'return' keyword.
Robert Drehmel [Wed, 24 Jul 2002 18:54:59 +0000 (18:54 +0000)]
style(9): - Put a space after the 'return' keyword.
          - Wrap lines longer than 80 characters.

22 years agoUse an ANSI-C function definition rather than a
Robert Drehmel [Wed, 24 Jul 2002 18:39:51 +0000 (18:39 +0000)]
Use an ANSI-C function definition rather than a
K&R one to avoid a warning.

22 years ago - Add a COMPATIBILITY section explaining that the default
Robert Drehmel [Wed, 24 Jul 2002 18:37:22 +0000 (18:37 +0000)]
 - Add a COMPATIBILITY section explaining that the default
   behaviour of obtaining the affected terminal has changed.
 - Refer to the user's terminal instead of the current
   terminal session.
 - Tell the reader what the utility does when it is invoked
   without arguments.

Submitted by: johan

22 years agoDocument upgrade procedure.
Mark Peek [Wed, 24 Jul 2002 16:42:58 +0000 (16:42 +0000)]
Document upgrade procedure.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100616,
Mark Peek [Wed, 24 Jul 2002 16:23:10 +0000 (16:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100616,
which included commits to RCS files with non-trunk default branches.

22 years agoImport of tcsh-6.12.00
Mark Peek [Wed, 24 Jul 2002 16:23:10 +0000 (16:23 +0000)]
Import of tcsh-6.12.00

22 years agoRe-use passive data ports with the SO_REUSEADDR
Yaroslav Tykhiy [Wed, 24 Jul 2002 16:11:34 +0000 (16:11 +0000)]
Re-use passive data ports with the SO_REUSEADDR
socket option to avoid exausting the passive port
space by TIME_WAIT'ing connections.

PR: bin/36955
Submitted by: Maxim Konovalov <maxim@FreeBSD.org>
MFC after: 2 weeks

22 years agoAllow selection of the affected terminal using redirection
Robert Drehmel [Wed, 24 Jul 2002 15:48:17 +0000 (15:48 +0000)]
Allow selection of the affected terminal using redirection
of standard input or standard output, like mesg(1) does.

Suggested by: sheldonh

22 years agoUnder #ifdef DIAGNOSTIC, NULL out componentname pointers if we free the
Robert Watson [Wed, 24 Jul 2002 15:42:22 +0000 (15:42 +0000)]
Under #ifdef DIAGNOSTIC, NULL out componentname pointers if we free the
pnbuf to increase the chances of detecting use of a free'd name buffer
if SAVENAME or SAVESTART wasn't passed in.  Curiously, running with these
changes doesn't panic the kernel, and should.

22 years agoRemove the outdated casts to "char *" from the setsockopt(2),
Yaroslav Tykhiy [Wed, 24 Jul 2002 15:30:53 +0000 (15:30 +0000)]
Remove the outdated casts to "char *" from the setsockopt(2),
write(2), and getipnodebyaddr(3) calls.  Now all the above functions
accept "void *" in that arguments and have prototypes.  Thus, the
casts are useless under the normal circumstances (and would be harmful
if the functions had no prototypes.)

MFC after: 2 weeks

22 years agoMove m_freem() from uipc_mbuf.c to subr_mbuf.c so it can take advantage
Bosko Milekic [Wed, 24 Jul 2002 15:11:23 +0000 (15:11 +0000)]
Move m_freem() from uipc_mbuf.c to subr_mbuf.c so it can take advantage
of the inlines, like its cousin, m_free().  Also, make a small (first
step?) optimisation of m_free() to use the MBP_PERSIST{,ENT} interface
to hold the lock across frees when possible.  The thing is that right
now, we can only do this easily for at most across one mbuf + one
cluster free, as the comment mentions (it also explains why).  Anyway,
some basic tests revealed a 5-10% overall improvement.  Some of the
results can be found here:
http://people.freebsd.org/~bmilekic/code/measure.txt

22 years agoMove whereis(1) relnote to 'userland changes' section.
Johan Karlsson [Wed, 24 Jul 2002 14:51:24 +0000 (14:51 +0000)]
Move whereis(1) relnote to 'userland changes' section.

Approved by: bmah, sheldonh (mentor)

22 years agoClean up the syslog(3) messages on the setsockopt(2) errors:
Yaroslav Tykhiy [Wed, 24 Jul 2002 14:50:17 +0000 (14:50 +0000)]
Clean up the syslog(3) messages on the setsockopt(2) errors:

o Always check a setsockopt(2) return value
o Use a consistent message format
o Don't abort if the failed setsockopt(2) was actually not vital
o Use LOG_WARNING, not LOG_ERR, in non-fatal cases

MFC after: 1 week

22 years agoTeach whereis(1) about games.
Johan Karlsson [Wed, 24 Jul 2002 14:35:29 +0000 (14:35 +0000)]
Teach whereis(1) about games.

Approved by: joerg, sheldonh (mentor)

22 years agoStick a dark comment in about the fact that the NFS server code allocates
Robert Watson [Wed, 24 Jul 2002 14:24:16 +0000 (14:24 +0000)]
Stick a dark comment in about the fact that the NFS server code allocates
a ucred by itself as part of an nfs descriptor, then bzero's the ucred,
fails to initialize the mutex, etc.  This is very bad, but I don't have
time to fix it right now.  nfsd should instead hold a cred pointer,
and the credential should be properly initialized, probably from a
descendent of a kernel process credential.

22 years agoCatch up to rev 1.87 of sys/sys/socketvar.h (sb_cc changed from u_long
Mike Barcroft [Wed, 24 Jul 2002 14:21:41 +0000 (14:21 +0000)]
Catch up to rev 1.87 of sys/sys/socketvar.h (sb_cc changed from u_long
to u_int).

Noticed by: sparc64 tinderbox

22 years agoMove sio's ebus attachment to the MI files section so it is compiled in
John Baldwin [Wed, 24 Jul 2002 12:43:27 +0000 (12:43 +0000)]
Move sio's ebus attachment to the MI files section so it is compiled in
for any machines that use ebus.

22 years agoMove sio_isa.c back to MD files files due to PC98 brain damage.
John Baldwin [Wed, 24 Jul 2002 12:35:52 +0000 (12:35 +0000)]
Move sio_isa.c back to MD files files due to PC98 brain damage.

22 years agoMFi386: revision 1.407 (move the em driver entry to MI file)
Yoshihiro Takahashi [Wed, 24 Jul 2002 12:33:39 +0000 (12:33 +0000)]
MFi386: revision 1.407 (move the em driver entry to MI file)

22 years agoRemove the word IPSec to respect RFCs (for example
Marc Fonvieille [Wed, 24 Jul 2002 10:24:52 +0000 (10:24 +0000)]
Remove the word IPSec to respect RFCs (for example
http://www.ietf.org/rfc/rfc2401.txt), IPsec is the right word and
already in the dictionary.

PR: in part docs/38668
Reviewed by: murray
MFC after: 10 days

22 years agoWhen suspending a thread, update the appropriate (sic) statistic.
Julian Elischer [Wed, 24 Jul 2002 07:29:16 +0000 (07:29 +0000)]
When suspending a thread, update the appropriate (sic) statistic.

22 years agorevert some of the handling of STOP signals in
Julian Elischer [Wed, 24 Jul 2002 07:23:41 +0000 (07:23 +0000)]
revert some of the handling of STOP signals in
issignal(). Let thread_suspend_check() actually do the suspension
at the user boundary.

Submitted by: David Xu <bsddiy@yahoo.com>

22 years agoWiden struct sockbuf's sb_timeo member to int from short. With
John Polstra [Wed, 24 Jul 2002 03:02:43 +0000 (03:02 +0000)]
Widen struct sockbuf's sb_timeo member to int from short.  With
non-default but reasonable values of hz this member overflowed,
breaking NFS over UDP.

Also, as long as I'm plowing up struct sockbuf ... Change certain
members from u_long/long to u_int/int in order to reduce wasted
space on 64-bit machines.  This change was requested by Andrew
Gallatin.

Netstat and systat need to be rebuilt.  I am incrementing
__FreeBSD_version in case any ports need to change.

22 years agoOnly log things net.inet.ip.fw.verbose is set
Luigi Rizzo [Wed, 24 Jul 2002 02:41:19 +0000 (02:41 +0000)]
Only log things net.inet.ip.fw.verbose is set

22 years agoAvoid calling el_resize() from a signal handler, even though libedit
Tim J. Robbins [Wed, 24 Jul 2002 02:06:07 +0000 (02:06 +0000)]
Avoid calling el_resize() from a signal handler, even though libedit
itself does that if you set EL_SIGNAL. Instead, set a flag and check it
before calling el_gets(). This is safer, but slower to respond to changes.

Pointed out by: mp

22 years agoFix warning.
Jake Burkholder [Wed, 24 Jul 2002 01:09:38 +0000 (01:09 +0000)]
Fix warning.

22 years agoAttempt to clarify comment in selrecord.
Alfred Perlstein [Wed, 24 Jul 2002 00:29:22 +0000 (00:29 +0000)]
Attempt to clarify comment in selrecord.

22 years agoMore userland section translation
Sebastien Gioria [Tue, 23 Jul 2002 20:16:09 +0000 (20:16 +0000)]
More userland section translation

22 years agoInstall more man pages - I thought I'd committed this ages ago...
Dag-Erling Smørgrav [Tue, 23 Jul 2002 17:59:46 +0000 (17:59 +0000)]
Install more man pages - I thought I'd committed this ages ago...

22 years agoWhitespace nit.
Dag-Erling Smørgrav [Tue, 23 Jul 2002 17:57:17 +0000 (17:57 +0000)]
Whitespace nit.

22 years agoUpdated release notes: lint 20020719, smbfs-1.4.5, texinfo 4.2.
Bruce A. Mah [Tue, 23 Jul 2002 16:00:19 +0000 (16:00 +0000)]
Updated release notes:  lint 20020719, smbfs-1.4.5, texinfo 4.2.

22 years agoRevert previous delta for cut(1) and calendar(1) as they were not applied
Tom Rhodes [Tue, 23 Jul 2002 15:09:56 +0000 (15:09 +0000)]
Revert previous delta for cut(1) and calendar(1) as they were not applied
correctly.  My fault, forgot that -current was checked out.

22 years agoCatch SIGWINCH in interactive shells and call el_resize() to update
Tim J. Robbins [Tue, 23 Jul 2002 15:05:00 +0000 (15:05 +0000)]
Catch SIGWINCH in interactive shells and call el_resize() to update
libedit's idea of the window size.

22 years agoIntroduce mb_free() to the MBP_PERSIST{,ENT} interface. What this means
Bosko Milekic [Tue, 23 Jul 2002 14:55:33 +0000 (14:55 +0000)]
Introduce mb_free() to the MBP_PERSIST{,ENT} interface.  What this means
is that grouped frees will be done as most often as possible without
dropping the cache lock in between.  So, for the most part, they'll be
done without the lock being dropped.  This is particularly true if you
have something that does a grouped m_getm() or m_getcl() (a cluster and
mbuf at the same time) - most likely getting the buffers from the
same per-CPU cache - and then frees them with m_free{,m}().  Unless
the buffers' underlying buckets were moved, the free will be done without
the lock getting dropped in between.  So far, only m_free() has been
shown how to do this, and m_freem() will shortly follow.

Since I'm here, I also fixed a small (but mostly harmless) type-mismatch
introduced in the last commit.

22 years agoFix the sound driver vchan support to work when hw.snd.maxautovchans
Alexander Kabaev [Tue, 23 Jul 2002 14:50:51 +0000 (14:50 +0000)]
Fix the sound driver vchan support to work when hw.snd.maxautovchans
has been specified through /boot/loader.conf as opposed to setting it
in /etc/sysctl.conf. Only PCMDIR_PLAY channel can be used as a parent
of virtual channel. Do not initialize a new vchan for a given physical
channel if other physical channel already has one created.

PR: 31597
Approved by: obrien (mentor)

22 years agoRemove duplicate __FBSDID() - spotted by trying to build with a non-GNU
Juli Mallett [Tue, 23 Jul 2002 14:39:20 +0000 (14:39 +0000)]
Remove duplicate __FBSDID() - spotted by trying to build with a non-GNU
compiler.

22 years agoMention the new bind(1) sh builtin.
Tim J. Robbins [Tue, 23 Jul 2002 14:38:07 +0000 (14:38 +0000)]
Mention the new bind(1) sh builtin.

22 years agoFix DIOCGMEDIASIZE and DIOCGSECTORSIZE ioctls to work for all
Alexander Kabaev [Tue, 23 Jul 2002 14:30:27 +0000 (14:30 +0000)]
Fix DIOCGMEDIASIZE and DIOCGSECTORSIZE ioctls to work for all
disk devices. This fixes the problem with these ioctls returning
EINVAL for plain slice devices with no disklabel on them.

The patch incorporates improvements and style fixes from BDE.

Reviewed by: bde
Approved by: obrien (mentor)

22 years agoMention SAVENAME and SAVESTART in the namei(9) operation flag description
Robert Watson [Tue, 23 Jul 2002 13:16:36 +0000 (13:16 +0000)]
Mention SAVENAME and SAVESTART in the namei(9) operation flag description
since apparently people were missing that you aren't supposed to access
the name buffer following namei() unless you specify one of these flags.

Pointed out by: green
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoUpdate ucred.9 to talk a bit more about correct use of credentials,
Robert Watson [Tue, 23 Jul 2002 13:09:24 +0000 (13:09 +0000)]
Update ucred.9 to talk a bit more about correct use of credentials,
including documenting that ucreds must not be pulled out of thin air,
when to use td_cred vs. p_ucred, how to avoid race conditions in
credential updates, and why to use p_ucred when targetting a thread
or process in an access control operation involving two processes.

Reviewed by: julian, jhb (earlier revision)

22 years agoTurn on emacs line editing mode by default, as this is what most shells do
Juli Mallett [Tue, 23 Jul 2002 12:28:16 +0000 (12:28 +0000)]
Turn on emacs line editing mode by default, as this is what most shells do
these days, and the average user expects ^A and arrow keys to work, however
if they know nothing of editing modes, they will think sh(1) just sucks.  It
is likely that because of defaults on most systems and with most shells that
anyone who actually wants vi(1) editing mode will have 'set -o vi'.  This
won't affect existing accounts, this way, of course.  Only accounts with
.shrc from new etc/skel will be affected.  This is much better than making
the change in sh(1).

22 years agoCall el_source() to read the contents of .editrc when line editing is enabled.
Tim J. Robbins [Tue, 23 Jul 2002 12:26:34 +0000 (12:26 +0000)]
Call el_source() to read the contents of .editrc when line editing is enabled.

Obtained from: NetBSD
MFC after: 2 weeks

22 years agos/ifdef/ifndef/.
Daniel C. Sobral [Tue, 23 Jul 2002 12:25:34 +0000 (12:25 +0000)]
s/ifdef/ifndef/.

Fenner got this inverted through a misunderstanding between us.

22 years agoAdd a `bind' builtin command, which is simply a wrapper around libedit's
Tim J. Robbins [Tue, 23 Jul 2002 11:50:53 +0000 (11:50 +0000)]
Add a `bind' builtin command, which is simply a wrapper around libedit's
builtin command of the same name. This allows the key bindings for the
shell's line editor to be changed.

MFC after: 2 weeks

22 years agoDependencies are delimited by space not tab.
Ruslan Ermilov [Tue, 23 Jul 2002 09:15:45 +0000 (09:15 +0000)]
Dependencies are delimited by space not tab.

22 years agos/IPSEC/IPsec according to RFCs
Marc Fonvieille [Tue, 23 Jul 2002 08:38:03 +0000 (08:38 +0000)]
s/IPSEC/IPsec according to RFCs

PR: in part docs/38668
Reviewed by: charnier
MFC after: 10 days

22 years agode-count pci
Peter Wemm [Tue, 23 Jul 2002 06:38:47 +0000 (06:38 +0000)]
de-count pci

22 years agode-count pci now that ahc/ahd are taken care of.
Peter Wemm [Tue, 23 Jul 2002 06:36:23 +0000 (06:36 +0000)]
de-count pci now that ahc/ahd are taken care of.

22 years agopci is (finally) no longer a 'count' device. ahc/ahd were the last
Peter Wemm [Tue, 23 Jul 2002 06:33:08 +0000 (06:33 +0000)]
pci is (finally) no longer a 'count' device.  ahc/ahd were the last
holdouts.

22 years agoMinimal tweak to not depend on NPCI, but still maintain portability
Peter Wemm [Tue, 23 Jul 2002 06:31:45 +0000 (06:31 +0000)]
Minimal tweak to not depend on NPCI, but still maintain portability
to 4.x which still does need it (since pci_if.h isn't generated without
pci being present)