Home
last modified time | relevance | path

Searched refs:ttyname (Results 1 – 25 of 43) sorted by relevance

12

/third_party/rust/crates/rustix/tests/termios/
Dttyname.rs2 use rustix::termios::{isatty, ttyname};
9 assert!(ttyname(&file, Vec::new()) in test_ttyname_ok()
20 assert_eq!(ttyname(&file, Vec::new()).unwrap_err(), io::Errno::NOTTY); in test_ttyname_not_tty()
23 assert_eq!(ttyname(&file, Vec::new()).unwrap_err(), io::Errno::NOTTY); in test_ttyname_not_tty()
Dmain.rs11 mod ttyname; module
/third_party/musl/libc-test/src/functionalext/supplement/manual/unistd/
Dttyname.c32 char *result = ttyname(fd); in ttyname_0100()
47 char *result = ttyname(fd); in ttyname_0200()
Dtest_src_functionalext_supplement_manual_unistd.gni18 "ttyname",
/third_party/rust/crates/rustix/src/termios/
Dtty.rs46 pub fn ttyname<Fd: AsFd, B: Into<Vec<u8>>>(dirfd: Fd, reuse: B) -> io::Result<CString> { in ttyname() function
60 match backend::termios::syscalls::ttyname(dirfd, &mut buffer) { in _ttyname()
/third_party/toybox/toys/other/
Dlogin.c96 ttyname(tty), hh ? "from " : "", hh ? TT.h : ""); in login_main()
128 ttyname(tty), hh ? "from" : "", hh ? TT.h : ""); in login_main()
/third_party/python/Lib/
Dpty.py48 slave_name = os.ttyname(slave_fd)
116 tmp_fd = os.open(os.ttyname(STDOUT_FILENO), os.O_RDWR)
/third_party/toybox/toys/posix/
Dtty.c27 char *tty = ttyname(0); in tty_main()
/third_party/musl/src/unistd/
Dttyname.c6 char *ttyname(int fd) in ttyname() function
/third_party/musl/porting/liteos_a/user/src/unistd/
Dttyname.c6 char *ttyname(int fd) in ttyname() function
/third_party/toybox/toys/pending/
Dgetty.c277 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + in utmp_entry()
287 xstrncpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen("/dev/"), UT_LINESIZE); in utmp_entry()
/third_party/node/tools/
Dpseudo-tty.py71 name = os.ttyname(child_fd)
/third_party/rust/crates/rustix/examples/
Dstdio.rs18 use rustix::termios::ttyname;
45 println!(" - ttyname: {}", ttyname(fd, Vec::new())?.to_string_lossy()); in show()
/third_party/rust/crates/rustix/src/backend/libc/termios/
Dsyscalls.rs155 pub(crate) fn ttyname(dirfd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result<usize> { in ttyname() function
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
Dsyscalls.rs217 pub(crate) fn ttyname(fd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result<usize> { in ttyname() function
/third_party/musl/porting/liteos_a/user/include/
Dunistd.h125 char *ttyname(int);
/third_party/musl/porting/liteos_m/kernel/include/
Dunistd.h100 char *ttyname(int);
/third_party/musl/porting/linux/user/include/
Dunistd.h127 char *ttyname(int);
/third_party/musl/include/
Dunistd.h164 char *ttyname(int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
Dunistd.h100 char *ttyname(int);
/third_party/musl/porting/uniproton/kernel/include/
Dunistd.h100 char *ttyname(int);
/third_party/musl/porting/liteos_a/kernel/include/
Dunistd.h105 char *ttyname(int);
/third_party/musl/porting/liteos_m/user/include/
Dunistd.h125 char *ttyname(int);
/third_party/rust/crates/nix/test/
Dtest_unistd.rs1251 let name = ttyname(fds).expect("ttyname failed"); in test_ttyname()
1260 assert_eq!(ttyname(fd.as_raw_fd()), Err(Errno::ENOTTY)); in test_ttyname_not_pty()
1270 assert_eq!(ttyname(-1), Err(Errno::EBADF)); in test_ttyname_invalid_fd()
/third_party/musl/libc-test/src/api/
Dunistd.c325 {char*(*p)(int) = ttyname;} in f()

12