Commit Graph

69963 Commits

Author SHA1 Message Date
rwatson
2ed6038a0d Reinforce locking requirement for VOP_REVOKE: the lock must not be held.
Discussed with:	phk
2002-02-10 20:48:22 +00:00
rwatson
aa54f85939 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
2002-02-10 20:45:43 +00:00
markm
9c03bd91c5 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
2002-02-10 19:48:19 +00:00
rwatson
223f1b85f2 Revert 1.14: VOP_GETATTR() really does require a vnode lock.
Confirmed by:	mckusick
2002-02-10 19:28:34 +00:00
rwatson
c20b76b8d0 Style consistency fix for MAC ioctls added previously. 2002-02-10 16:55:35 +00:00
joe
56f70a75ef Fill in the uhci_dump_ii function (from NetBSD). 2002-02-10 15:38:47 +00:00
obrien
bb08463f2b Add this FreeBSD standard header. 2002-02-10 14:27:20 +00:00
wilko
063f13a680 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.
2002-02-10 13:21:18 +00:00
obrien
cb0b12fb00 Update this to 5.006. 2002-02-10 12:37:52 +00:00
kato
9905138900 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)
2002-02-10 11:23:14 +00:00
nyan
25bdd1bd55 Cosmetic changes. 2002-02-10 10:27:37 +00:00
nyan
18e5cade50 Add needed include. 2002-02-10 10:16:22 +00:00
nyan
41d18bbb0a - Refine the iskanji1 function.
- Print continuous ascii characters at a time.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
2002-02-10 10:15:41 +00:00
nyan
bf52fb4e7a Fixed mouse cursor on a console.
Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
2002-02-10 10:14:39 +00:00
dd
95edd69eb2 memrange.h is in sys/.
PR:		34460
Submitted by:	Bruce Dang <bruce@research.teamxor.org>, roam
2002-02-10 08:52:25 +00:00
dd
074087bf75 crdup(9) is not a protocol.
PR:		34624
Submitted by:	John Nielsen <nielsenj@cs.byu.edu>,
		Hiten Pandya <hiten@uk.FreeBSD.org>
2002-02-10 08:19:58 +00:00
rwatson
cb32ac9593 Update license. 2002-02-10 06:14:03 +00:00
rwatson
31155c8524 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.
2002-02-10 06:13:14 +00:00
mike
c9034a8d20 Use the getprogname(3) function instead of directly accessing
`__progname'.

Submitted by:	dd
2002-02-10 05:56:36 +00:00
rwatson
eef638ac93 Remove a stray 'const' that slept into extattr_set_vp(), and could
result in compiler warnings.
2002-02-10 05:31:55 +00:00
imp
fc3cad7e87 Null interrupt handlers should be OK, so if we don't have a function,
just return.
2002-02-10 05:04:20 +00:00
rwatson
c00ccc43a6 Minor style tweaks.
Remove an unneeded comment and commented out code that won't be
needed.
2002-02-10 04:57:08 +00:00
rwatson
ce1e1df4d1 Copyright + license update. 2002-02-10 04:50:24 +00:00
rwatson
8055280c8a 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
2002-02-10 04:48:26 +00:00
rwatson
00cc7ae318 Part III: Update extended attribute system call interface documentation.
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
2002-02-10 04:46:28 +00:00
rwatson
94eec10ab3 Part II: Update system calls for extended attributes. Rebuild of
generated files.
2002-02-10 04:44:37 +00:00
rwatson
6ca91a055c 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
2002-02-10 04:43:22 +00:00
mp
a752dc58a8 This commit was generated by cvs2svn to compensate for changes in r90446,
which included commits to RCS files with non-trunk default branches.
2002-02-10 04:40:26 +00:00
mp
e8a1e84ed0 - 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
2002-02-10 04:40:26 +00:00
imp
001b5dc57d 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.
2002-02-10 03:34:44 +00:00
imp
196ad9781b 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.
2002-02-10 03:28:37 +00:00
phk
00376cdc1c It's OK to be pedantic, but long long literals are OK. 2002-02-10 02:30:53 +00:00
rwatson
5445e82ad4 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
2002-02-10 01:34:04 +00:00
phk
d2872f5d10 Remove di_inumber since LFS is long gone. 2002-02-10 00:55:49 +00:00
imp
d22d828b7d Boot verbosify printing the CIS, since we don't normally need to do that. 2002-02-09 21:34:06 +00:00
imp
79276058c8 Make unsupported memory range message bootverbose only 2002-02-09 21:32:02 +00:00
jhb
1fd7d64d57 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.
2002-02-09 21:16:54 +00:00
deischen
4ed9f7fd06 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
2002-02-09 19:58:41 +00:00
deischen
04de782349 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.
2002-02-09 19:48:55 +00:00
des
863a49b908 This file needs <syslog.h>.
Sponsored by:	DARPA, NAI Labs
2002-02-09 14:12:09 +00:00
kato
86f2eb52e9 Recognize VIA C3 Samuel 2.
MFC after:	3 days
2002-02-09 05:18:01 +00:00
bmah
ac05f93787 MFC noted: an(4) LEAP, Home key, and Linux utility support. 2002-02-09 01:38:23 +00:00
julian
11fa082235 Replace accidentally removed setrunqueue()
solves problem with machines failing to sync in booting.
Submitted by: Tor.Egge@cvsup.no.freebsd.org
2002-02-09 01:38:16 +00:00
jhb
340b988d0b Use the mtx_owner() macro in one spot in _mtx_lock_sleep() to make the
code easier to read.
2002-02-09 00:12:53 +00:00
des
3d4000737f Add missing "nullok" option to pam_unix. 2002-02-08 23:27:22 +00:00
markm
31d81e4fbc Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3. 2002-02-08 23:07:37 +00:00
markm
ae2558974f Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
markm
efab01cf5e Don't hardcode paths. This is generally silly, and in this case
breaks custom installworlds.

Pointed out by:	bde
2002-02-08 21:28:07 +00:00
tmm
e5ac0f9e2f Fix a bug introduced in r. 1.28: when copy{in,out} would fail for an
iovec that was not the last one in the uio, the error would be ignored
silently.

Bug found and fix proposed by:	jhb
2002-02-08 20:19:44 +00:00
obrien
f697ae8b94 Correct email address for bug reports and patch submissions.
Submitted by:	Marco Molteni <molter@tin.it>
2002-02-08 19:45:58 +00:00