Commit Graph

109110 Commits

Author SHA1 Message Date
jdolecek
11c209aa83 prefix tsleep() wmesg with 'smb', rather than '90'
drop #ifndef __NetBSD__ msleep() code, it only obfuscates the code
2003-02-26 19:30:51 +00:00
christos
ea5d0d4403 keep track if we have the file opened as readonly or readwrite, so that
we don't need to call update_utmp, if our euid has changed, but we still
have a write reference to the file. Solves problem with chrooting processes.
2003-02-26 19:23:25 +00:00
christos
0d2dc54013 keep track of the two proc entries significant to the utmp entry. The one
indicated by the pid in struct utmpx [or ftpd hack], and the one that is
associated with the controlling tty, is in the foreground process group,
and has most cpu. If the second one exists, use that one, else use the first
one.
2003-02-26 19:10:28 +00:00
fredb
1709947012 Print the command in parenthesis, if kvm_getargv2() returns no
arguments. This lets "xterm -e command" display as "(command)".
Reviewed by christos.
2003-02-26 19:01:54 +00:00
christos
3a6ece1341 don't trust sizes comming in from the elf file. 2003-02-26 18:36:24 +00:00
christos
e8ec3465f7 make this compile 2003-02-26 18:35:42 +00:00
christos
d85507235b fix a memory allocation issue. 2003-02-26 18:31:21 +00:00
matt
a6c7337fa2 Remove leftover MBUFTRACE asserts. 2003-02-26 18:22:10 +00:00
christos
dc7c6aef2a The following changes make ftpd able to remove its own entries. Ftpd
calls pututxline() with ruid = 0, euid = current-ftp-user. This ends
up calling update_utmp:
- if the real uid is root, don't do password or tty ownership checks
- if we cannot open the tty line, assume that it is a daemon that does
  not use ttys and allow it to change a live entry to a dead one if
  indeed it is the same process that created the entry.
2003-02-26 18:16:50 +00:00
jdolecek
e651d04ed9 split the part of smbfs_root() which sets sm_root to separate function
smbfs_setroot()
remove pointless if() and MNT_LOCAL flag handling in smbfs_unmount()
turn the check for non-null sm_root to KASSERT() in smbfs_statfs()
adjust some comments
2003-02-26 18:16:37 +00:00
pk
4eb3db09d9 Move all `ID prom' stuff into the prom library. 2003-02-26 17:39:05 +00:00
kochi
e2b5c0723f Remove unexpectedly imported ACPI CA files and obsolete files 2003-02-26 17:06:40 +00:00
christos
8399be1bba keep track which entries are utmp and which are utmpx, so we can print
them on the stale message.
2003-02-26 15:04:10 +00:00
christos
c7d4de107a - Remove SUPPORT_FTPD_UTMP flag. Enable it only for utmp entries, utmpx does
not need it since it can get the pid from the utmpx structure.
- If the line is not found, and the pid is present (from utmpx) use that to
  determine the process information for that particular entry.
2003-02-26 15:01:09 +00:00
drochner
72d6120d24 deactivate MBUFTRACE related KASSERT()s in the !MBUFTRACE case 2003-02-26 14:36:43 +00:00
pk
fb425a12ca Re-define `struct memarr' to have the same layout as the V2 ROM memory
property to avoid gratuitous copying in prom_makememarr().

