]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoRemove an unused (but initialized) variable from vmapbuf().
Alan Cox [Tue, 12 Feb 2002 05:50:43 +0000 (05:50 +0000)]
Remove an unused (but initialized) variable from vmapbuf().

22 years agoTwo fixes from Jonathan Hanna:
Warner Losh [Tue, 12 Feb 2002 05:32:58 +0000 (05:32 +0000)]
Two fixes from Jonathan Hanna:
1) We shouldn't continue when we get a RX complete because we ack it
   and the TX complete.
2) Fix a couple of spl leaks
(why splbio is needed in ISR, I cannot understand).

MFC after: 3 days

22 years agoInstall complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.
Mark Peek [Tue, 12 Feb 2002 04:50:12 +0000 (04:50 +0000)]
Install complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.

PR: misc/34800 (from Steven Grady)
Submitted by: phantom (patch)
MFC after: 3 days

22 years agoThe previous commit included a change to fill_kinfo_proc() that results
Alan Cox [Tue, 12 Feb 2002 04:21:28 +0000 (04:21 +0000)]
The previous commit included a change to fill_kinfo_proc() that results
in a NULL pointer dereference.  Repair this mistake.

22 years agoWhen a duplicate SYN arrives which matches an entry in the syncache,
Jonathan Lemon [Tue, 12 Feb 2002 02:03:50 +0000 (02:03 +0000)]
When a duplicate SYN arrives which matches an entry in the syncache,
update our lazy reference to the inpcb structure, as it may have changed.

Found by: dima

22 years agoDon't claim to have routed an interrupt when the method actually returned an
Mike Smith [Tue, 12 Feb 2002 01:28:49 +0000 (01:28 +0000)]
Don't claim to have routed an interrupt when the method actually returned an
error.

22 years agoEnable polling to be configured into kernels on non i386 platforms. Note that
Andrew Gallatin [Tue, 12 Feb 2002 00:26:06 +0000 (00:26 +0000)]
Enable polling to be configured into kernels on non i386 platforms.  Note that
poll_in_trap is only implemented on i386.  I've tested this on alpha.

Approved by: luigi

22 years agoMFS: synchronize the code with the version in -stable, specifically:
Luigi Rizzo [Mon, 11 Feb 2002 23:56:18 +0000 (23:56 +0000)]
MFS: synchronize the code with the version in -stable, specifically:
 + SYSCTL_ULONG -> SYSCTL_UINT
 + some procedure renaming and variable rearrangement
 + fix the 'interface going deaf' problem same as in -stable.

22 years agoRemove mbuf exhaustion warning messages; these are handled by the
Mike Silbersack [Mon, 11 Feb 2002 23:38:30 +0000 (23:38 +0000)]
Remove mbuf exhaustion warning messages; these are handled by the
mbuf system in a rate-limited fashion now.

MFC after: 3 days

22 years agoRemove mbuf exhaustion warning messages; these are handled by the
Mike Silbersack [Mon, 11 Feb 2002 23:29:15 +0000 (23:29 +0000)]
Remove mbuf exhaustion warning messages; these are handled by the
mbuf system in a rate-limited fashion now.

MFC: Already performed due to sloppiness.

22 years agoMove makeobjops to /sys so we don't have to deal with the config(8)-like
David E. O'Brien [Mon, 11 Feb 2002 23:06:28 +0000 (23:06 +0000)]
Move makeobjops to /sys so we don't have to deal with the config(8)-like
versioning.

22 years agoRevert rev 1.211, kernel building assistants should live in /sys
David E. O'Brien [Mon, 11 Feb 2002 23:04:56 +0000 (23:04 +0000)]
Revert rev 1.211, kernel building assistants should live in /sys

22 years agoRemove unused bits.
David E. O'Brien [Mon, 11 Feb 2002 22:17:08 +0000 (22:17 +0000)]
Remove unused bits.

22 years agoTurn on makeobjops.
David E. O'Brien [Mon, 11 Feb 2002 22:09:20 +0000 (22:09 +0000)]
Turn on makeobjops.

22 years agoReplace makeobjops.pl in kernel building.
David E. O'Brien [Mon, 11 Feb 2002 22:08:51 +0000 (22:08 +0000)]
Replace makeobjops.pl in kernel building.

