Home
last modified time | relevance | path

Searched refs:ttyname (Results 1 - 25 of 29) sorted by relevance

12

/third_party/rust/crates/rustix/tests/termios/
H A 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()
H A Dmain.rs11 mod ttyname; modules
/third_party/musl/libc-test/src/functionalext/supplement/manual/unistd/
H A Dttyname.c25 * @tc.desc : Test the ttyname method to get the terminal name through the file handle
32 char *result = ttyname(fd); in ttyname_0100()
34 t_error("%s ttyname get result is %s are not want %s\n", __func__, result, file); in ttyname_0100()
40 * @tc.desc : Test the return value of ttyname when a non-existing terminal file handle is passed in
47 char *result = ttyname(fd); in ttyname_0200()
49 t_error("%s ttyname get result is %s are not null\n", __func__, result); in ttyname_0200()
/third_party/toybox/toys/other/
H A 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/
H A 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/
H A Dtty.c27 char *tty = ttyname(0); in tty_main()
/third_party/musl/porting/liteos_a/user/src/unistd/
H A Dttyname.c6 char *ttyname(int fd) in ttyname() function
/third_party/musl/src/unistd/
H A Dttyname.c6 char *ttyname(int fd) in ttyname() function
/third_party/rust/crates/rustix/src/termios/
H A Dtty.rs40 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/ttyname.html
41 /// [Linux]: https://man7.org/linux/man-pages/man3/ttyname.3.html
46 pub fn ttyname<Fd: AsFd, B: Into<Vec<u8>>>(dirfd: Fd, reuse: B) -> io::Result<CString> { in ttyname() functions
60 match backend::termios::syscalls::ttyname(dirfd, &mut buffer) {
H A Dmod.rs792 pub use tty::ttyname;
/third_party/rust/crates/rustix/src/backend/libc/termios/
H A Dsyscalls.rs155 pub(crate) fn ttyname(dirfd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result<usize> {
/third_party/toybox/toys/pending/
H A 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/
H A Dpseudo-tty.py71 name = os.ttyname(child_fd)
/third_party/rust/crates/rustix/src/backend/linux_raw/termios/
H A Dsyscalls.rs217 pub(crate) fn ttyname(fd: BorrowedFd<'_>, buf: &mut [u8]) -> io::Result<usize> {
231 // Gather the ttyname by reading the 'fd' file inside 'proc_self_fd'.
/third_party/rust/crates/rustix/examples/
H A Dstdio.rs18 use rustix::termios::ttyname;
45 println!(" - ttyname: {}", ttyname(fd, Vec::new())?.to_string_lossy()); in show()
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h125 char *ttyname(int);
/third_party/musl/porting/uniproton/kernel/include/
H A Dunistd.h100 char *ttyname(int);
/third_party/musl/porting/linux/user/include/
H A Dunistd.h127 char *ttyname(int);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h125 char *ttyname(int);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dunistd.h100 char *ttyname(int);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dunistd.h105 char *ttyname(int);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dunistd.h100 char *ttyname(int);
/third_party/musl/include/
H A Dunistd.h164 char *ttyname(int);
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs1241 // on linux, we can just call ttyname on the pty master directly, but in test_ttyname()
1242 // apparently osx requires that ttyname is called on a slave pty (can't in test_ttyname()
1251 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/
H A Dunistd.c325 {char*(*p)(int) = ttyname;} in f()

Completed in 14 milliseconds

12