summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-10-02 03:57:59 +0000
committerrwatson <rwatson@FreeBSD.org>2003-10-02 03:57:59 +0000
commit1c522512fd8b855dc3d6dbd26fed59bda6e9f0e4 (patch)
tree7fdb21bc021ffa96a9ec8e2fef64117bb2d7f8f7 /sys/kern/kern_descrip.c
parentbde7cb88e1541224eebdf2697d051304801b7d90 (diff)
downloadFreeBSD-src-1c522512fd8b855dc3d6dbd26fed59bda6e9f0e4.zip
FreeBSD-src-1c522512fd8b855dc3d6dbd26fed59bda6e9f0e4.tar.gz
Remove the global variable 'cmask', which was used to initialize the
fd_cmask field in the file descriptor structure for the first process indirectly from CMASK, and when an fd structure is initialized before being filled in, and instead just use CMASK. This appears to be an artifact left over from the initial integration of quotas into BSD. Suggested by: peter
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index c2a6eea..1ed5140 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -102,7 +102,6 @@ static int do_dup(struct thread *td, enum dup_type type, int old, int new,
*/
struct filelist filehead; /* head of list of open files */
int nfiles; /* actual number of open files */
-extern int cmask;
struct sx filelist_lock; /* sx to protect filelist */
struct mtx sigio_lock; /* mtx to protect pointers to sigio */
@@ -1264,7 +1263,7 @@ fdinit(fdp)
/* Create the file descriptor table. */
newfdp->fd_fd.fd_refcnt = 1;
- newfdp->fd_fd.fd_cmask = cmask;
+ newfdp->fd_fd.fd_cmask = CMASK;
newfdp->fd_fd.fd_ofiles = newfdp->fd_dfiles;
newfdp->fd_fd.fd_ofileflags = newfdp->fd_dfileflags;
newfdp->fd_fd.fd_nfiles = NDFILE;
OpenPOWER on IntegriCloud