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:
pooka 2007-04-17 11:42:14 +00:00
parent f9d2f485d4
commit eeff4f8efe
1 changed files with 7 additions and 1 deletions

View File

@ -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,