Submitted by: Diane Bruce <db@db.net>

22 years agoIn a threaded world, differnt priorirites become properties of
Julian Elischer [Mon, 11 Feb 2002 20:37:54 +0000 (20:37 +0000)]
In  a threaded world, differnt priorirites become properties of
different entities.  Make it so.

Reviewed by: jhb@freebsd.org (john baldwin)

22 years agoRepo-copied `src/bin/pwd/realpath.1' to `src/bin/realpath/realpath.1',
Mike Barcroft [Mon, 11 Feb 2002 18:45:29 +0000 (18:45 +0000)]
Repo-copied `src/bin/pwd/realpath.1' to `src/bin/realpath/realpath.1',
as part of the move to seperate realpath(1) into its own directory.

22 years agoo Remove old code from pwd(1); realpath(1) is now in its own directory.
Mike Barcroft [Mon, 11 Feb 2002 18:38:54 +0000 (18:38 +0000)]
o Remove old code from pwd(1); realpath(1) is now in its own directory.
o Fix some unordered includes in pwd(1).
o Connect realpath(1) to the build.

22 years agoFixed -DMAKE_KERBEROS5 world breakage in kerberos5/lib/libroken
Ruslan Ermilov [Mon, 11 Feb 2002 16:47:05 +0000 (16:47 +0000)]
Fixed -DMAKE_KERBEROS5 world breakage in kerberos5/lib/libroken
(make-roken is a build tool).  This bug was hiding itself after
a just fixed bug in cross-linker (binutuils/ld/Makefile,v 1.20).

The bug was fatal for cross builds; for example, an alpha binary
(make-roken) was attempted to be run on i386.

Added make-roken to the list of build-tools in libasn1.  It only
worked because another build tool needs make-roken implicitly:

(build-tools: asn1_compile: print_version.o: roken.h: make-roken).

Spotted by: nectar

22 years agoAdd support for the HighPoint HPT374 4 channel ATA chip.
Søren Schmidt [Mon, 11 Feb 2002 15:48:04 +0000 (15:48 +0000)]
Add support for the HighPoint HPT374 4 channel ATA chip.

Sponsored by: Isilon Systems.

22 years agoFound a single point where rmuser(8) wasn't robust to strange
Yaroslav Tykhiy [Mon, 11 Feb 2002 15:26:20 +0000 (15:26 +0000)]
Found a single point where rmuser(8) wasn't robust to strange
characters in a username:  where it was inserted into a regexp.
Fix it by escaping metacharacters in the name with \Q-\E.

22 years agoFix some bugs in the ohci driver with respect to irq setup failure.
Josef Karthauser [Mon, 11 Feb 2002 14:39:57 +0000 (14:39 +0000)]
Fix some bugs in the ohci driver with respect to irq setup failure.

Submitted by: nyan

22 years agoCorrect an out of date device node name. We do not have /dev/rsd0.ctl
Maxim Konovalov [Mon, 11 Feb 2002 14:35:28 +0000 (14:35 +0000)]
Correct an out of date device node name. We do not have /dev/rsd0.ctl
nowadays.

Spotted by: Sergey Osokin <osa@freebsd.org.ru>
Reviewed by: ken, ru
Approved by: ken, ru
MFC after: 1 week

22 years agoTeach ddb(4) to delete to the beginning of its command line on ^U.
Yaroslav Tykhiy [Mon, 11 Feb 2002 14:14:42 +0000 (14:14 +0000)]
Teach ddb(4) to delete to the beginning of its command line on ^U.

PR: kern/28976
Submitted by: Nickolai Zeldovich <kolya@orbit.zepa.net>

22 years agoAdd myself.
Yoichi NAKAYAMA [Mon, 11 Feb 2002 13:13:02 +0000 (13:13 +0000)]
Add myself.

22 years agoMerge from NetBSD: revs 1.89 and 1.90.
Josef Karthauser [Mon, 11 Feb 2002 10:09:29 +0000 (10:09 +0000)]
Merge from NetBSD: revs 1.89 and 1.90.

Also, add some 'const's to supress warnings. (Submitted back to NetBSD).

The original logs from NetBSD:

