Searched refs:dup2 (Results 1 - 12 of 12) sorted by last modified time

/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp828 int fd = throwIfMinusOne(env, "dup2", TEMP_FAILURE_RETRY(dup2(oldFd, newFd)));
1975 NATIVE_METHOD(Posix, dup2, "(Ljava/io/FileDescriptor;I)Ljava/io/FileDescriptor;"),
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DInheritedChannel.java56 * simple dup2 operation for each of the standard streams.
62 dup2(devnull, 0);
63 dup2(devnull, 1);
64 dup2(devnull, 2);
230 private static native void dup2(int fd, int fd2) throws IOException; method in class:InheritedChannel
/libcore/ojluni/src/main/native/
H A DFileDispatcherImpl.c248 if (dup2(preCloseFD, fd) < 0) {
249 JNU_ThrowIOExceptionWithLastError(env, "dup2 failed");
H A DInheritedChannel.c120 if (dup2(fd, fd2) < 0) {
121 JNU_ThrowIOExceptionWithLastError(env, "dup2 failed");
170 NATIVE_METHOD(InheritedChannel, dup2, "(II)V"),
H A DUNIXProcess_md.c377 RESTARTABLE(dup2(fd_from, fd_to), err);
H A Dio_util_md.c128 dup2(devnull, fd);
H A Dlinux_close.cpp51 * Close or dup2 a file descriptor ensuring that all threads blocked on
55 * fd1 >= 0 => dup2(fd1, fd2)
72 rv = dup2(fd1, fd2);
79 * Wrapper for dup2 - same semantics as dup2 system call except
H A Dnet_util_md.h77 #define NET_Dup2 dup2
/libcore/luni/src/main/java/android/system/
H A DOs.java93 * See <a href="http://man7.org/linux/man-pages/man2/dup2.2.html">dup2(2)</a>.
95 public static FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return Libcore.os.dup2(oldFd, newFd); } method in class:Os
/libcore/luni/src/main/java/libcore/io/
H A DForwardingOs.java64 public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return os.dup2(oldFd, newFd); } method in class:ForwardingOs
H A DOs.java55 public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; method in interface:Os
H A DPosix.java58 public native FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; method in class:Posix

Completed in 887 milliseconds