summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-08-18 09:30:39 +0000
committerbors <bors@rust-lang.org>2022-08-18 09:30:39 +0000
commitd03554b929d77de388eff2fbd6659c4eb5897095 (patch)
treea106a0cded760ef62887ea622debebc25d8a8a2b
parent2a1d1033c6457b0dedb4e7ed35a19d9a513622b6 (diff)
parentc0c0f917d5bd8f4c5e24a26f629858ca15566701 (diff)
downloadrust-libc-d03554b929d77de388eff2fbd6659c4eb5897095.tar.gz
Auto merge of #2878 - devnexen:ptsname_r_fbsd, r=JohnTitor
freebsd adding ptsname_r
-rw-r--r--libc-test/semver/freebsd.txt1
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/mod.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt
index 930f810378..59a724bf49 100644
--- a/libc-test/semver/freebsd.txt
+++ b/libc-test/semver/freebsd.txt
@@ -1782,6 +1782,7 @@ ptrace_io_desc
ptrace_lwpinfo
ptrace_sc_ret
ptrace_vm_entry
+ptsname_r
pututxline
pwritev
qsort
diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs
index 84e43b23e5..19c72e4f1f 100644
--- a/src/unix/bsd/freebsdlike/freebsd/mod.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs
@@ -3985,6 +3985,7 @@ extern "C" {
infop: *mut ::siginfo_t,
options: ::c_int,
) -> ::c_int;
+ pub fn ptsname_r(fd: ::c_int, buf: *mut ::c_char, buflen: ::size_t) -> ::c_int;
pub fn ftok(pathname: *const ::c_char, proj_id: ::c_int) -> ::key_t;
pub fn shmget(key: ::key_t, size: ::size_t, shmflg: ::c_int) -> ::c_int;