Introduce PUFFS_STORE_DCOOKIE, which stores a directory cookie for a
given offset iff the directory read in question wants cookies.
This commit is contained in:
parent
f9d2f485d4
commit
eeff4f8efe
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: puffs.h,v 1.45 2007/04/16 13:04:50 pooka Exp $ */
|
||||
/* $NetBSD: puffs.h,v 1.46 2007/04/17 11:42:14 pooka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
|
||||
|
@ -372,6 +372,12 @@ enum {
|
|||
#define PCNISDOTDOT(pcnode) \
|
||||
((pcnode)->pcn_namelen == 2 && strcmp((pcnode)->pcn_name, "..") == 0)
|
||||
|
||||
#define PUFFS_STORE_DCOOKIE(cp, ncp, off) \
|
||||
if (cp) { \
|
||||
*((cp)++) = off; \
|
||||
(*(ncp))++; \
|
||||
}
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
struct puffs_usermount *_puffs_mount(int, struct puffs_ops *, const char *, int,
|
||||
|
|
Loading…
Reference in New Issue