Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
DUNIXProcess.java85 int[] fds, in forkAndExec() argument
129 final int[] fds,
137 fds,
143 initStreams(fds);
157 void initStreams(int[] fds) throws IOException {
158 stdin = (fds[0] == -1) ?
160 new ProcessPipeOutputStream(fds[0]);
162 stdout = (fds[1] == -1) ?
164 new ProcessPipeInputStream(fds[1]);
166 stderr = (fds[2] == -1) ?
[all …]
/libcore/ojluni/src/main/native/
DUNIXProcess_md.c709 int fds[3]; member
748 if ((moveDescriptor(p->in[0] != -1 ? p->in[0] : p->fds[0], in childProcess()
750 (moveDescriptor(p->out[1]!= -1 ? p->out[1] : p->fds[1], in childProcess()
759 if (moveDescriptor(p->err[1] != -1 ? p->err[1] : p->fds[2], in childProcess()
867 jint *fds = NULL; in UNIXProcess_forkAndExec() local
906 fds = (*env)->GetIntArrayElements(env, std_fds, NULL); in UNIXProcess_forkAndExec()
907 if (fds == NULL) goto Catch; in UNIXProcess_forkAndExec()
909 if ((fds[0] == -1 && pipe(in) < 0) || in UNIXProcess_forkAndExec()
910 (fds[1] == -1 && pipe(out) < 0) || in UNIXProcess_forkAndExec()
911 (fds[2] == -1 && pipe(err) < 0) || in UNIXProcess_forkAndExec()
[all …]
DPollArrayWrapper.c42 ipoll(struct pollfd fds[], unsigned int nfds, int timeout) in ipoll() argument
53 int res = poll(fds, nfds, remaining); in ipoll()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DUNIXProcess.java40 int[] fds, in UNIXProcess() argument
55 int[] fds, in forkAndExec() argument
63 void initStreams(int[] fds) throws java.io.IOException { in initStreams() argument
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java297 File[] fds = new File("/proc/self/fd").listFiles(); in getOpenFdsForPrefix() local
299 for (File fd : fds) { in getOpenFdsForPrefix()
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1981 int fds[2]; in Linux_pipe2() local
1982 int pipe2_result = throwIfMinusOne(env, "pipe2", TEMP_FAILURE_RETRY(pipe2(&fds[0], flags))); in Linux_pipe2()
1991 ScopedLocalRef<jobject> fd(env, jniCreateFileDescriptor(env, fds[i])); in Linux_pipe2()
1994 close(fds[0]); in Linux_pipe2()
1995 close(fds[1]); in Linux_pipe2()
2009 std::unique_ptr<struct pollfd[]> fds(new struct pollfd[arrayLength]); in Linux_poll() local
2010 memset(fds.get(), 0, sizeof(struct pollfd) * arrayLength); in Linux_poll()
2021 fds[count].fd = jniGetFDFromFileDescriptor(env, javaFd.get()); in Linux_poll()
2022 fds[count].events = env->GetShortField(javaStruct.get(), eventsFid); in Linux_poll()
2028 monitors.push_back(new AsynchronousCloseMonitor(fds[i].fd)); in Linux_poll()
[all …]
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java276 @Override public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { in poll() argument
282 return super.poll(fds, timeoutMs); in poll()
DForwardingOs.java577 …public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return os.poll(fds, tim… in poll() argument
DOs.java478 public int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException; in poll() argument
DLinux.java136 public native int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException; in poll() argument
/libcore/luni/src/main/java/android/system/
DOs.java539 …public static int poll(StructPollfd[] fds, int timeoutMs) throws ErrnoException { return Libcore.o… in poll() argument