Lines Matching refs:NULL

202     if (sigaction(SIGCHLD, &sa, NULL) < 0)  in setSIGCHLDHandler()
210 if (p == NULL) in xmalloc()
211 JNU_ThrowOutOfMemoryError(env, NULL); in xmalloc()
239 return (s != NULL) ? s : defaultPath(); in effectivePath()
260 pathv[count] = NULL; in splitPath()
426 if ((dp = opendir(FD_DIR)) == NULL) in closeDescriptors()
432 while ((dirp = readdir64(dp)) != NULL) { in closeDescriptors()
435 (fd = strtol(dirp->d_name, NULL, 10)) >= from_fd + 2) in closeDescriptors()
458 return arr == NULL ? NULL : in getBytes()
459 (const char*) (*env)->GetByteArrayElements(env, arr, NULL); in getBytes()
465 if (parr != NULL) in releaseBytes()
479 vector[count] = NULL; in initVectorFromBlock()
500 if (s != NULL) { in throwIOException()
503 if (x != NULL) in throwIOException()
537 while (*end != NULL) in execve_as_traditional_shell_script()
581 if (envp == NULL || (char **) envp == environ) { in JDK_execvpe()
591 if (strchr(file, '/') != NULL) { in JDK_execvpe()
755 if (p->pdir != NULL && chdir(p->pdir) < 0) in childProcess()
801 if ((c->clone_stack = malloc(2 * START_CHILD_CLONE_STACK_SIZE)) == NULL) in startChild()
845 jint *fds = NULL; in UNIXProcess_forkAndExec()
846 const char *pprog = NULL; in UNIXProcess_forkAndExec()
847 const char *pargBlock = NULL; in UNIXProcess_forkAndExec()
848 const char *penvBlock = NULL; in UNIXProcess_forkAndExec()
853 if ((c = NEW(ChildStuff, 1)) == NULL) return -1; in UNIXProcess_forkAndExec()
854 c->argv = NULL; in UNIXProcess_forkAndExec()
855 c->envv = NULL; in UNIXProcess_forkAndExec()
856 c->pdir = NULL; in UNIXProcess_forkAndExec()
858 c->clone_stack = NULL; in UNIXProcess_forkAndExec()
865 assert(prog != NULL && argBlock != NULL); in UNIXProcess_forkAndExec()
866 if ((pprog = getBytes(env, prog)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
867 if ((pargBlock = getBytes(env, argBlock)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
868 if ((c->argv = NEW(const char *, argc + 3)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
872 if (envBlock != NULL) { in UNIXProcess_forkAndExec()
874 if ((penvBlock = getBytes(env, envBlock)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
875 if ((c->envv = NEW(const char *, envc + 1)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
879 if (dir != NULL) { in UNIXProcess_forkAndExec()
880 if ((c->pdir = getBytes(env, dir)) == NULL) goto Catch; in UNIXProcess_forkAndExec()
883 assert(std_fds != NULL); in UNIXProcess_forkAndExec()
884 fds = (*env)->GetIntArrayElements(env, std_fds, NULL); in UNIXProcess_forkAndExec()
885 if (fds == NULL) goto Catch; in UNIXProcess_forkAndExec()
918 waitpid(resultPid, NULL, 0); in UNIXProcess_forkAndExec()
953 if (fds != NULL) in UNIXProcess_forkAndExec()