----------------------------
revision 1.90
date: 2001/12/03 01:47:12;  author: augustss;  lines: +4 -4
Handle vendor/product lookup with a common routine.
----------------------------
revision 1.89
date: 2001/12/02 23:25:25;  author: augustss;  lines: +18 -2
Add a subroutine to search for a vendor/product pair.
----------------------------

22 years agoDescribe the '+' option in the -t trace string.
Peter Pentchev [Mon, 11 Feb 2002 09:03:34 +0000 (09:03 +0000)]
Describe the '+' option in the -t trace string.

PR: 34668
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
Reviewed by: dd
Approved by: dd
MFC after: 1 week

22 years agoMove the realpath(1) source into its own directory. Previously, it
Mike Barcroft [Mon, 11 Feb 2002 07:32:17 +0000 (07:32 +0000)]
Move the realpath(1) source into its own directory.  Previously, it
shared sources with pwd(1).

22 years agoDocument NO_CXX and NO_GDB.
David E. O'Brien [Mon, 11 Feb 2002 07:09:22 +0000 (07:09 +0000)]
Document NO_CXX and NO_GDB.

22 years agoFall through from AT_TYPE_DIRECT to AT_TYPE_CDROM.
Yoshihiro Takahashi [Mon, 11 Feb 2002 05:46:25 +0000 (05:46 +0000)]
Fall through from AT_TYPE_DIRECT to AT_TYPE_CDROM.
Old ATAPI CD-ROM drives return 0 (direct-access) as the type of the device.

(The ata driver has the same problem.)

MFC after: 3 days

22 years agoAdded the command name to the synopsis section.
Yoshihiro Takahashi [Mon, 11 Feb 2002 04:19:53 +0000 (04:19 +0000)]
Added the command name to the synopsis section.

Submitted by: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>
MFC after: 3 days

22 years agoAllow one to specify the AWK used in the environment(commandline).
David E. O'Brien [Mon, 11 Feb 2002 03:54:30 +0000 (03:54 +0000)]
Allow one to specify the AWK used in the environment(commandline).

Gawk is blowing up when run natively on the sparc64 -- leading to totally
bogus kernel values (all "0x0").  Good ole BWK awk works fine however.

22 years agoAdd a tip about pkg_info and checking for multiple installed versions
Giorgos Keramidas [Mon, 11 Feb 2002 03:45:29 +0000 (03:45 +0000)]
Add a tip about pkg_info and checking for multiple installed versions
of a package/port.

22 years agoGarbage-collect the "LOCORE" version of MPLOCKED.
Bruce Evans [Mon, 11 Feb 2002 03:41:59 +0000 (03:41 +0000)]
Garbage-collect the "LOCORE" version of MPLOCKED.

22 years agoRegenerate.
Josef Karthauser [Mon, 11 Feb 2002 03:36:13 +0000 (03:36 +0000)]
Regenerate.

22 years agoMerge from NetBSD.
Josef Karthauser [Mon, 11 Feb 2002 03:35:53 +0000 (03:35 +0000)]
Merge from NetBSD.

Add lots of new scanner devices:

AGFA SNAPSCAN1236U
AGFA SNAPSCANE40
AGFA SNAPSCANE50
AGFA SNAPSCANE20
AGFA SNAPSCANE25
AGFA SNAPSCANE26
AGFA SNAPSCANE52
CANON N656U
HP 3400CSE
SCANLOGIC 336CX
MUSTEK BEARPAW1200F
MUSTEK 600USB
MUSTEK 1200USBPLUS
NATIONAL BEARPAW2400
EPSON 640U
EPSON 1650
EPSON GT9700F
UMAX ASTRA3400
ULTIMA 1200UBPLUS

22 years agoQuiet a qualifier warning.
Josef Karthauser [Mon, 11 Feb 2002 03:29:35 +0000 (03:29 +0000)]
Quiet a qualifier warning.

22 years agoMerge from NetBSD: revs 1.55 and 1.56
Josef Karthauser [Mon, 11 Feb 2002 03:15:08 +0000 (03:15 +0000)]
Merge from NetBSD: revs 1.55 and 1.56

Original NetBSD logs:

----------------------------
revision 1.56
date: 2001/12/03 01:47:12;  author: augustss;  lines: +5 -3
Handle vendor/product lookup with a common routine.
----------------------------
revision 1.55
date: 2001/12/02 23:25:25;  author: augustss;  lines: +8 -1
Add a subroutine to search for a vendor/product pair.
----------------------------

