projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge of 4.1b and 4.1c
[unix-history]
/
usr
/
src
/
sys
/
kern
/
kern_proc.c
diff --git
a/usr/src/sys/kern/kern_proc.c
b/usr/src/sys/kern/kern_proc.c
index
b7b2e1f
..
e1e2c40
100644
(file)
--- a/
usr/src/sys/kern/kern_proc.c
+++ b/
usr/src/sys/kern/kern_proc.c
@@
-1,4
+1,4
@@
-/* kern_proc.c 4.4
7 82/11/02
*/
+/* kern_proc.c 4.4
8 82/11/13
*/
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/param.h"
#include "../h/systm.h"
@@
-22,6
+22,7
@@
#include "../h/descrip.h"
#include "../h/uio.h"
#include "../h/mbuf.h"
#include "../h/descrip.h"
#include "../h/uio.h"
#include "../h/mbuf.h"
+#include "../h/nami.h"
gethostid()
{
gethostid()
{
@@
-103,7
+104,7
@@
execve()
char cfarg[SHSIZE];
int resid;
char cfarg[SHSIZE];
int resid;
- if ((ip = namei(uchar,
0
, 1)) == NULL)
+ if ((ip = namei(uchar,
LOOKUP
, 1)) == NULL)
return;
bno = 0;
bp = 0;
return;
bno = 0;
bp = 0;
@@
-208,7
+209,7
@@
execve()
(unsigned)(u.u_dent.d_namlen + 1));
indir = 1;
iput(ip);
(unsigned)(u.u_dent.d_namlen + 1));
indir = 1;
iput(ip);
- ip = namei(schar,
0
, 1);
+ ip = namei(schar,
LOOKUP
, 1);
if (ip == NULL)
return;
goto again;
if (ip == NULL)
return;
goto again;
@@
-1006,10
+1007,10
@@
retry:
if (fp == NULL)
continue;
fp->f_count++;
if (fp == NULL)
continue;
fp->f_count++;
- if (u.u_pofile[n]&
RD
LOCK)
- fp->f_inode->i_
rd
lockc++;
- if (u.u_pofile[n]&
WR
LOCK)
- fp->f_inode->i_
wr
lockc++;
+ if (u.u_pofile[n]&
SH
LOCK)
+ fp->f_inode->i_
sh
lockc++;
+ if (u.u_pofile[n]&
EX
LOCK)
+ fp->f_inode->i_
ex
lockc++;
}
u.u_cdir->i_count++;
if (u.u_rdir)
}
u.u_cdir->i_count++;
if (u.u_rdir)