/haiku-fatelf/src/system/libroot/posix/pthread/ |
H A D | pthread_atfork.c | 12 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 D | UIUtils.cpp | 24 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 D | escp2-channels.c | 38 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 D | escp2-resolutions.c | 40 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 D | mxml-node.c | 49 * 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 D | print-escp2-data.c | 61 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 D | init_rld_after_fork_test.cpp | 25 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 D | cow_bug113_test.cpp | 29 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 D | wait_test_2.cpp | 16 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 D | wait_test_3.cpp | 22 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 D | wait_test_4.cpp | 16 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 D | 4-1.c | 20 * 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 D | 9-1.c | 26 * -> 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 D | 3-1.c | 23 * -> 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 D | fork.h | 17 void(*child)(void));
|
/haiku-fatelf/src/libs/posix_error_mapper/ |
H A D | pthread_misc.cpp | 12 (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 D | wait.cpp | 32 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 D | PartitionDelegate.cpp | 117 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 D | DiskDeviceJob.cpp | 13 PartitionReference* child) 16 fChild(child) 12 DiskDeviceJob(PartitionReference* partition, PartitionReference* child) argument
|
H A D | PartitionDelegate.h | 40 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 D | USBRoster.cpp | 79 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 D | View.cpp | 196 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 D | ValueNodeContainer.cpp | 52 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 D | ScrollableView.cpp | 35 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 D | if_ath_sysctl.c | 522 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...] |