Lines Matching defs:DirNode
66 typedef struct DirNode DirNode;
67 struct DirNode {
68 DirNode *next; /* The next directory in the list */
69 DirNode *prev; /* The node that precedes this node in the list */
74 FreeList *mem; /* Memory for DirNode list nodes */
75 DirNode *head; /* The head of the list of used and unused cache nodes */
76 DirNode *next; /* The next unused node between head and tail */
77 DirNode *tail; /* The tail of the list of unused cache nodes */
121 static DirNode *ef_open_dir(ExpandFile *ef, const char *pathname);
122 static DirNode *ef_close_dir(ExpandFile *ef, DirNode *node);
205 ef->cache.mem = _new_FreeList(sizeof(DirNode), DIR_CACHE_BLK);
244 DirNode *dnode;
255 * Delete the memory from which the DirNode list was allocated, thus
350 DirNode *dnode; /* A directory-reader cache node */
565 DirNode *subdnode = ef_open_dir(ef, ef->path->name);
681 * return DirNode * The cache entry of the new directory reader,
685 static DirNode *ef_open_dir(ExpandFile *ef, const char *pathname)
688 DirNode *node; /* The cache node used */
697 node = (DirNode *) _new_FreeListNode(cache->mem);
716 node = (DirNode *) _del_FreeListNode(cache->mem, node);
766 * node DirNode * The cache entry of the directory reader, as returned
769 * return DirNode * The deleted DirNode (ie. allways NULL).
771 static DirNode *ef_close_dir(ExpandFile *ef, DirNode *node)