Lines Matching defs:specnode

337 apply_specdir(const char *dir, NODE *specnode, fsnode *dirnode, int speconly)
343 assert(specnode != NULL);
347 printf("apply_specdir: %s %p %p\n", dir, specnode, dirnode);
349 if (specnode->type != F_DIR)
351 dir, specnode->name);
356 apply_specentry(dir, specnode, dirnode);
368 for (curnode = specnode->child; curnode != NULL;
382 /* now walk specnode->child matching up with dirnode */
383 for (curnode = specnode->child; curnode != NULL;
471 apply_specentry(const char *dir, NODE *specnode, fsnode *dirnode)
474 assert(specnode != NULL);
477 if (nodetoino(specnode->type) != dirnode->type)
479 dir, specnode->name, inode_type(nodetoino(specnode->type)),
490 if (specnode->flags & (F_GID | F_GNAME)) {
492 dirnode->inode->st.st_gid, specnode->st_gid);
493 dirnode->inode->st.st_gid = specnode->st_gid;
495 if (specnode->flags & F_MODE) {
497 dirnode->inode->st.st_mode & ALLPERMS, specnode->st_mode);
499 dirnode->inode->st.st_mode |= (specnode->st_mode & ALLPERMS);
502 if (specnode->flags & F_SIZE) {
505 (long long)specnode->st_size);
506 dirnode->inode->st.st_size = specnode->st_size;
508 if (specnode->flags & F_SLINK) {
510 assert(specnode->slink != NULL);
511 ASEPRINT("symlink", "%s", dirnode->symlink, specnode->slink);
513 dirnode->symlink = estrdup(specnode->slink);
515 if (specnode->flags & F_TIME) {
518 (long)specnode->st_mtimespec.tv_sec);
519 dirnode->inode->st.st_mtime = specnode->st_mtimespec.tv_sec;
520 dirnode->inode->st.st_atime = specnode->st_mtimespec.tv_sec;
523 dirnode->inode->st.st_mtimensec = specnode->st_mtimespec.tv_nsec;
524 dirnode->inode->st.st_atimensec = specnode->st_mtimespec.tv_nsec;
528 if (specnode->flags & (F_UID | F_UNAME)) {
530 dirnode->inode->st.st_uid, specnode->st_uid);
531 dirnode->inode->st.st_uid = specnode->st_uid;
534 if (specnode->flags & F_FLAGS) {
537 (unsigned long)specnode->st_flags);
538 dirnode->inode->st.st_flags = specnode->st_flags;
541 /* if (specnode->flags & F_DEV) {
544 (unsigned long long)specnode->st_rdev);
545 dirnode->inode->st.st_rdev = specnode->st_rdev;