Searched refs:dup (Results 1 - 25 of 207) sorted by relevance

123456789

/freebsd-current/tools/test/stress2/misc/
H A Ddup.sh40 rm -f /tmp/dup /tmp/dup.c || exit 1
41 sed '1,/^EOF/d' < $odir/$0 > $dir/dup.c
42 mycc -o dup -Wall -Wextra dup.c || exit 1
43 rm -f dup.c
46 /tmp/dup; s=$?
48 rm -f /tmp/dup
86 if ((fd2 = dup(fd)) == -1) {
89 err(1, "dup()");
[all...]
/freebsd-current/contrib/bmake/unit-tests/
H A Ddir.exp16 Expanding "dup-{1,1,1,1,1,1,1}"... dup-1 dup-1 dup-1 dup-1 dup-1 dup-1 dup-1
43 : dup-1
/freebsd-current/contrib/ofed/libibverbs/
H A Dsysfs.c64 char *dup; local
66 sysfs_path = dup = strndup(env, IBV_SYSFS_PATH_MAX);
67 len = strlen(dup);
68 while (len > 0 && dup[len - 1] == '/') {
70 dup[len] = '\0';
/freebsd-current/usr.bin/sort/
H A Dmem.c86 char *dup; local
88 if ((dup = strdup(str)) == NULL)
90 return (dup);
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_clone_livelist_dedup.ksh58 log_must cp /$TESTPOOL/$TESTCLONE/data /$TESTPOOL/$TESTCLONE/data-dup-0
59 log_must cp /$TESTPOOL/$TESTCLONE/data /$TESTPOOL/$TESTCLONE/data-dup-1
60 log_must cp /$TESTPOOL/$TESTCLONE/data /$TESTPOOL/$TESTCLONE/data-dup-2
61 log_must cp /$TESTPOOL/$TESTCLONE/data /$TESTPOOL/$TESTCLONE/data-dup-3
71 log_must rm /$TESTPOOL/$TESTCLONE/data-dup-2
72 log_must rm /$TESTPOOL/$TESTCLONE/data-dup-3
/freebsd-current/contrib/capsicum-test/
H A Dcapability-fd-pair.cc22 int cap_in_ro = dup(in_fd);
25 int cap_in_wo = dup(in_fd);
28 int cap_out_ro = dup(sock_fds[0]);
31 int cap_out_wo = dup(sock_fds[0]);
69 int cap_in_wo = dup(pipe1_fds[0]);
72 int cap_in_rw = dup(pipe1_fds[0]);
75 int cap_out_ro = dup(pipe2_fds[1]);
78 int cap_out_rw = dup(pipe2_fds[1]);
118 int cap_in_wo = dup(pipe1_fds[0]);
121 int cap_in_ro = dup(pipe1_fd
[all...]
H A Dsctp.cc28 int cap_sock_ro = dup(sock);
31 int cap_sock_rw = dup(sock);
34 int cap_sock_all = dup(sock);
74 int cap_sock_wo = dup(sock);
77 int cap_sock_rw = dup(sock);
80 int cap_sock_all = dup(sock);
83 int cap_sock_all_nopeel = dup(sock);
H A Dmqueue.cc47 int cap_read_mq = dup(mq);
50 int cap_write_mq = dup(mq);
53 int cap_poll_mq = dup(mq);
H A Dsocket.cc36 int cap_sock_rw = dup(sock);
39 int cap_sock_all = dup(sock);
60 int cap_sock_rw = dup(sock);
63 int cap_sock_all = dup(sock);
139 int cap_sock_rw = dup(sock);
142 int cap_sock_all = dup(sock);
174 int cap_sock_rw = dup(sock);
177 int cap_sock_all = dup(sock);
257 int cap_sock_rw = dup(sock);
260 int cap_sock_all = dup(soc
[all...]
H A Dlinux.cc43 int cap_fd_ro = dup(fd);
46 int cap_fd_wo = dup(fd);
49 int cap_fd_rw = dup(fd);
52 int cap_fd_all = dup(fd);
133 int cap_fd_none = dup(fd);
136 int cap_fd_read = dup(fd);
139 int cap_fd_sig = dup(fd);
142 int cap_fd_sig_read = dup(fd);
145 int cap_fd_all = dup(fd);
199 int cap_ro = dup(f
[all...]
/freebsd-current/sys/gnu/gcov/
H A Dgcc_4_7.c284 struct gcov_info *dup; local
293 if ((dup = malloc(sizeof(*dup), M_GCOV, M_NOWAIT|M_ZERO)) == NULL)
295 memcpy(dup, info, sizeof(*dup));
297 dup->next = NULL;
298 dup->filename = NULL;
299 dup->functions = NULL;
301 dup->filename = strdup_flags(info->filename, M_GCOV, M_NOWAIT);
302 if (dup
[all...]
/freebsd-current/contrib/tcp_wrappers/
H A Dshell_cmd.c82 } else if (dup(0) != 1 || dup(0) != 2) {
83 error = "dup: %m";
/freebsd-current/libexec/mknetid/
H A Dhash.c129 void mstore (struct member_entry *table[], char *key, int gid, int dup) argument
138 if (!dup) {
146 if (!dup && !strcmp(cur->key, key)) {
157 if (!dup)
/freebsd-current/sbin/fsck_ffs/
H A Dpass1b.c102 if (dlp->dup == blkno) {
104 dlp->dup = duphead->dup;
105 duphead->dup = blkno;
/freebsd-current/sys/netgraph/
H A Dng_tee.c66 struct hookinfo *dest, *dup; member in struct:hookinfo
173 privdata->left.dup = privdata->left.dest;
179 privdata->right.dup = privdata->right.dest;
185 privdata->right.dup = hinfo;
191 privdata->left.dup = hinfo;
302 if (hinfo->dup) {
309 h = hinfo->dup;
374 sc->left.dest = sc->left.dup;
375 sc->left.dup = NULL;
376 } else if (sc->left.dup
[all...]
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/libzfs/
H A Dmany_fds.c50 if (dup(fd) == -1)
51 err(1, "dup()");
/freebsd-current/lib/libcasper/libcasper/
H A Dlibcasper_impl.c61 nfd = dup(*fdp);
/freebsd-current/lib/libutil/tests/
H A Dforkpty_test.c35 ATF_REQUIRE((fd = dup(0)) > 0);
50 ATF_REQUIRE((fd = dup(0)) > 0);
/freebsd-current/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c75 fd1 = dup(STDIN_FILENO);
76 fd2 = dup(STDIN_FILENO);
132 fd3 = dup(STDIN_FILENO);
206 fd3 = dup(STDIN_FILENO);
/freebsd-current/usr.sbin/fstyp/
H A Dhammer.c143 char *dup, *p, *volpath, x[HAMMER_MAX_VOLUMES]; local
150 dup = strdup(blkdevs);
151 p = dup;
173 free(dup);
/freebsd-current/contrib/expat/tests/
H A Dstructdata.c64 XML_Char *const dup = (XML_Char *)malloc(byte_count); local
66 assert(dup != NULL);
67 memcpy(dup, s, byte_count);
68 return dup;
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dstore_fd.c97 fd = dup(fd_in);
105 fd = dup(fd_in);
/freebsd-current/tests/sys/fs/fusefs/
H A Dreleasedir.cc51 TEST_F(ReleaseDir, dup)
76 dir2 = fdopendir(dup(dirfd(dir)));
/freebsd-current/stand/common/
H A Dconsole.c229 char *curpos, *dup, *next; local
231 dup = next = strdup(string);
246 free(dup);
267 char *curpos, *dup, *next; local
275 dup = next = strdup(string);
303 free(dup);
/freebsd-current/sys/netpfil/pf/
H A Dpf_ruleset.c198 struct pf_kanchor *anchor = NULL, *dup, *parent = NULL; local
249 if ((dup = RB_INSERT(pf_kanchor_global, &V_pf_anchors, anchor)) !=
253 anchor->path, anchor->name, dup->path, dup->name);
260 if ((dup = RB_INSERT(pf_kanchor_node, &parent->children,
265 dup->path, dup->name);
532 struct pf_keth_anchor *anchor = NULL, *dup = NULL, *parent = NULL; local
584 if ((dup = RB_INSERT(pf_keth_anchor_global, &V_pf_keth_anchors, anchor)) !=
588 anchor->path, anchor->name, dup
[all...]

Completed in 420 milliseconds

123456789