Have prom_makememarr() accept a NULL pointer, in which case it will return
the size of the array needed to store the memory descriptors.
2003-02-26 14:25:20 +00:00
pk
f5831d3d87 Store the physical memory descriptors on top of the kernel instead of
allocating a fixed sized array.
2003-02-26 14:18:24 +00:00
kanaoka
70270b0fa1 Add kochi to Responsible for acpica. 2003-02-26 12:50:25 +00:00
lukem
0263859762 Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
Based on work from Dmitry Sivachenko.
2003-02-26 12:27:04 +00:00
salo
1014d5a4e4 Regen. 2003-02-26 11:51:05 +00:00
salo
fc8db570ec Add few more Silicon Motion, Inc. cards (Lynx EM, Lynx 3DM, Lynx 3D, Lynx)
Print various [company], Inc. consistently as (surprise) [company], Inc.
2003-02-26 11:48:58 +00:00
jdolecek
2c8e39ef8f need to include <sys/mbuf.h> for M_SONAME 2003-02-26 11:12:28 +00:00
sjg
cc9d340ac8 Add -B to MAKEFLAGS so that it propagates to sub-makes.
This allows one to use -j1 -B at some point in a tree to
overcome a -jN (which is the main reason one would use -B).
2003-02-26 08:59:12 +00:00
matt
0f46b89017 Update for MBUFTRACE. 2003-02-26 07:53:04 +00:00
matt
954ff2117e Define null m_claim macro so #ifdef MBUFTRACE m_claim #endif can just be
m_claim.
2003-02-26 07:49:02 +00:00
matt
70e05a774b Fix tpyo. 2003-02-26 07:47:42 +00:00
wiz
1eb62c4c83 Describe option MBUFTRACE. Improved by comments from matt, dan, mrg, and perhaps others ;). 2003-02-26 07:34:34 +00:00
matt
d283628c8e Fix typo. 2003-02-26 07:33:57 +00:00
jdc
e5c039ad54 Make this work on sparc64 (don't use long and assume sizeof(long) = 4).
Tested against a LE32 system (arm).
2003-02-26 07:14:44 +00:00
matt
65e5548a17 Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.
2003-02-26 06:31:08 +00:00
matt
04ef5573bf Make common macros like every other port. Now newfs_lfs builds again. 2003-02-26 06:21:09 +00:00
uwe
6a4d4259ae Do not add ${LIBC_PIC} to DPADD if MKPICINSTALL is "no". 2003-02-26 06:03:40 +00:00
jdolecek
90bb788eb7 smbfs_sync(): need to explicitly ignore VNON vnodes (e.g. syncer vnode) 2003-02-25 23:57:27 +00:00
jdolecek
3f362c0871 it appears one list of vnode type names should be enough 2003-02-25 23:35:03 +00:00
matt
869bbf806d Add some RAS support. Don't print out a message when we encounter
trap instructions.
2003-02-25 23:32:03 +00:00
matt
23ea635a14 This file has a _KERNEL dependency on <machine/cpu.h>. So include it.
[GENERIC.MP builds again.]
2003-02-25 23:29:53 +00:00
briggs
52acc108b6 Play nice with files. Since we are doing an fd_getfile(), make appropriate
use of FILE_USE() and FILE_UNUSE().
2003-02-25 23:29:14 +00:00
perseant
6f5626d112 Make fs-specific fcntl macros take three arguments (approved wrstuden).
Let LFS use fcntl for cleaner functions.
2003-02-25 23:12:06 +00:00
jdolecek
b06fa82f3e make iftovt_tab[] const 2003-02-25 23:01:39 +00:00
he
eb5e5b35c1 Make sure to initialize callout structs. 2003-02-25 22:17:47 +00:00
jdolecek
c0e6d2aa07 make smbfs_sync() look more like sync routines for other fs, particularily:
* lock/unlock mntvnode_slock and vnode interlock appropriately
* use LK_NOWAIT for vget()
* adjust the check for vnode being dirty to check fs-private 'modified' flag,
  and drop waitfor/VOP_ISLOCKED() check
2003-02-25 22:17:20 +00:00
he
27bc436921 Swap neighboring lines of callout_init() and bzero() of container
struct in syn_cache_add(); the bzero() invalidates whatever
callout_init() has done (which might matter, but presently doesn't).
2003-02-25 22:12:24 +00:00
thorpej
3ea6b8be93 Add missing splbio() protecting of bufpool access. Add a clarifying
comment to <sys/buf.h> reminding everyone of the need for splbio().
2003-02-25 21:25:40 +00:00
jrf
a2d850baf8 This addresses PR kerm/19989. Thanks to hamajima@nagoya.ydc.co.jp for submitting this patch which enables /proc/uptime for linux emul. Patch reviewed by atatat@netbsd.org and tron@netbsd.org, approved by tron@netbsd.org. 2003-02-25 21:00:31 +00:00
thorpej
eb14e86676 Add a new BUF_INIT() macro which initializes b_dep and b_interlock, and
use it.  This fixes a few places where either b_dep or b_interlock were
not properly initialized.
2003-02-25 20:35:31 +00:00
matt
cc005c66db Switch back to generic bzero/memset until new one is shown to work. 2003-02-25 20:15:02 +00:00
ragge
e8d062d58b Remove bogus check for bogus netmask. 2003-02-25 14:42:30 +00:00
yamt
2bad134129 fix simplelocks 2003-02-25 13:47:44 +00:00
wiz
e04df3a3d6 Add support for '-j' to create (and extract, but -z already did that)
bzip2 compressed tar files, for GNU tar compatibility.
Patch from Soren Jacobsen in PR 19467, okayed by christos.
Sync usage with options while here.
2003-02-25 13:36:59 +00:00
wiz
43c2fa4e77 New sentence, new line. 2003-02-25 13:30:07 +00:00