22 years agoMerge from NetBSD: revs 1.12 and 1.21 - 1.23
Josef Karthauser [Mon, 11 Feb 2002 02:57:50 +0000 (02:57 +0000)]
Merge from NetBSD: revs 1.12 and 1.21 - 1.23

Original NetBSD log messages are:

----------------------------
revision 1.23
date: 2001/12/12 15:48:18;  author: augustss;  lines: +132 -114
Add a scanner quirk for keeping the pipes open between device opening.
Idea from Enami.
----------------------------
revision 1.22
date: 2001/12/03 01:47:13;  author: augustss;  lines: +8 -16
Handle vendor/product lookup with a common routine.
----------------------------
revision 1.21
date: 2001/12/01 09:42:39;  author: enami;  lines: +4 -4
Shorten wmesg so that they can be distinguished in ps/top output.
----------------------------
revision 1.12
date: 2001/01/23 14:04:14;  author: augustss;  lines: +7 -1
Make sure driver attach/detach events are generated in a
consistent manner.
----------------------------

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:

22 years agoComment in the man page and warning in stlload (when stlload fails) to make
Daniel Baker [Mon, 11 Feb 2002 02:34:25 +0000 (02:34 +0000)]
Comment in the man page and warning in stlload (when stlload fails) to make
it clear that the recent PCI cards do not require firmware to be loaded,
unlike the completely different ISA cards that are branded with the same name.

22 years agoNote what the default address_family is.
Dima Dorfman [Mon, 11 Feb 2002 02:31:03 +0000 (02:31 +0000)]
Note what the default address_family is.

PR: 32463
Submitted by: Gary W. Swearingen

22 years agoANSIfy the function declarations, in line with NetBSD.
Josef Karthauser [Mon, 11 Feb 2002 02:25:47 +0000 (02:25 +0000)]
ANSIfy the function declarations, in line with NetBSD.

22 years agoMove the declaration of panic() from sys/param.h back to sys/systm.h.
Bruce Evans [Mon, 11 Feb 2002 02:13:18 +0000 (02:13 +0000)]
Move the declaration of panic() from sys/param.h back to sys/systm.h.

Almost all .c files have to include <sys/systm.h> for more than its
declaration of panic(), so little is gained from declaring panic() in
a wrong place.  This probably depends on missing garbage collection
of the includes of <sys/systm.h> that were added to get snprintf()
declared for old versions of the ktr macros.

22 years agoThe routine is dev_depends(); consistently spell it that way.
Dima Dorfman [Mon, 11 Feb 2002 01:21:29 +0000 (01:21 +0000)]
The routine is dev_depends(); consistently spell it that way.

PR: 34047
Submitted by: Maxime Henrion <mux@sneakerz.org>
Pointy hat to: dd

22 years agoMerge from NetBSD: revs 1.43 + 1.45
Josef Karthauser [Mon, 11 Feb 2002 01:04:46 +0000 (01:04 +0000)]
Merge from NetBSD: revs 1.43 + 1.45

From the NetBSD logs:

    revision 1.45
    date: 2001/11/29 11:07:12;  author: augustss;  state: Exp;  lines: +12 -2
    Plug a memory leak in an error case.
    ----------------------------
    revision 1.43
    date: 2001/10/19 15:30:25;  author: nathanw;  state: Exp;  lines: +5 -3
    Match printers that report their interface as IEEE 1284 in addition to
    bidirectional.

22 years agoMake dump's behaviour more sensible when the output file is a fifo.
Ian Dowse [Mon, 11 Feb 2002 00:50:50 +0000 (00:50 +0000)]
Make dump's behaviour more sensible when the output file is a fifo.
Normally trewind() performs a close-open-close cycle to rewind the
tape when closing the device, but this is not ideal for fifos. We
now skip the final open-close if the output descriptor is a fifo.

PR: bin/25474
Submitted by: Alex Bakhtin <bakhtin@amt.ru>
MFC after: 1 week

22 years agoSilence unused variable warning in the !KLD_MODULE case.
Dima Dorfman [Sun, 10 Feb 2002 22:22:05 +0000 (22:22 +0000)]
Silence unused variable warning in the !KLD_MODULE case.

