diff options
author | Bruce Evans <bde@FreeBSD.org> | 1998-02-01 21:23:29 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1998-02-01 21:23:29 +0000 |
commit | bc3de552add77e20ea12872b70bd3a04f03e15ec (patch) | |
tree | 5592199d6648100b0943b574b785a2905192763f /sys/nfsclient/nfsstats.h | |
parent | 850047383e5ec230068e5512813b4b4e3169b6d3 (diff) |
Moved declaration of `union nethostadr' outside of the KERNEL section,
to give pollution compatible with <nfs/nqfs.h>. At least mount_nfs.c
previously had to #define KERNEL before including <nfs/nfs.h> to get
this pollution, but this gave other pollution.
Moved comment about NFSINT_SIGMASK to immediately before the code that
it applies to.
Notes
Notes:
svn path=/head/; revision=32998
Diffstat (limited to 'sys/nfsclient/nfsstats.h')
-rw-r--r-- | sys/nfsclient/nfsstats.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/nfsclient/nfsstats.h b/sys/nfsclient/nfsstats.h index cd1db27b624f..9f057a343ee6 100644 --- a/sys/nfsclient/nfsstats.h +++ b/sys/nfsclient/nfsstats.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs.h 8.4 (Berkeley) 5/1/95 - * $Id: nfs.h,v 1.31 1997/09/10 19:52:24 phk Exp $ + * $Id: nfs.h,v 1.32 1997/10/12 20:25:38 phk Exp $ */ #ifndef _NFS_NFS_H_ @@ -291,13 +291,13 @@ struct nfsstats { } /* - * The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts. - * What should be in this set is open to debate, but I believe that since - * I/O system calls on ufs are never interrupted by signals the set should - * be minimal. My reasoning is that many current programs that use signals - * such as SIGALRM will not expect file I/O system calls to be interrupted - * by them and break. + * Network address hash list element */ +union nethostaddr { + u_long had_inetaddr; + struct sockaddr *had_nam; +}; + #ifdef KERNEL #ifdef MALLOC_DECLARE @@ -313,6 +313,14 @@ MALLOC_DECLARE(M_NFSBIGFH); struct uio; struct buf; struct vattr; struct nameidata; /* XXX */ +/* + * The set of signals the interrupt an I/O in progress for NFSMNT_INT mounts. + * What should be in this set is open to debate, but I believe that since + * I/O system calls on ufs are never interrupted by signals the set should + * be minimal. My reasoning is that many current programs that use signals + * such as SIGALRM will not expect file I/O system calls to be interrupted + * by them and break. + */ #define NFSINT_SIGMASK (sigmask(SIGINT)|sigmask(SIGTERM)|sigmask(SIGKILL)| \ sigmask(SIGHUP)|sigmask(SIGQUIT)) @@ -384,14 +392,6 @@ extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq; #define NFSNOHASH(fhsum) \ (&nfsnodehashtbl[(fhsum) & nfsnodehash]) -/* - * Network address hash list element - */ -union nethostaddr { - u_long had_inetaddr; - struct sockaddr *had_nam; -}; - struct nfsuid { TAILQ_ENTRY(nfsuid) nu_lru; /* LRU chain */ LIST_ENTRY(nfsuid) nu_hash; /* Hash list */ |