Home
last modified time | relevance | path

Searched refs:grantpt (Results 1 - 25 of 26) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dpty.c33 int rev = grantpt(0); in grantpt_0100()
47 int ret = grantpt(fd); in ptsname_r_0100()
65 int ret = grantpt(fd); in ptsname_r_0200()
95 int ret = grantpt(fd); in ptsname_r_0400()
H A Dunlockpt.c37 result = grantpt(fdm); in unlockpt_0100()
39 t_error("%s grantpt failed", __func__); in unlockpt_0100()
/third_party/ltp/testcases/kernel/pty/
H A Dptem01.c66 if (grantpt(masterfd) != 0) { in test1()
67 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1()
145 if (grantpt(masterfd) != 0) { in test2()
146 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test2()
223 if (grantpt(masterfd) != 0) { in test3()
224 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test3()
271 if (grantpt(masterfd) != 0) { in test4()
272 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test4()
344 if (grantpt(masterfd[i]) != 0) { in test5()
346 "grantpt() cal in test5()
[all...]
H A Dpty01.c59 * mode we expect grantpt() to leave pty as
86 if (grantpt(masterfd) != 0) { in test1()
87 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test1()
97 /* grantpt() is a no-op in bionic. */ in test1()
204 if (grantpt(masterfd) != 0) { in test2()
205 tst_brkm(TBROK | TERRNO, NULL, "grantpt() call failed"); in test2()
281 if (grantpt(masterfd) != 0) { in test4()
282 tst_brkm(TBROK, NULL, "grantpt() call failed"); in test4()
348 if (grantpt(masterfd) != 0) { in test5()
349 printf("proc %d: grantpt() cal in test5()
[all...]
H A Dpty03.c113 if (grantpt(ptmx)) in do_test()
114 tst_brk(TBROK | TERRNO, "grantpt(ptmx)"); in do_test()
H A Dhangup01.c220 if (grantpt(masterfd) != 0) in main()
221 tst_brkm(TBROK | TERRNO, NULL, "grantpt"); in main()
H A Dpty04.c120 if (grantpt(ptmx)) in open_pty()
121 tst_brk(TBROK | TERRNO, "grantpt(ptmx)"); in open_pty()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dpty.c17 int grantpt(int fd) in grantpt() function
/third_party/musl/src/misc/
H A Dpty.c17 int grantpt(int fd) in grantpt() function
/third_party/musl/libc-test/src/functionalext/supplement/termios/
H A Dtcdrain.c43 result = grantpt(fd_master); in tcdrain_0100()
45 t_error("%s grantpt failed", __func__); in tcdrain_0100()
H A Dtcflow.c41 result = grantpt(fdm); in tcflow_0100()
43 t_error("%s grantpt failed", __func__); in tcflow_0100()
/third_party/rust/crates/nix/src/
H A Dpty.rs113 /// [`grantpt(3)`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/grantpt.html))
115 /// `grantpt()` changes the mode and owner of the slave pseudoterminal device corresponding to the
118 pub fn grantpt(fd: &PtyMaster) -> Result<()> { in grantpt() functions
119 if unsafe { libc::grantpt(fd.as_raw_fd()) } < 0 { in grantpt()
139 /// use nix::pty::{grantpt, posix_openpt, ptsname, unlockpt};
148 /// grantpt(&master_fd)?;
/third_party/musl/porting/liteos_m/kernel/include/
H A Dstdlib.h121 int grantpt (int);
/third_party/musl/porting/liteos_m/user/include/
H A Dstdlib.h120 int grantpt (int);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dstdlib.h123 int grantpt (int);
/third_party/musl/porting/uniproton/kernel/include/
H A Dstdlib.h121 int grantpt (int);
/third_party/musl/libc-test/src/api/
H A Dstdlib.c76 {int(*p)(int) = grantpt;} in f()
/third_party/musl/porting/linux/user/include/
H A Dstdlib.h126 int grantpt (int);
/third_party/musl/include/
H A Dstdlib.h127 int grantpt (int);
/third_party/rust/crates/libc/src/unix/solarish/
H A Dcompat.rs70 if ::grantpt(fdm) < 0 || ::unlockpt(fdm) < 0 { in openpty()
/third_party/rust/crates/nix/test/
H A Dtest_pty.rs107 grantpt(&master).expect("grantpt failed"); in open_ptty_pair()
H A Dtest_unistd.rs13 use nix::pty::{grantpt, posix_openpt, ptsname, unlockpt};
1244 grantpt(&fd).expect("grantpt failed"); in test_ttyname()
/third_party/rust/crates/libc/src/unix/
H A Dmod.rs1399 pub fn grantpt(fd: ::c_int) -> ::c_int; in grantpt() functions
/third_party/rust/crates/libc/src/fuchsia/
H A Dmod.rs3855 pub fn grantpt(fd: ::c_int) -> ::c_int; in grantpt() functions
/third_party/python/Modules/
H A Dposixmodule.c7418 if (grantpt(master_fd) < 0) { in os_openpty_impl()

Completed in 38 milliseconds

12