Submitted by: archie

22 years agoMake it clear that dump(8)'s honoring of the UF_NODUMP flag is subject
Dima Dorfman [Sun, 10 Feb 2002 22:14:09 +0000 (22:14 +0000)]
Make it clear that dump(8)'s honoring of the UF_NODUMP flag is subject
to the -h option.  While here, xref chflags(1).

PR: 33907
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoGC the unused einval()
Poul-Henning Kamp [Sun, 10 Feb 2002 22:07:41 +0000 (22:07 +0000)]
GC the unused einval()

Obtained from: ~bde/sys.dif.gz

22 years agoStyle(9) nits.
Poul-Henning Kamp [Sun, 10 Feb 2002 22:04:44 +0000 (22:04 +0000)]
Style(9) nits.

Obtained from: ~bde/sys.dif.gz

22 years agoVarious nit-picking, mostly of style(9) character.
Poul-Henning Kamp [Sun, 10 Feb 2002 22:00:20 +0000 (22:00 +0000)]
Various nit-picking, mostly of style(9) character.

Obtained from: ~bde/sys.dif.gz

22 years agoAdd a comment indicating that the locking protocol should be updated
Robert Watson [Sun, 10 Feb 2002 21:46:16 +0000 (21:46 +0000)]
Add a comment indicating that the locking protocol should be updated
to be 'L L L' for vop_getattr().  Don't update it yet, because there
are still many offenders.

22 years agoAdd a comment indicating that VOP_GETATTR() is called without appropriate
Robert Watson [Sun, 10 Feb 2002 21:45:16 +0000 (21:45 +0000)]
Add a comment indicating that VOP_GETATTR() is called without appropriate
locking in the core dump code.  This should be fixed.

22 years agoMake sure to hold vnode lock when calling into VOP_GETATTR().
Robert Watson [Sun, 10 Feb 2002 21:44:30 +0000 (21:44 +0000)]
Make sure to hold vnode lock when calling into VOP_GETATTR().

Discussed with: mckusick, phk

22 years agoStaticize the malloc definitions.
Poul-Henning Kamp [Sun, 10 Feb 2002 21:42:44 +0000 (21:42 +0000)]
Staticize the malloc definitions.

Obtained from: ~bde/sys.dif.gz

22 years agoRemove spurious ';'
Poul-Henning Kamp [Sun, 10 Feb 2002 21:36:13 +0000 (21:36 +0000)]
Remove spurious ';'

Obtained from: ~bde/sys.dif.gz

22 years agoAdd a comment indicating that the vnode locking in this section of the
Robert Watson [Sun, 10 Feb 2002 21:29:02 +0000 (21:29 +0000)]
Add a comment indicating that the vnode locking in this section of the
kernel linker code may be wrong: it fails to hold a lock across the
call to VOP_GETATTR(), and vn_rdwr() with IO_NODELOCKED.

22 years agoDon't make it seem like vm.max_proc_mmap only affects MAP_FIXED.
Dima Dorfman [Sun, 10 Feb 2002 21:07:56 +0000 (21:07 +0000)]
Don't make it seem like vm.max_proc_mmap only affects MAP_FIXED.

PR: 34005
Submitted by: Steven Grady <grady@digitaldeck..com>,
Hiten Pandya <hitmaster2k@yahoo.com>

22 years agoReinforce locking requirement for VOP_REVOKE: the lock must not be held.
Robert Watson [Sun, 10 Feb 2002 20:48:22 +0000 (20:48 +0000)]
Reinforce locking requirement for VOP_REVOKE: the lock must not be held.

Discussed with: phk

22 years agoMake sure to grab vnode lock on a vnode before calling VOP_GETATTR()
Robert Watson [Sun, 10 Feb 2002 20:45:43 +0000 (20:45 +0000)]
Make sure to grab vnode lock on a vnode before calling VOP_GETATTR()
to perform an ownership test in revoke().  This is also required for
MAC hooks so that the vnode lock is held during a call to the MAC
framework.  Release the lock before calling VOP_REVOKE().

Discussed with: phk, mckusick

