Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/smbfs g/c compatibility defines PROC_LOCK()/PROC_UNLO...



details:   https://anonhg.NetBSD.org/src/rev/094d56f8015d
branches:  trunk
changeset: 543346:094d56f8015d
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Feb 23 19:35:14 2003 +0000

description:
g/c compatibility defines PROC_LOCK()/PROC_UNLOCK()

diffstat:

 sys/fs/smbfs/smbfs_io.c |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r c3e28b2b440b -r 094d56f8015d sys/fs/smbfs/smbfs_io.c
--- a/sys/fs/smbfs/smbfs_io.c   Sun Feb 23 19:30:13 2003 +0000
+++ b/sys/fs/smbfs/smbfs_io.c   Sun Feb 23 19:35:14 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_io.c,v 1.6 2003/02/23 19:30:13 jdolecek Exp $    */
+/*     $NetBSD: smbfs_io.c,v 1.7 2003/02/23 19:35:14 jdolecek Exp $    */
 
 /*
  * Copyright (c) 2000-2001, Boris Popov
@@ -75,11 +75,6 @@
 #include <fs/smbfs/smbfs_node.h>
 #include <fs/smbfs/smbfs_subr.h>
 
-#ifdef __NetBSD__
-#define PROC_LOCK(x) 
-#define PROC_UNLOCK(x)
-#endif
-
 /*#define SMBFS_RWGENERIC*/
 
 #define DE_SIZE        (sizeof(struct dirent))
@@ -274,9 +269,7 @@
        if (uiop->uio_resid == 0)
                return 0;
        if (p && uiop->uio_offset + uiop->uio_resid > p->p_rlimit[RLIMIT_FSIZE].rlim_cur) {
-               PROC_LOCK(p);
                psignal(p, SIGXFSZ);
-               PROC_UNLOCK(p);
                return EFBIG;
        }
        smb_makescred(&scred, p, cred);



Home | Main Index | Thread Index | Old Index