Searched refs:child (Results 1 - 25 of 431) sorted by relevance

1234567891011>>

/haiku-fatelf/src/system/libroot/posix/pthread/
H A Dpthread_atfork.c12 pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)) argument
14 return __register_atfork(prepare, parent, child);
/haiku-fatelf/src/tests/add-ons/print/ppd/ui/
H A DUIUtils.cpp24 BView* child; local
25 while ((child = view->ChildAt(0)) != NULL) {
26 child->RemoveSelf();
27 delete child;
/haiku-fatelf/src/libs/print/libgutenprint/src/main/
H A Descp2-channels.c38 stp_mxml_node_t *child = node->child; local
56 while (child)
58 if (child->type == STP_MXML_ELEMENT)
60 const char *param = child->value.element.name;
61 name = stp_mxmlElementGetAttr(child, "name");
72 if (stp_mxmlElementGetAttr(child, "count"))
74 stp_xmlstrtoul(stp_mxmlElementGetAttr(child, "count"));
79 stp_mxml_node_t *cchild = child->child;
104 stp_mxml_node_t *child = node->child; local
162 stp_mxml_node_t *child = node->child; local
301 stp_mxml_node_t *child = node->child; local
354 stp_mxml_node_t *child = node->child; local
422 stp_mxml_node_t *child = node->child; local
[all...]
H A Descp2-resolutions.c40 stp_mxml_node_t *child = node->child; local
41 while (child)
43 if (child->type == STP_MXML_ELEMENT &&
44 !strcmp(child->value.element.name, "weave"))
46 child = child->next;
53 child = node->child;
55 while (child)
114 stp_mxml_node_t *child = node->child; local
229 stp_mxml_node_t *child = node->child; local
[all...]
H A Dmxml-node.c49 * Adds the specified node to the parent. If the child argument is not
50 * NULL, puts the new node before or after the specified child depending
51 * on the value of the where argument. If the child argument is NULL,
52 * puts the new node at the beginning of the child list (STP_MXML_ADD_BEFORE)
53 * or at the end of the child list (STP_MXML_ADD_AFTER). The constant
54 * STP_MXML_ADD_TO_PARENT can be used to specify a NULL child pointer.
60 stp_mxml_node_t *child, /* I - Child node for where or STP_MXML_ADD_TO_PARENT */
63 /* fprintf(stderr, "stp_mxmlAdd(parent=%p, where=%d, child=%p, node=%p)\n", parent,
64 where, child, node);*/
89 if (!child || chil
58 stp_mxmlAdd(stp_mxml_node_t *parent, int where, stp_mxml_node_t *child, stp_mxml_node_t *node) argument
[all...]
H A Dprint-escp2-data.c61 stp_mxml_node_t *tmp = xmod->child;
95 else if (tmp->child && tmp->child->type == STP_MXML_TEXT)
97 stp_mxml_node_t *child = tmp->child; local
98 const char *val = child->value.text.string;
150 while (child)
152 if (child->type == STP_MXML_ELEMENT && child->child
[all...]
/haiku-fatelf/src/tests/system/libroot/posix/
H A Dinit_rld_after_fork_test.cpp25 pid_t child = fork(); local
26 if (child < 0) {
31 if (child > 0) {
32 // the parent process -- wait for the child to finish
34 wait_for_thread(child, &result);
37 list_semaphores(child == 0 ? "child" : "parent");
/haiku-fatelf/src/tests/system/kernel/
H A Dcow_bug113_test.cpp29 pid_t child = fork(); local
30 if (child == 0) {
31 // child
32 child = find_thread(NULL);
38 printf("[%ld] child: after kernel read: globalVar: \"%s\"\n",
39 child, globalVar);
44 printf("[%ld] child: after change: globalVar: \"%s\"\n", child,
50 // wait for the child
52 while (wait_for_thread(child,
[all...]
H A Dwait_test_2.cpp16 an error (and errno to ECHILD), since there is no child with that process group ID.
28 //! exits before child 2
35 pid_t child = fork(); local
36 if (child == 0)
49 pid_t child = fork(); local
50 if (child == 0)
60 printf("wait() returned %ld (%s), child status %d\n",
H A Dwait_test_3.cpp22 printf("child 2 1. parent id = %ld\n", getppid());
24 printf("child 2 2. parent id = %ld\n", getppid());
29 //! exits before child 2
33 printf("child 1 process group: %ld\n", getpgrp());
35 pid_t child = fork(); local
36 if (child == 0)
48 pid_t child = fork(); local
49 if (child == 0)
56 printf("waitpid() returned %ld (%s), child status %d\n", pid, strerror(errno), childStatus);
H A Dwait_test_4.cpp16 an error (and errno to ECHILD), since there is no child with that process group ID.
28 //! exits before child 2
32 pid_t child = fork(); local
33 if (child == 0)
49 pid_t child = fork(); local
50 if (child == 0)
60 printf("wait() returned %ld (%s), child status %d\n",
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/fork/
H A D4-1.c20 * The parent process ID of the child is the process ID of the parent (caller of fork())
23 * -> create a child
86 pid_t child, ctl; local
94 /* Create the child */
95 child = fork();
96 if (child == (pid_t) -1) { UNRESOLVED(errno, "Failed to fork"); }
98 /* child */
99 if (child == (pid_t) 0)
111 /* Parent joins the child */
112 ctl = waitpid(child,
[all...]
H A D9-1.c26 * -> Check the alarm is not running in the child process.
27 * -> join the child
29 * The test fails if the child has a pending alarm.
89 pid_t child, ctl; local
105 /* Create the child */
106 child = fork();
108 if ( child == ( pid_t ) - 1 )
113 /* child */
114 if ( child == ( pid_t ) 0 )
121 FAILED( "The child alar
[all...]
H A D3-1.c23 * -> create a child; then terminate this child.
88 pid_t child, ctl; local
93 /* Create the child */
94 child = fork();
95 if (child == (pid_t) -1) { UNRESOLVED(errno, "Failed to fork"); }
97 /* child */
98 if (child == (pid_t) 0)
100 /* The child stops immediatly */
104 /* Parent joins the child */
[all...]
/haiku-fatelf/headers/private/libroot/
H A Dfork.h17 void(*child)(void));
/haiku-fatelf/src/libs/posix_error_mapper/
H A Dpthread_misc.cpp12 (void (*prepare)(void), void (*parent)(void), void (*child)(void)),
13 return B_TO_POSITIVE_ERROR(sReal_pthread_atfork(prepare, parent, child));
/haiku-fatelf/src/system/libroot/posix/sys/
H A Dwait.cpp32 pid_t child = _kern_wait_for_child(pid, options, &info); local
36 if (child < 0) {
37 // When not getting a child status when WNOHANG was specified, don't
39 if (child == B_WOULD_BLOCK && (options & WNOHANG) != 0)
41 RETURN_AND_SET_ERRNO(child);
83 return child;
93 // any child
98 // the child with the given ID
104 // any child in the given process group
114 pid_t child local
[all...]
/haiku-fatelf/src/kits/storage/disk_device/
H A DPartitionDelegate.cpp117 BMutablePartition* child = fMutablePartition.ChildAt(index); local
118 return child ? child->GetDelegate() : NULL;
151 BPartition::Delegate::SupportedChildOperations(Delegate* child, argument
157 return fPartitionHandle->SupportedChildOperations(child->MutablePartition(),
195 BPartition::Delegate::ValidateResizeChild(Delegate* child, off_t* size) const argument
197 if (!fPartitionHandle || !child)
200 return fPartitionHandle->ValidateResizeChild(&child->fMutablePartition,
218 BPartition::Delegate::ResizeChild(Delegate* child, off_t size) argument
220 if (!fPartitionHandle || !child)
240 ValidateMoveChild(Delegate* child, off_t* offset) const argument
263 MoveChild(Delegate* child, off_t offset) argument
285 ValidateSetName(Delegate* child, BString* name) const argument
307 SetName(Delegate* child, const char* name) argument
318 ValidateSetType(Delegate* child, const char* type) const argument
329 SetType(Delegate* child, const char* type) argument
351 SetParameters(Delegate* child, const char* parameters) argument
363 GetNextSupportedChildType(Delegate* child, int32* cookie, BString* type) const argument
381 IsSubSystem(Delegate* child, const char* diskSystem) const argument
521 CreateChild(off_t start, off_t size, const char* type, const char* name, const char* parameters, BPartition** child) argument
542 DeleteChild(Delegate* child) argument
[all...]
H A DDiskDeviceJob.cpp13 PartitionReference* child)
16 fChild(child)
12 DiskDeviceJob(PartitionReference* partition, PartitionReference* child) argument
H A DPartitionDelegate.h40 uint32 SupportedChildOperations(Delegate* child,
49 status_t ValidateResizeChild(Delegate* child,
52 status_t ResizeChild(Delegate* child, off_t size);
55 status_t ValidateMoveChild(Delegate* child,
58 status_t MoveChild(Delegate* child, off_t offset);
61 status_t ValidateSetName(Delegate* child,
64 status_t SetName(Delegate* child, const char* name);
66 status_t ValidateSetType(Delegate* child,
68 status_t SetType(Delegate* child, const char* type);
71 status_t SetParameters(Delegate* child,
[all...]
/haiku-fatelf/src/kits/device/
H A DUSBRoster.cpp79 WatchedEntry *child = new(std::nothrow) WatchedEntry(fRoster, local
81 if (child == NULL)
84 child->fLink = fEntries;
85 fEntries = child;
112 WatchedEntry *child = fEntries; local
113 while (child) {
114 WatchedEntry *next = child->fLink;
115 delete child;
116 child = next;
134 WatchedEntry *child local
144 WatchedEntry *child = new(std::nothrow) WatchedEntry(fRoster, fMessenger, local
[all...]
/haiku-fatelf/src/tests/kits/interface/layout/widget_layout_test/
H A DView.cpp196 View::AddChild(View* child) argument
198 if (!child)
201 if (child->Parent() || child->Container()) {
203 "or is the container view\n", child);
207 if (!fChildren.AddItem(child))
210 child->_AddedToParent(this);
212 child->Invalidate();
220 View::RemoveChild(View* child) argument
222 if (!child)
283 View* child = view->ChildAt(point); local
[all...]
/haiku-fatelf/src/apps/debugger/value/
H A DValueNodeContainer.cpp52 ValueNodeContainer::AddChild(ValueNodeChild* child) argument
56 if (!fChildren.AddItem(child))
59 child->AcquireReference();
60 child->SetContainer(this);
67 ValueNodeContainer::RemoveChild(ValueNodeChild* child) argument
69 if (child->Container() != this || !fChildren.RemoveItem(child))
72 child->SetContainer(NULL);
73 child->ReleaseReference();
80 for (int32 i = 0; ValueNodeChild* child
[all...]
/haiku-fatelf/src/apps/icon-o-matic/generic/gui/scrollview/
H A DScrollableView.cpp35 for (int32 i = 0; BView* child = view->ChildAt(i); i++)
36 child->MoveTo(child->Frame().LeftTop() + oldOffset - newOffset);
/haiku-fatelf/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/
H A Dif_ath_sysctl.c522 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); local
527 child = SYSCTL_CHILDREN(tree);
530 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, sn, CTLFLAG_RD, &sc->sc_stats.ast_rx_phy[i], 0, "");
539 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); local
547 tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", CTLFLAG_RD,
549 child = SYSCTL_CHILDREN(tree);
553 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_watchdog", CTLFLAG_RD,
555 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_hardware", CTLFLAG_RD,
557 SYSCTL_ADD_UINT(ctx, child, OID_AUTO, "ast_bmiss", CTLFLAG_RD,
559 SYSCTL_ADD_UINT(ctx, child, OID_AUT
746 struct sysctl_oid_list *child = SYSCTL_CHILDREN(tree); local
[all...]

Completed in 145 milliseconds

1234567891011>>