22 years agoNice set of fixes to use SCRIPT instead of PROG, thus fixing up
Mark Murray [Sun, 10 Feb 2002 19:48:19 +0000 (19:48 +0000)]
Nice set of fixes to use SCRIPT instead of PROG, thus fixing up
a lot of nasty STRIP= problems. This has the added side effect
if neatening up some leaf makefiles very nicely.

Submitted by: ru

22 years agoRevert 1.14: VOP_GETATTR() really does require a vnode lock.
Robert Watson [Sun, 10 Feb 2002 19:28:34 +0000 (19:28 +0000)]
Revert 1.14: VOP_GETATTR() really does require a vnode lock.

Confirmed by: mckusick

22 years agoStyle consistency fix for MAC ioctls added previously.
Robert Watson [Sun, 10 Feb 2002 16:55:35 +0000 (16:55 +0000)]
Style consistency fix for MAC ioctls added previously.

22 years agoFill in the uhci_dump_ii function (from NetBSD).
Josef Karthauser [Sun, 10 Feb 2002 15:38:47 +0000 (15:38 +0000)]
Fill in the uhci_dump_ii function (from NetBSD).

22 years agoAdd this FreeBSD standard header.
David E. O'Brien [Sun, 10 Feb 2002 14:27:20 +0000 (14:27 +0000)]
Add this FreeBSD standard header.

22 years agoAdd some system code names. Explicitely list a few unsupported hardware
Wilko Bulte [Sun, 10 Feb 2002 13:21:18 +0000 (13:21 +0000)]
Add some system code names. Explicitely list a few unsupported hardware
types that gave rise to emailed questions. Add quick note on Miata CPU
upgradeability.

22 years agoUpdate this to 5.006.
David E. O'Brien [Sun, 10 Feb 2002 12:37:52 +0000 (12:37 +0000)]
Update this to 5.006.

22 years agoCosmetic changes:
KATO Takenori [Sun, 10 Feb 2002 11:23:14 +0000 (11:23 +0000)]
Cosmetic changes:
- Collected i486 identification codes in one place like
  586 and 686.
- Merged two cases (0x470 and 0x490) for `Enhanced Am486DX4
  Write-Back.'
- Replaced `unknown' into `Unknown'.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)

22 years agoCosmetic changes.
Yoshihiro Takahashi [Sun, 10 Feb 2002 10:27:37 +0000 (10:27 +0000)]
Cosmetic changes.

22 years agoAdd needed include.
Yoshihiro Takahashi [Sun, 10 Feb 2002 10:16:22 +0000 (10:16 +0000)]
Add needed include.

22 years ago- Refine the iskanji1 function.
Yoshihiro Takahashi [Sun, 10 Feb 2002 10:15:41 +0000 (10:15 +0000)]
- Refine the iskanji1 function.
- Print continuous ascii characters at a time.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)

22 years agoFixed mouse cursor on a console.
Yoshihiro Takahashi [Sun, 10 Feb 2002 10:14:39 +0000 (10:14 +0000)]
Fixed mouse cursor on a console.

Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)

22 years agomemrange.h is in sys/.
Dima Dorfman [Sun, 10 Feb 2002 08:52:25 +0000 (08:52 +0000)]
memrange.h is in sys/.

PR: 34460
Submitted by: Bruce Dang <bruce@research.teamxor.org>, roam

22 years agocrdup(9) is not a protocol.
Dima Dorfman [Sun, 10 Feb 2002 08:19:58 +0000 (08:19 +0000)]
crdup(9) is not a protocol.

PR: 34624
Submitted by: John Nielsen <nielsenj@cs.byu.edu>,
Hiten Pandya <hiten@uk.FreeBSD.org>

22 years agoUpdate license.
Robert Watson [Sun, 10 Feb 2002 06:14:03 +0000 (06:14 +0000)]
Update license.

22 years agoTeach getextattr to query the EA size and allocate appropriate sized
Robert Watson [Sun, 10 Feb 2002 06:13:14 +0000 (06:13 +0000)]
Teach getextattr to query the EA size and allocate appropriate sized
buffers before reading the memory.  Arguably, the failure modes here
are poor, but we can now read >2k EAs.  Also, update the copyrights
and licenses while I'm here.

