Searched refs:pids (Results 1 - 8 of 8) sorted by relevance

/haiku-fatelf/src/bin/network/ftpd/
H A Dpopen.c71 static int *pids; variable
85 if (!pids) {
88 if ((pids = malloc(fds * sizeof(int))) == NULL)
90 memset(pids, 0, fds * sizeof(int));
176 pids[fileno(iop)] = pid;
194 if (pids == 0 || pids[fdes = fileno(iop)] == 0)
198 while ((pid = waitpid(pids[fdes], &status, 0)) < 0 && errno == EINTR)
201 pids[fdes] = 0;
/haiku-fatelf/src/tests/kits/translation/
H A DTranslatorRosterTest.cpp183 translator_id *pids = NULL; local
184 CPPUNIT_ASSERT(proster->GetAllTranslators(&pids, &nloaded) == B_NO_ERROR);
186 CPPUNIT_ASSERT(pids != NULL);
207 CPPUNIT_ASSERT(pids[i] > 0);
212 proster->GetTranslatorInfo(pids[i], &kTranslatorName,
270 translator_id *pids = NULL; local
272 CPPUNIT_ASSERT(proster->GetAllTranslators(&pids, &ncount) == B_OK);
273 CPPUNIT_ASSERT(pids);
275 delete[] pids;
276 pids
318 translator_id *pids = NULL; local
520 translator_id* pids = NULL; local
[all...]
H A DTranslationUtilsTest.cpp285 translator_id *pids = NULL; local
289 CPPUNIT_ASSERT(proster->GetAllTranslators(&pids, &ncount) == B_OK);
290 CPPUNIT_ASSERT(pids && ncount > 0);
291 pmsg = BTranslationUtils::GetDefaultSettings(pids[0], proster);
298 pmsg = BTranslationUtils::GetDefaultSettings(pids[0]);
302 delete[] pids;
303 pids = NULL;
/haiku-fatelf/src/bin/findutils/xargs/
H A Dxargs.c213 /* The number of elements in `pids'. */
217 static pid_t *pids = NULL;
219 /* The number of allocated elements in `pids'. */
1063 for (i = 0; i < pids_alloc && pids[i]; i++)
1070 pids = (pid_t *) xmalloc (sizeof (pid_t) * pids_alloc);
1075 pids = (pid_t *) xrealloc (pids,
1078 memset (&pids[i], '\0', sizeof (pid_t) * (pids_alloc - i));
1080 pids[i] = pid;
1104 /* Find the entry in `pids' fo
216 static pid_t *pids = NULL; variable
[all...]
/haiku-fatelf/src/tests/add-ons/translators/stxttranslator/
H A DSTXTTranslatorTest.cpp396 translator_id tid, *pids = NULL; local
398 CPPUNIT_ASSERT(proster->GetAllTranslators(&pids, &count) == B_OK);
399 CPPUNIT_ASSERT(pids);
401 tid = pids[0];
402 delete[] pids;
403 pids = NULL;
/haiku-fatelf/src/tests/add-ons/translators/tgatranslator/
H A DTGATranslatorTest.cpp524 translator_id tid, *pids = NULL; local
526 CPPUNIT_ASSERT(proster->GetAllTranslators(&pids, &count) == B_OK);
527 CPPUNIT_ASSERT(pids);
529 tid = pids[0];
530 delete[] pids;
531 pids = NULL;
/haiku-fatelf/src/tests/system/benchmarks/libMicro/
H A Dlibmicro.c116 static pid_t *pids = NULL; variable
322 pids = (pid_t *)malloc(lm_optP * sizeof (pid_t));
323 if (pids == NULL) {
324 perror("malloc(pids)");
377 pids[i] = fork();
379 switch (pids[i]) {
396 if (pids[i] > 0) {
397 (void) waitpid(pids[i], NULL, 0);
/haiku-fatelf/src/tests/add-ons/translators/bmptranslator/
H A DBMPTranslatorTest.cpp1083 translator_id tid, *pids = NULL; local
1085 CPPUNIT_ASSERT(proster->GetAllTranslators(&pids, &count) == B_OK);
1086 CPPUNIT_ASSERT(pids);
1088 tid = pids[0];
1089 delete[] pids;
1090 pids = NULL;

Completed in 109 milliseconds