Home
last modified time | relevance | path

Searched refs:nlink (Results 1 – 25 of 72) sorted by relevance

123

/freebsd/contrib/pjdfstest/tests/link/
H A D12.t28 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 D00.t23 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
37 expect ${type},0201,3,65534,65533 lstat ${n0} type,mode,nlink,uid,gid
38 expect ${type},0201,3,65534,65533 lstat ${n1} type,mode,nlink,uid,gid
39 expect ${type},0201,3,65534,65533 lstat ${n2} type,mode,nlink,uid,gid
42 expect ENOENT lstat ${n0} type,mode,nlink,uid,gid
[all …]
H A D13.t30 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 D03.t20 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/contrib/netbsd-tests/usr.sbin/mtree/
H A Dmtree_d_create.out7 /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 Dnetbsd6_d_create.out7 /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/tools/test/stress2/misc/
H A Dnlink.sh35 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/contrib/pjdfstest/tests/rename/
H A D00.t23 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/tests/sys/fs/fusefs/
H A Dlink.cc42 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 Dforget.cc76 out.body.entry.attr.nlink = 1; in TEST_F()
114 out.body.entry.attr.nlink = 2; in TEST_F()
131 out.body.entry.attr.nlink = 1; in TEST_F()
164 out.body.entry.attr.nlink = 1; in TEST_F()
H A Dgetattr.cc53 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 Dunlink.cc41 void expect_lookup(const char *relpath, uint64_t ino, int times, int nlink=1)
50 out.body.entry.attr.nlink = nlink; in expect_lookup()
59 * Unlinking a multiply linked file should update its ctime and nlink. This
102 /* Use nlink=2 so we don't get a FUSE_FORGET */ in TEST_F()
42 expect_lookup(const char * relpath,uint64_t ino,int times,int nlink=1) expect_lookup() argument
H A Ddestroy.cc88 out.body.entry.attr.nlink = 1; in TEST_F()
96 out.body.entry.attr.nlink = 1; in TEST_F()
H A Drename.cc238 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/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_deadlock_detector2.cpp79 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/libexec/pppoed/
H A Dpppoed.c120 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/usr.sbin/ppp/
H A Dether.c458 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 Dnetgraph.c460 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/sys/dev/acpica/
H A Dacpi_apei.c67 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/sbin/fsck_ffs/
H A Dsuj.c1073 int nlink; in ino_decr() local
1078 nlink = DIP(dp, di_nlink); in ino_decr()
1080 if (nlink < 1) in ino_decr()
1081 err_suj("Inode %d link count %d invalid\n", ino, nlink); in ino_decr()
1083 err_suj("Inode %d has a link of %d with 0 mode\n", ino, nlink); in ino_decr()
1084 nlink--; in ino_decr()
1089 if (nlink < reqlink) { in ino_decr()
1092 (uintmax_t)ino, nlink, reqlink); in ino_decr()
1097 DIP_SET(dp, di_nlink, nlink); in ino_decr()
1114 nlink_t nlink; in ino_adjust() local
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_mtree_classic.c33 int nlink;
82 " mtree nlink=2 time=1232266273.0 gid=1003 uid=1003 size=8\n"
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()
34 int nlink; global() member
H A Dtest_write_format_mtree_classic_indent.c33 int nlink;
82 " mtree nlink=2 time=1232266273.0 gid=1003 uid=1003 size=8\n"
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()
34 int nlink; global() member
/freebsd/libexec/flua/modules/
H A Dlfs.c241 PUSH_INTEGER(nlink, nlink) in PUSH_INTEGER()
299 PUSH_ENTRY(nlink),
/freebsd/sys/fs/tarfs/
H A Dtarfs_subr.c190 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/usr.sbin/makefs/
H A Dwalk.c189 cur->inode->nlink++; in walk_dir()
228 cur->inode->nlink = 1; in create_fsnode()
285 if (cur->inode->nlink-- == 1) in free_fsnodes()
579 if (cur->inode->nlink > 1) in dump_fsnodes()
580 printf(", nlinks=%d", cur->inode->nlink); in dump_fsnodes()

123