| /freebsd-14.2/contrib/pjdfstest/tests/link/ |
| H A D | 12.t | 28 expect 1 stat ${n0} nlink 30 expect 2 stat ${n0} nlink 32 expect 1 stat ${n0} nlink 36 expect 1 stat ${n0} nlink 39 expect 2 stat ${n0} nlink 41 expect 1 stat ${n0} nlink 45 expect 2 stat ${n0} nlink 48 expect 1 stat ${n0} nlink 54 expect 2 stat ${n0} nlink 56 expect 1 stat ${n0} nlink [all …]
|
| H A D | 00.t | 23 expect ${type},1 lstat ${n0} type,nlink 26 expect ${type},2 lstat ${n0} type,nlink 27 expect ${type},2 lstat ${n1} type,nlink 30 expect ${type},3 lstat ${n0} type,nlink 31 expect ${type},3 lstat ${n1} type,nlink 32 expect ${type},3 lstat ${n2} type,nlink 42 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid 47 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid 49 expect ENOENT lstat ${n2} type,mode,nlink,uid,gid 52 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid [all …]
|
| H A D | 13.t | 30 expect 1 stat ${n0}/${n1} nlink 32 expect 2 stat ${n0}/${n1} nlink 34 expect 1 stat ${n0}/${n1} nlink 38 expect 1 stat ${n0}/${n1} nlink 41 expect 2 stat ${n0}/${n1} nlink 43 expect 1 stat ${n0}/${n1} nlink 47 expect 2 stat ${n0}/${n1} nlink 50 expect 1 stat ${n0}/${n1} nlink 54 expect 2 stat ${n0}/${n1} nlink 57 expect 1 stat ${n0}/${n1} nlink [all …]
|
| H A D | 03.t | 20 expect 2 stat ${n0} nlink 21 expect 2 stat ${nx} nlink 24 expect 2 stat ${n0} nlink 25 expect 2 stat ${nx} nlink 28 expect 1 stat ${n0} nlink
|
| /freebsd-14.2/contrib/netbsd-tests/usr.sbin/mtree/ |
| H A D | mtree_d_create.out | 7 /set type=file nlink=1 8 . type=dir nlink=4 18 a type=dir nlink=4 24 nlink=2 size=18 \ 28 1 type=dir nlink=2 36 2 type=dir nlink=2 45 b type=dir nlink=2 46 b.file.1 nlink=2 size=18 \ 48 b.file.2 nlink=2 size=18 \ 51 nlink=2 size=18 \
|
| H A D | netbsd6_d_create.out | 7 /set type=file nlink=1 8 . type=dir nlink=4 18 a type=dir nlink=4 24 nlink=2 size=18 \ 28 1 type=dir nlink=2 36 2 type=dir nlink=2 45 b type=dir nlink=2 46 b.file.1 nlink=2 size=18 \ 48 b.file.2 nlink=2 size=18 \ 51 nlink=2 size=18 \
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | nlink.sh | 35 cat > /tmp/nlink.c <<EOF 75 mycc -o /tmp/nlink -Wall -Wextra -O2 /tmp/nlink.c || exit 1 76 rm /tmp/nlink.c 88 /tmp/nlink; s=$? 95 rm /tmp/nlink
|
| /freebsd-14.2/contrib/pjdfstest/tests/rename/ |
| H A D | 00.t | 23 expect ${type},0644,1 lstat ${n0} type,mode,nlink 26 expect ENOENT lstat ${n0} type,mode,nlink 27 expect ${type},${inode},0644,1 lstat ${n1} type,inode,mode,nlink 29 expect ${type},${inode},0644,2 lstat ${n0} type,inode,mode,nlink 30 expect ${type},${inode},0644,2 lstat ${n1} type,inode,mode,nlink 32 expect ${type},${inode},0644,2 lstat ${n0} type,inode,mode,nlink 33 expect ENOENT lstat ${n1} type,mode,nlink 34 expect ${type},${inode},0644,2 lstat ${n2} type,inode,mode,nlink
|
| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | link.cc | 42 void expect_link(uint64_t ino, const char *relpath, mode_t mode, uint32_t nlink) in expect_link() argument 57 out.body.entry.attr.nlink = nlink; in expect_link() 76 void expect_link(uint64_t ino, const char *relpath, mode_t mode, uint32_t nlink) in expect_link() argument 91 out.body.entry.attr.nlink = nlink; in expect_link() 139 out.body.entry.attr.nlink = 1; in TEST_F() 198 out.body.entry.attr.nlink = 1; in TEST_F() 215 out.body.entry.attr.nlink = 2; in TEST_F() 241 out.body.entry.attr.nlink = 1; in TEST_F() 270 out.body.entry.attr.nlink = 1; in TEST_F()
|
| H A D | forget.cc | 77 out.body.entry.attr.nlink = 1; in TEST_F() 115 out.body.entry.attr.nlink = 2; in TEST_F() 132 out.body.entry.attr.nlink = 1; in TEST_F() 165 out.body.entry.attr.nlink = 1; in TEST_F()
|
| H A D | getattr.cc | 53 out.body.entry.attr.nlink = 1; in expect_lookup() 225 out.body.attr.attr.nlink = 9; in TEST_F() 283 out.body.entry.attr.nlink = 1; in TEST_F() 298 out.body.attr.attr.nlink = 2; in TEST_F() 322 out.body.entry.attr.nlink = 1; in TEST_F() 343 out.body.attr.attr.nlink = 9; in TEST_F()
|
| H A D | unlink.cc | 41 void expect_lookup(const char *relpath, uint64_t ino, int times, int nlink=1) in expect_lookup() argument 50 out.body.entry.attr.nlink = nlink; in expect_lookup()
|
| H A D | destroy.cc | 88 out.body.entry.attr.nlink = 1; in TEST_F() 96 out.body.entry.attr.nlink = 1; in TEST_F()
|
| H A D | rename.cc | 238 out.body.entry.attr.nlink = 2; in TEST_F() 267 out.body.attr.attr.nlink = 2; in TEST_F() 278 out.body.entry.attr.nlink = 3; in TEST_F()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_deadlock_detector2.cpp | 79 int nlink; member 223 if (mtx1->nlink == kMaxLink) { in MutexBeforeLock() 228 for (; li < mtx1->nlink; li++) { in MutexBeforeLock() 243 if (li == mtx1->nlink) { in MutexBeforeLock() 245 Link *link = &mtx1->link[mtx1->nlink++]; in MutexBeforeLock() 257 if (!added || mtx->nlink == 0) { in MutexBeforeLock() 346 mtx->nlink = 0; in MutexDestroy() 364 for (int li = 0; li < mtx->nlink; li++) in CycleCheck() 380 if (mtx1->nlink == 0) in CycleCheck() 386 for (int li = 0; li < mtx1->nlink; li++) { in CycleCheck()
|
| /freebsd-14.2/libexec/pppoed/ |
| H A D | pppoed.c | 120 const struct linkinfo *nlink; in ConfigureNode() local 169 nlink = &hlist->link[f]; in ConfigureNode() 173 nlink->ourhook, nlink->nodeinfo.id, nlink->peerhook); in ConfigureNode() 175 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) || in ConfigureNode() 176 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) { in ConfigureNode() 182 if (strcmp(nlink->nodeinfo.type, NG_PPPOE_NODE_TYPE)) { in ConfigureNode() 184 epath, nlink->nodeinfo.type); in ConfigureNode()
|
| /freebsd-14.2/usr.sbin/ppp/ |
| H A D | ether.c | 458 const struct linkinfo *nlink; in ether_Create() local 555 nlink = &hlist->link[f]; in ether_Create() 557 log_Printf(LogDEBUG, " Found %s -> %s\n", nlink->ourhook, in ether_Create() 558 nlink->peerhook); in ether_Create() 560 if (!strcmp(nlink->ourhook, NG_ETHER_HOOK_ORPHAN) || in ether_Create() 561 !strcmp(nlink->ourhook, NG_ETHER_HOOK_DIVERT)) { in ether_Create() 567 if (!strcmp(nlink->nodeinfo.type, NG_PPPOE_NODE_TYPE)) in ether_Create() 569 snprintf(ngc.path, sizeof ngc.path, "[%x]:", nlink->nodeinfo.id); in ether_Create() 572 path, nlink->nodeinfo.type); in ether_Create()
|
| H A D | netgraph.c | 460 const struct linkinfo *nlink; in ng_Create() local 605 nlink = &hlist->link[f]; in ng_Create() 607 log_Printf(LogDEBUG, " Found %s -> %s (type %s)\n", nlink->ourhook, in ng_Create() 608 nlink->peerhook, nlink->nodeinfo.type); in ng_Create() 610 if (!strcmp(nlink->ourhook, lasthook)) { in ng_Create() 611 if (strcmp(nlink->peerhook, hook) || in ng_Create() 612 strcmp(nlink->nodeinfo.type, nodetype)) { in ng_Create() 614 p->link.name, nlink->ourhook, path); in ng_Create()
|
| /freebsd-14.2/sys/dev/acpica/ |
| H A D | acpi_apei.c | 67 TAILQ_ENTRY(apei_ge) nlink; 434 TAILQ_FOREACH(ge, &nges->ges, nlink) in apei_nmi_swi() 449 TAILQ_FOREACH(ge, &nges->ges, nlink) { in apei_nmi_handler() 488 TAILQ_FOREACH(ge, &pges->ges, nlink) in apei_callout_handler() 500 TAILQ_FOREACH(ge, &sc->iges.ges, nlink) in apei_notify_handler() 720 TAILQ_INSERT_TAIL(&sc->pges[PGE_ID(ge)].ges, ge, nlink); in apei_attach() 726 TAILQ_INSERT_TAIL(&sc->iges.ges, ge, nlink); in apei_attach() 730 TAILQ_INSERT_TAIL(&sc->nges.ges, ge, nlink); in apei_attach() 778 TAILQ_REMOVE(&sc->pges[PGE_ID(ge)].ges, ge, nlink); in apei_detach() 782 TAILQ_REMOVE(&sc->iges.ges, ge, nlink); in apei_detach() [all …]
|
| /freebsd-14.2/sbin/fsck_ffs/ |
| H A D | suj.c | 1075 int nlink; in ino_decr() local 1082 if (nlink < 1) in ino_decr() 1086 nlink--; in ino_decr() 1091 if (nlink < reqlink) { in ino_decr() 1116 nlink_t nlink; in ino_adjust() local 1123 nlink = sino->si_nlink; in ino_adjust() 1190 if (nlink < reqlink) { in ino_adjust() 1426 nlink_t nlink; in ino_check() local 1436 nlink = rrec->jr_nlink; in ino_check() 1474 nlink += newlinks; in ino_check() [all …]
|
| /freebsd-14.2/contrib/libarchive/libarchive/test/ |
| H A D | test_write_format_mtree_classic_indent.c | 33 int nlink; member 131 archive_entry_set_nlink(ae, entries[i].nlink); in test_write_format_mtree_sub() 132 assertEqualInt(entries[i].nlink, archive_entry_nlink(ae)); in test_write_format_mtree_sub()
|
| H A D | test_write_format_mtree_classic.c | 33 int nlink; member 129 archive_entry_set_nlink(ae, entries[i].nlink); in test_write_format_mtree_sub() 130 assertEqualInt(entries[i].nlink, archive_entry_nlink(ae)); in test_write_format_mtree_sub()
|
| /freebsd-14.2/libexec/flua/modules/ |
| H A D | lfs.c | 241 PUSH_INTEGER(nlink, nlink) in PUSH_INTEGER() 299 PUSH_ENTRY(nlink),
|
| /freebsd-14.2/sys/fs/tarfs/ |
| H A D | tarfs_subr.c | 190 tnp->nlink = 1; in tarfs_alloc_node() 205 tnp->nlink++; in tarfs_alloc_node() 243 parent->nlink++; in tarfs_alloc_node() 388 if (tnp->nlink-- > 1) in tarfs_free_node() 394 if (tnp->nlink-- > 2) in tarfs_free_node()
|
| /freebsd-14.2/usr.sbin/makefs/ |
| H A D | walk.c | 191 cur->inode->nlink++; in walk_dir() 230 cur->inode->nlink = 1; in create_fsnode() 287 if (cur->inode->nlink-- == 1) in free_fsnodes() 581 if (cur->inode->nlink > 1) in dump_fsnodes() 582 printf(", nlinks=%d", cur->inode->nlink); in dump_fsnodes()
|