Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 249) sorted by relevance

12345678910

/mirbsd/src/sys/dev/mii/
Dmii.c73 struct mii_softc *child; in mii_attach() local
97 for (child = LIST_FIRST(&mii->mii_phys); child != NULL; in mii_attach()
98 child = LIST_NEXT(child, mii_list)) { in mii_attach()
99 if (child->mii_phy == ma.mii_phyno) { in mii_attach()
144 if ((child = (struct mii_softc *)config_found_sm(parent, &ma, in mii_attach()
149 LIST_INSERT_HEAD(&mii->mii_phys, child, mii_list); in mii_attach()
150 child->mii_offset = offset; in mii_attach()
160 struct mii_softc *child; in mii_activate() local
168 for (child = LIST_FIRST(&mii->mii_phys); in mii_activate()
169 child != NULL; child = LIST_NEXT(child, mii_list)) { in mii_activate()
[all …]
/mirbsd/src/usr.sbin/httpd/src/support/
Dlogresolve.pl117 for (my $child = 1; $child <=$CHILDREN; $child++) {
120 $filename = "./.socket.$parent.$child";
122 &child($child);
135 for (my $child = 1; $child <=$CHILDREN; $child++) {
136 if (-e "./.socket.$parent.$child") {
137 unlink("./.socket.$parent.$child")
138 || warn ".socket.$parent.$child $!";
152 for (my $child = 1; $child <=$CHILDREN; $child++) {
153 $CHILDSOCK{$child}= FileHandle->new;
155 if (!socket($CHILDSOCK{$child}, AF_UNIX, SOCK_STREAM, $PROTOCOL)) {
[all …]
/mirbsd/src/gnu/usr.bin/perl/t/op/
Dfork.t119 iteration 1 child
122 iteration 2 child
125 iteration 2 child
128 iteration 3 child
131 iteration 3 child
134 iteration 3 child
137 iteration 3 child
145 child
153 child
170 child 1
[all …]
/mirbsd/src/lib/libc/stdlib/
Dheapsort.c70 #define CREATE(initval, nmemb, par_i, child_i, par, child, size, count, tmp) { \ argument
73 child = base + child_i * size; \
74 if (child_i < nmemb && compar(child, child + size) < 0) { \
75 child += size; \
79 if (compar(child, par) <= 0) \
81 SWAP(par, child, count, size, tmp); \
102 #define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \ argument
104 child = base + child_i * size; \
105 if (child_i < nmemb && compar(child, child + size) < 0) { \
106 child += size; \
[all …]
/mirbsd/src/gnu/usr.bin/lynx/WWW/Library/Implementation/
DHTAnchor.c233 HTChildAnchor *child; in HTAnchor_findNamedChild() local
244 child = (HTChildAnchor *) HTBTree_search(parent->children, &sample); in HTAnchor_findNamedChild()
245 if (child != NULL) { in HTAnchor_findNamedChild()
248 (void *) child, (void *) parent, tag)); in HTAnchor_findNamedChild()
249 return (child); in HTAnchor_findNamedChild()
255 child = HTChildAnchor_new(parent); in HTAnchor_findNamedChild()
257 (void *) child, in HTAnchor_findNamedChild()
259 (void *) child->parent)); in HTAnchor_findNamedChild()
261 StrAllocCopy(child->tag, tag); /* should be set before HTBTree_add */ in HTAnchor_findNamedChild()
262 HTBTree_add(parent->children, child); in HTAnchor_findNamedChild()
[all …]
/mirbsd/src/sys/sys/
Dsched.h94 struct proc *parent, struct proc *child);
96 struct proc *parent, struct proc *child);
101 scheduler_fork_hook(parent, child) in scheduler_fork_hook() argument
102 struct proc *parent, *child; in scheduler_fork_hook()
104 child->p_estcpu = parent->p_estcpu;
110 scheduler_wait_hook(parent, child) in scheduler_wait_hook() argument
111 struct proc *parent, *child; in scheduler_wait_hook()
115 parent->p_estcpu = ESTCPULIM(parent->p_estcpu + child->p_estcpu);
/mirbsd/src/usr.bin/mail/
Dpopen.c59 struct child { struct
64 struct child *link; argument
66 static struct child *child, *child_freelist = NULL; variable
68 static struct child *findchild(pid_t, int);
69 static void delchild(struct child *);
309 static struct child *
312 struct child **cpp; in findchild()
314 for (cpp = &child; *cpp != NULL && (*cpp)->pid != pid; in findchild()
324 *cpp = (struct child *)malloc(sizeof(struct child)); in findchild()
336 delchild(struct child *cp) in delchild()
[all …]
/mirbsd/src/usr.bin/tip/aculib/
Ddn11.c48 static pid_t child = -1, dn; variable
68 kill(child, SIGKILL);
75 if ((child = fork()) == 0) {
95 kill(child, SIGKILL);
104 while ((nw = wait(&lt)) != child && nw != -1)
141 if (child > 0) in dn_abort()
142 kill(child, SIGKILL); in dn_abort()
Dv831.c52 static pid_t child = -1; variable
75 kill(child, SIGKILL);
82 if ((child = fork()) == 0) {
104 kill(child, SIGKILL);
110 while ((pid = wait(&status)) != child && pid != -1)
158 if (child > 0) in v831_abort()
159 kill(child, SIGKILL); in v831_abort()
/mirbsd/src/sbin/pfctl/
Dpfctl_qstats.c219 struct pf_altq_node *node, *child; in pfctl_find_altq_node() local
226 child = pfctl_find_altq_node(node->children, qname, in pfctl_find_altq_node()
228 if (child != NULL) in pfctl_find_altq_node()
229 return (child); in pfctl_find_altq_node()
239 const struct pf_altq_node *child; in pfctl_print_altq_node() local
248 for (child = node->children; child != NULL; in pfctl_print_altq_node()
249 child = child->next) { in pfctl_print_altq_node()
250 printf("%s", child->altq.qname); in pfctl_print_altq_node()
251 if (child->next != NULL) in pfctl_print_altq_node()
266 for (child = node->children; child != NULL; in pfctl_print_altq_node()
[all …]
/mirbsd/src/gnu/usr.bin/lynx/src/
DLYList.c106 HTChildAnchor *child = HText_childNextNumber(cnt, &helper); in showlist() local
114 if (child == 0) { in showlist()
135 dest_intl = HTAnchor_followTypedLink(child, HTInternalLink); in showlist()
138 : HTAnchor_followLink(child)); in showlist()
158 } else if (titles && child->type && in showlist()
159 dest == child->dest && in showlist()
160 !StrNCmp(HTAtom_name(child->type), in showlist()
162 HTSprintf0(&LinkTitle, "(%s)", HTAtom_name(child->type) + 10); in showlist()
252 HTChildAnchor *child = HText_childNextNumber(cnt, &helper); in print_refs() local
258 if (child == 0) { in print_refs()
[all …]
/mirbsd/src/usr.sbin/ppp/ppp/
Dchap.c267 if (chap->child.fd != -1) { in chap_StartChild()
285 switch ((chap->child.pid = fork())) { in chap_StartChild()
292 chap->child.pid = 0; in chap_StartChild()
333 chap->child.fd = out[0]; in chap_StartChild()
334 chap->child.buf.len = 0; in chap_StartChild()
349 if (chap->child.pid) { in chap_Cleanup()
352 close(chap->child.fd); in chap_Cleanup()
353 chap->child.fd = -1; in chap_Cleanup()
355 kill(chap->child.pid, SIGTERM); in chap_Cleanup()
356 chap->child.pid = 0; in chap_Cleanup()
[all …]
/mirbsd/src/lib/libncurses/src/ncurses/tinfo/
Dadd_tries.c72 if (ptr->child != 0) in NCURSES_EXPORT()
73 ptr = ptr->child; in NCURSES_EXPORT()
104 ptr->child = typeCalloc(struct tries, 1); in NCURSES_EXPORT()
106 ptr = ptr->child; in NCURSES_EXPORT()
112 savedptr = ptr->child; in NCURSES_EXPORT()
/mirbsd/src/lib/libncurses/src/ncurses/base/
Dtries.c56 if ((result = _nc_expand_try(ptr->child, code, count, len + 1)) in NCURSES_EXPORT()
94 if (_nc_remove_key(&(*tree)->child, code)) { in _nc_remove_key()
98 if ((*tree)->child) { in _nc_remove_key()
128 returnCode(_nc_remove_string(&(*tree)->child, string + 1)); in _nc_remove_string()
129 if ((*tree)->child == 0) { in _nc_remove_string()
/mirbsd/src/gnu/usr.bin/binutils/gdb/
Dvarobj.c136 struct varobj *child; member
697 struct varobj *child; in varobj_list_children() local
720 child = child_exists (var, name); in varobj_list_children()
721 if (child == NULL) in varobj_list_children()
722 child = create_child (var, i, name); in varobj_list_children()
724 *((*childlist) + i) = child; in varobj_list_children()
961 vpush (&stack, c->child); in varobj_update()
973 vpush (&stack, c->child); in varobj_update()
1076 vc->child->parent = NULL; in delete_variable_1()
1077 delete_variable_1 (resultp, delcountp, vc->child, 0, only_children_p); in delete_variable_1()
[all …]
Dmacrotab.c383 struct macro_source_file *child, *next_child; in free_macro_source_file() local
386 for (child = src->includes; child; child = next_child) in free_macro_source_file()
388 next_child = child->next_included; in free_macro_source_file()
389 free_macro_source_file (child); in free_macro_source_file()
498 struct macro_source_file *child; in macro_lookup_inclusion() local
502 for (child = source->includes; child; child = child->next_included) in macro_lookup_inclusion()
505 = macro_lookup_inclusion (child, name); in macro_lookup_inclusion()
/mirbsd/src/usr.sbin/makefs/
Dwalk.c134 cur->child = walk_dir(path, cur); in walk_dir()
206 assert(node->parent->child == node); in free_fsnodes()
224 if (cur->child) { in free_fsnodes()
225 cur->child->parent = NULL; in free_fsnodes()
226 free_fsnodes(cur->child); in free_fsnodes()
312 for (curnode = specnode->child; curnode != NULL; in apply_specdir()
327 for (curnode = specnode->child; curnode != NULL; in apply_specdir()
392 curfsnode->child = create_fsnode(".", &stbuf); in apply_specdir()
393 curfsnode->child->parent = curfsnode; in apply_specdir()
394 curfsnode->child->first = curfsnode->child; in apply_specdir()
[all …]
Dcd9660.c1497 if (iterator->child != 0) { in cd9660_convert_structure()
1499 iterator->child, this_node, in cd9660_convert_structure()
1512 assert(iterator->child == NULL); in cd9660_convert_structure()
1906 cd9660node *child; in cd9660_compute_offsets() local
1934 TAILQ_FOREACH(child, &node->cn_children, cn_next_child) { in cd9660_compute_offsets()
1936 cd9660_compute_record_size(child); in cd9660_compute_offsets()
1937 if ((cd9660_compute_record_size(child) + in cd9660_compute_offsets()
1945 cd9660_compute_record_size(child); in cd9660_compute_offsets()
1957 for (child = TAILQ_NEXT(node->dot_dot_record, cn_next_child); in cd9660_compute_offsets()
1958 child != NULL; child = TAILQ_NEXT(child, cn_next_child)) { in cd9660_compute_offsets()
[all …]
/mirbsd/src/lib/libutil/
Dpwd_check.c93 pid_t child; in pwd_check() local
113 switch (child = fork()) { in pwd_check()
177 wait(&child); in pwd_check()
178 if (WIFEXITED(child) && WEXITSTATUS(child) == 0) { in pwd_check()
/mirbsd/src/gnu/usr.bin/perl/ext/B/ramblings/
Dflip-flop17 It "looks after" its child which is always a pp_range LOGOP.
18 In list context, it just returns the child's op_other.
20 (1) set child's targ to 1, our targ to 1 and return op_next.
21 (2) set child's targ to 1, our targ to 0, sp-- and return child's op_other.
/mirbsd/src/gnu/usr.bin/perl/pod/
Dperlfork.pod20 important differences that stem from the fact that all the pseudo child
36 thread that implements this child "process" as the pseudo-process.
41 the child returns from the fork() with a value of C<0> to signify that
42 it is the child pseudo-process.
101 wait()-ing for any outstanding child pseudo-processes. Note that this means
134 pseudo-child created by it that is also a pseudo-parent will only exit
153 fork and exit; # fork child and exit the parent
174 the files can be closed independently in the parent and child, but beware
176 the seek position in the parent will change it in the child and vice-versa.
178 separately in the child.
[all …]
/mirbsd/src/gnu/usr.bin/perl/ext/Socket/t/
Dsocketpair.t3 my $child;
30 $child = fork;
31 die "Fork failed" unless defined $child;
32 if (!$child) {
247 kill "INT", $child or warn "Failed to kill child process $child: $!";
/mirbsd/src/gnu/usr.bin/perl/ext/threads/shared/t/
Dcond.t123 ok(3,1,"lock factory: child: locking all locks");
128 ok(4,1,"lock factory: child: locked all locks");
150 ok(2,1,"cond_signal: child before lock");
152 ok(3,1,"cond_signal: child locked");
175 ok(2,1,"cond_signal: ref: child before lock");
177 ok(3,1,"cond_signal: ref: child locked");
196 # that it's guaranteed to reach the wait before its child enters the
197 # locked region. When N reaches 0, the child instead does a
/mirbsd/src/sys/kern/
Dkern_exit.c500 proc_reparent(child, parent) in proc_reparent() argument
501 register struct proc *child; in proc_reparent()
505 if (child->p_pptr == parent)
509 child->p_exitsig = SIGCHLD;
511 LIST_REMOVE(child, p_sibling);
512 LIST_INSERT_HEAD(&parent->p_children, child, p_sibling);
513 child->p_pptr = parent;
/mirbsd/src/usr.sbin/httpd/src/modules/standard/
Dmod_vhost_alias.c123 mva_sconf_t *child = (mva_sconf_t *) childv; in mva_merge_server_config() local
127 if (child->doc_root_mode == VHOST_ALIAS_UNSET) { in mva_merge_server_config()
132 conf->doc_root_mode = child->doc_root_mode; in mva_merge_server_config()
133 conf->doc_root = child->doc_root; in mva_merge_server_config()
135 if (child->cgi_root_mode == VHOST_ALIAS_UNSET) { in mva_merge_server_config()
140 conf->cgi_root_mode = child->cgi_root_mode; in mva_merge_server_config()
141 conf->cgi_root = child->cgi_root; in mva_merge_server_config()

12345678910