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

123456

/freebsd-10-stable/usr.bin/sort/
H A Dmem.c77 char *dup; local
79 if ((dup = strdup(str)) == NULL)
81 return (dup);
/freebsd-10-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-10-stable/contrib/tcp_wrappers/
H A Dshell_cmd.c84 } else if (dup(0) != 1 || dup(0) != 2) {
85 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-10-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-10-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-10-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-10-stable/tools/regression/sockets/socketpair/
H A Dsocketpair.c130 fd1 = dup(STDIN_FILENO);
131 fd2 = dup(STDIN_FILENO);
152 fd3 = dup(STDIN_FILENO);
/freebsd-10-stable/contrib/ipfilter/rules/
H A Dexample.139 pass in on le0 dup-to le1:10.3.3.3 proto tcp all flags S/SA
/freebsd-10-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-10-stable/crypto/heimdal/lib/krb5/
H A Dstore_fd.c97 fd = dup(fd_in);
105 fd = dup(fd_in);
/freebsd-10-stable/sys/boot/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-10-stable/contrib/unbound/libunbound/
H A Dlibunbound.c341 char* dup = strdup(ta); local
342 if(!dup) return UB_NOMEM;
346 free(dup);
349 if(!cfg_strlist_insert(&ctx->env->cfg->trust_anchor_list, dup)) {
351 free(dup);
361 char* dup = strdup(fname); local
362 if(!dup) return UB_NOMEM;
366 free(dup);
369 if(!cfg_strlist_insert(&ctx->env->cfg->trust_anchor_file_list, dup)) {
371 free(dup);
380 char* dup = strdup(fname); local
401 char* dup = strdup(fname); local
[all...]
/freebsd-10-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-10-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-10-stable/libexec/rtld-aout/
H A Dshlib.c87 register char *cp, *dup; local
93 path = dup = strdup(path);
96 free(dup);
/freebsd-10-stable/contrib/less/
H A Dlsystem.c112 inp = dup(0);
120 dup(inp);
179 dup(inp);
/freebsd-10-stable/contrib/ntp/ntpsnmpd/
H A Dnetsnmp_daemonize.c259 dup(0);
260 dup(0);
/freebsd-10-stable/lib/libc/tests/stdio/
H A Dperror_test.c60 dup(0);
/freebsd-10-stable/sys/netpfil/pf/
H A Dpf_ruleset.c193 struct pf_anchor *anchor = NULL, *dup, *parent = NULL; local
244 if ((dup = RB_INSERT(pf_anchor_global, &V_pf_anchors, anchor)) !=
248 anchor->path, anchor->name, dup->path, dup->name);
255 if ((dup = RB_INSERT(pf_anchor_node, &parent->children,
260 dup->path, dup->name);
/freebsd-10-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-10-stable/contrib/groff/src/preproc/html/
H A Dpushback.cpp74 stdIn = dup(0);
91 dup(stdIn);
/freebsd-10-stable/contrib/unbound/libunbound/python/
H A Dfile_py3.i84 fp = fdopen(dup(fd), fdfl_to_str(fdfl)); /* the FILE* must be flushed
/freebsd-10-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 312 milliseconds

123456