22 years agoUse the getprogname(3) function instead of directly accessing
Mike Barcroft [Sun, 10 Feb 2002 05:56:36 +0000 (05:56 +0000)]
Use the getprogname(3) function instead of directly accessing
`__progname'.

Submitted by: dd

22 years agoRemove a stray 'const' that slept into extattr_set_vp(), and could
Robert Watson [Sun, 10 Feb 2002 05:31:55 +0000 (05:31 +0000)]
Remove a stray 'const' that slept into extattr_set_vp(), and could
result in compiler warnings.

22 years agoNull interrupt handlers should be OK, so if we don't have a function,
Warner Losh [Sun, 10 Feb 2002 05:04:20 +0000 (05:04 +0000)]
Null interrupt handlers should be OK, so if we don't have a function,
just return.

22 years agoMinor style tweaks.
Robert Watson [Sun, 10 Feb 2002 04:57:08 +0000 (04:57 +0000)]
Minor style tweaks.

Remove an unneeded comment and commented out code that won't be
needed.

22 years agoCopyright + license update.
Robert Watson [Sun, 10 Feb 2002 04:50:24 +0000 (04:50 +0000)]
Copyright + license update.

22 years agoUpdate userland tools to reflect extattr API changes.
Robert Watson [Sun, 10 Feb 2002 04:48:26 +0000 (04:48 +0000)]
Update userland tools to reflect extattr API changes.

Note that getextattr has not yet been updated to dynamically allocate
a read buffer, although that can now be done.

Obtained from: TrustedBSD Project
Sponsored by: NAI Labs

22 years agoPart III: Update extended attribute system call interface documentation.
Robert Watson [Sun, 10 Feb 2002 04:46:28 +0000 (04:46 +0000)]
Part III: Update extended attribute system call interface documentation.

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

22 years agoPart II: Update system calls for extended attributes. Rebuild of
Robert Watson [Sun, 10 Feb 2002 04:44:37 +0000 (04:44 +0000)]
Part II: Update system calls for extended attributes.  Rebuild of
         generated files.

22 years agoPart I: Update extended attribute API and ABI:
Robert Watson [Sun, 10 Feb 2002 04:43:22 +0000 (04:43 +0000)]
Part I: Update extended attribute API and ABI:

o Modify the system call syntax for extattr_{get,set}_{fd,file}() so
  as not to use the scatter gather API (which appeared not to be used
  by any consumers, and be less portable), rather, accepts 'data'
  and 'nbytes' in the style of other simple read/write interfaces.
  This changes the API and ABI.

o Modify system call semantics so that extattr_get_{fd,file}() return
  a size_t.  When performing a read, the number of bytes read will
  be returned, unless the data pointer is NULL, in which case the
  number of bytes of data are returned.  This changes the API only.

o Modify the VOP_GETEXTATTR() vnode operation to accept a *size_t
  argument so as to return the size, if desirable.  If set to NULL,
  the size will not be returned.

o Update various filesystems (pseodofs, ufs) to DTRT.

These changes should make extended attributes more useful and more
portable.  More commits to rebuild the system call files, as well
as update userland utilities to follow.

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

22 years agoThis commit was generated by cvs2svn to compensate for changes in r90446,
Mark Peek [Sun, 10 Feb 2002 04:40:26 +0000 (04:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r90446,
which included commits to RCS files with non-trunk default branches.

22 years ago- Add support for autodetection of *.euc?? and *.EUC locales.
Mark Peek [Sun, 10 Feb 2002 04:40:26 +0000 (04:40 +0000)]
- Add support for autodetection of *.euc?? and *.EUC locales.
  - ja_JP.eucJP, ja_JP.EUC
  - ko_KR.eucKR, ko_KR.EUC
  - zn_CN.eucCN, zn_CN.EUC
- Add support for zh_TW.Big5
- Add ja_JP.Shift_JIS alias for ja_JP.SJIS

Submitted by: phantom
Approved by: Christos Zoulas <cristos@zoulas.com> - TCSH maintainer

22 years agoo Use bus_generic_setup_intr instead of bus_setup_intr.
Warner Losh [Sun, 10 Feb 2002 03:34:44 +0000 (03:34 +0000)]
o Use bus_generic_setup_intr instead of bus_setup_intr.
o Call bus_generic_setup_intr and check its return value.  Don't setup
  func until we successfully get the interrupt from our parent.
o Add comments about some maybe questionable stuff so I can check later
  to make sure that it really is that way.

22 years agoo Use INTR_TYPE_AV (the highest possible) rather than INTR_TYPE_BIO
Warner Losh [Sun, 10 Feb 2002 03:28:37 +0000 (03:28 +0000)]
o Use INTR_TYPE_AV (the highest possible) rather than INTR_TYPE_BIO
o Don't allow INTR_TYPE_FAST.  Since we are sharing the interrupt between
  CSC and the functions, they can't be FAST because fast interrupts can't
  be shared.
o Add the same workaround for resume that we have in OLDCARD.
o Also, return the error from bus_generic_resume rather than ignoring it.

22 years agoIt's OK to be pedantic, but long long literals are OK.
Poul-Henning Kamp [Sun, 10 Feb 2002 02:30:53 +0000 (02:30 +0000)]
It's OK to be pedantic, but long long literals are OK.

22 years agoo No longer mount /proc by default on newly installed systems. Almost
Robert Watson [Sun, 10 Feb 2002 01:34:04 +0000 (01:34 +0000)]
o No longer mount /proc by default on newly installed systems.  Almost
  all facilities that previously relied on /proc have been rewritten
  to use ptrace().  procfs has presented a substantial security
  hazard for years, with several user->root compromises in the last
  few years.  Procfs will continue to be available but will require
  administrator intervention to use.

Reviewed by: scottl, jedgar, mike, tmm

22 years agoRemove di_inumber since LFS is long gone.
Poul-Henning Kamp [Sun, 10 Feb 2002 00:55:49 +0000 (00:55 +0000)]
Remove di_inumber since LFS is long gone.

22 years agoBoot verbosify printing the CIS, since we don't normally need to do that.
Warner Losh [Sat, 9 Feb 2002 21:34:06 +0000 (21:34 +0000)]
Boot verbosify printing the CIS, since we don't normally need to do that.

22 years agoMake unsupported memory range message bootverbose only
Warner Losh [Sat, 9 Feb 2002 21:32:02 +0000 (21:32 +0000)]
Make unsupported memory range message bootverbose only

22 years agoFix MAKEDEV for RocketPort (rp(4)) cuaR* and ttyR* to work with the
John Baldwin [Sat, 9 Feb 2002 21:16:54 +0000 (21:16 +0000)]
Fix MAKEDEV for RocketPort (rp(4)) cuaR* and ttyR* to work with the
updated driver.  The newer driver in current outputs a version string
that contains a space, so we need to eat two words in between RocketPortX
and the number of ports on the board.

22 years agoThis has been sitting in my local tree long enough. Remove the use
Daniel Eischen [Sat, 9 Feb 2002 19:58:41 +0000 (19:58 +0000)]
This has been sitting in my local tree long enough.  Remove the use
of an alternate signal stack for handling signals.  Let the kernel
send signals on the stack of the current thread and teach the threads
signal handler how to deliver signals to the current thread if it
needs to.  Also, always store a threads context as a jmp_buf.  Eventually
this will change to be a ucontext_t or mcontext_t.

Other small nits.  Use struct pthread * instead of pthread_t in internal
library routines.  The threads code wants struct pthread *, and pthread_t
doesn't necessarily have to be the same.

Reviewed by: jasone

22 years agoSilence a warning by initializing the return value. This wasn't
Daniel Eischen [Sat, 9 Feb 2002 19:48:55 +0000 (19:48 +0000)]
Silence a warning by initializing the return value.  This wasn't
set in the case of a short write, and I think returning 0 for this
is what was intended.

22 years agoThis file needs <syslog.h>.
Dag-Erling Smørgrav [Sat, 9 Feb 2002 14:12:09 +0000 (14:12 +0000)]
This file needs <syslog.h>.

Sponsored by: DARPA, NAI Labs

22 years agoRecognize VIA C3 Samuel 2.
KATO Takenori [Sat, 9 Feb 2002 05:18:01 +0000 (05:18 +0000)]
Recognize VIA C3 Samuel 2.

MFC after: 3 days

22 years agoMFC noted: an(4) LEAP, Home key, and Linux utility support.
Bruce A. Mah [Sat, 9 Feb 2002 01:38:23 +0000 (01:38 +0000)]
MFC noted:  an(4) LEAP, Home key, and Linux utility support.