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

123456

/freebsd-11-stable/usr.bin/sort/
H A Dmem.c78 char *dup; local
80 if ((dup = strdup(str)) == NULL)
82 return (dup);
/freebsd-11-stable/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-11-stable/contrib/gcc/
H A Dopts-common.c152 char *dup; local
157 dup = XNEWVEC (char, len + 1);
158 dup[0] = '-';
159 dup[1] = opt[1];
160 memcpy (dup + 2, opt + 5, len - 2 + 1);
161 opt = dup;
164 free (dup);
/freebsd-11-stable/contrib/tcp_wrappers/
H A Dshell_cmd.c83 } else if (dup(0) != 1 || dup(0) != 2) {
84 error = "dup: %m";
H A Dsafe_finger.c182 if (dup(pipefds[1]) != 1)
183 perror_exit("dup");
191 if (dup(pipefds[0]) != 0)
192 perror_exit("dup");
/freebsd-11-stable/libexec/mknetid/
H A Dhash.c132 void mstore (struct member_entry *table[], char *key, int gid, int dup) argument
141 if (!dup) {
149 if (!dup && !strcmp(cur->key, key)) {
160 if (!dup)
/freebsd-11-stable/sbin/fsck_ffs/
H A Dpass1b.c102 if (dlp->dup == blkno) {
104 dlp->dup = duphead->dup;
105 duphead->dup = blkno;
H A Dpass4.c138 if (dlp->dup != blkno)
140 dlp->dup = duplist->dup;
/freebsd-11-stable/sys/netgraph/
H A Dng_tee.c68 struct hookinfo *dest, *dup; member in struct:hookinfo
175 privdata->left.dup = privdata->left.dest;
181 privdata->right.dup = privdata->right.dest;
187 privdata->right.dup = hinfo;
193 privdata->left.dup = hinfo;
304 if (hinfo->dup) {
311 h = hinfo->dup;
376 sc->left.dest = sc->left.dup;
377 sc->left.dup = NULL;
378 } else if (sc->left.dup
[all...]
/freebsd-11-stable/lib/libcasper/libcasper/
H A Dlibcasper_impl.c62 nfd = dup(*fdp);
/freebsd-11-stable/tools/regression/sockets/accept_fd_leak/
H A Daccept_fd_leak.c77 fd1 = dup(STDIN_FILENO);
78 fd2 = dup(STDIN_FILENO);
134 fd3 = dup(STDIN_FILENO);
208 fd3 = dup(STDIN_FILENO);
/freebsd-11-stable/contrib/expat/tests/
H A Dstructdata.c61 XML_Char *dup = malloc(byte_count); local
63 assert(dup != NULL);
64 memcpy(dup, s, byte_count);
65 return dup;
/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dstore_fd.c97 fd = dup(fd_in);
105 fd = dup(fd_in);
/freebsd-11-stable/stand/common/
H A Dconsole.c190 char *curpos, *dup, *next; local
192 dup = next = strdup(string);
207 free(dup);
228 char *curpos, *dup, *next; local
236 dup = next = strdup(string);
259 free(dup);
/freebsd-11-stable/contrib/gcclibs/libiberty/
H A Dpex-djgpp.c130 org_in = dup (STDIN_FILE_NO);
134 *errmsg = "dup";
153 org_out = dup (STDOUT_FILE_NO);
157 *errmsg = "dup";
177 org_errdes = dup (STDERR_FILE_NO);
181 *errmsg = "dup";
/freebsd-11-stable/libexec/rtld-aout/
H A Dshlib.c87 register char *cp, *dup; local
93 path = dup = strdup(path);
96 free(dup);
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h134 #ifdef dup
135 #undef dup macro
137 #define dup(oldd) swrap_dup(oldd) macro
/freebsd-11-stable/contrib/mdocml/
H A Dmandocd.c193 if ((old_stdin = dup(STDIN_FILENO)) == -1 ||
194 (old_stdout = dup(STDOUT_FILENO)) == -1 ||
195 (old_stderr = dup(STDERR_FILENO)) == -1) {
196 warn("dup");
/freebsd-11-stable/contrib/less/
H A Dlsystem.c117 inp = dup(0);
127 dup(inp);
186 dup(inp);
/freebsd-11-stable/contrib/ntp/ntpsnmpd/
H A Dnetsnmp_daemonize.c259 dup(0);
260 dup(0);
/freebsd-11-stable/lib/libc/tests/stdio/
H A Dperror_test.c60 dup(0);
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_ruleset.c194 struct pf_anchor *anchor = NULL, *dup, *parent = NULL; local
245 if ((dup = RB_INSERT(pf_anchor_global, &V_pf_anchors, anchor)) !=
249 anchor->path, anchor->name, dup->path, dup->name);
256 if ((dup = RB_INSERT(pf_anchor_node, &parent->children,
261 dup->path, dup->name);
/freebsd-11-stable/contrib/groff/src/roff/groff/
H A Dpipeline.c239 if ((save_stdin = dup(STDIN_FILENO)) < 0)
240 sys_fatal("dup stdin");
242 if ((save_stdout = dup(STDOUT_FILENO)) < 0)
243 sys_fatal("dup stdout");
361 int save_stdin = dup(0);
362 int save_stdout = dup(1);
471 if (dup(last_input) < 0)
472 sys_fatal("dup");
479 if (dup(pdes[1]) < 0)
480 sys_fatal("dup");
[all...]
/freebsd-11-stable/contrib/groff/src/preproc/html/
H A Dpushback.cpp74 stdIn = dup(0);
91 dup(stdIn);
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Dfilter_fork_posix.c96 if ((tmp = dup(stdin_pipe[0])) == -1)
104 if ((tmp = dup(stdout_pipe[1])) == -1)

Completed in 256 milliseconds

123456