Lines Matching +defs:cpp +defs:a

63 #define	ISDOT(a)	(a[0] == '.' && (!a[1] || (a[1] == '.' && !a[2])))
89 * The "FTS_NOSTAT" option can avoid a lot of calls to stat(2) if it
90 * knows that a directory could not possibly have subdirectories. This
91 * is decided by looking at the link count: a subdirectory would
188 * Allocate a dummy pointer and make fts_read think that we've just
198 * If using chdir(2), grab a file descriptor pointing to dot to ensure
250 * list which has a valid parent pointer.
321 * Following a symlink -- SLNONE test allows application to see
322 * SLNONE and recover. If indirecting through a symlink, have
323 * keep a pointer to current location. If unable to get that
369 * directories back to the parent we don't do a chdir.
412 * ignore. If followed, get a file descriptor so we can
458 * Return to the parent directory. If at a root node or came through
459 * a symlink, go back through the file descriptor. Otherwise, cd up
534 * If not a directory being visited in pre-order, stop here. Could
552 * If using chdir on a relative path and called BEFORE fts_read does
553 * its chdir to the root of a traversal, we can lose -- we need to
623 * set and it's a physical walk (so that symbolic links can't be directories),
624 * we can do things quickly. First, if it's a 4.4BSD file system, the type
626 * of subdirectories in a node is equal to the number of links to the parent.
643 long nlinks; /* has to be signed because -1 is a magic value */
697 * but set a flag so we don't chdir after the post-order visit.
701 * names than before, i.e. "a/b" instead of "b". Since the node
703 * post-order visit to return the error. There is a special case
705 * not be able to stat. This is all fairly nasty. If a program
726 * could do them in fts_read before returning the path, but it's a
729 * If not changing directories set a pointer so that can just append
809 /* Build a file name for fts_stat to stat. */
865 * the saved fd; if one of fts_open()'s arguments is a relative path
923 * If doing a logical walk, or application requested FTS_FOLLOW, do
924 * a stat(2). If that fails, check for a non-existent symlink. If
982 * Qsort wants a comparison function that takes pointers to void.
984 * Use a trampoline function to deal with the difference.
987 fts_compar(const void *a, const void *b)
991 parent = (*(const FTSENT * const *)a)->fts_fts;
992 return (*parent->fts_compar)(a, b);
1005 * 40 so don't realloc one entry at a time.
1031 * The file name is a variable length array and no stat structure is
1064 /* Free a linked list of structures. */
1075 * plus 256 bytes so don't realloc the path 2 bytes at a time.
1167 const char **cpp;
1180 for (cpp = ufslike_filesystems; *cpp; cpp++) {
1182 *cpp) == 0) {