Skip to content

Commit 8af2362

Browse files
devnexentgross35
authored andcommitted
adding new illumos ptsname_r call.
(backport <#3867>) (cherry picked from commit 2c6ad42)
1 parent 3c09095 commit 8af2362

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

libc-test/semver/illumos.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pthread_attr_get_np
22
pthread_attr_getstackaddr
33
pthread_attr_setstack
4+
ptsname_r

src/unix/solarish/illumos.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,6 @@ extern "C" {
100100
pub fn pwritev(fd: ::c_int, iov: *const ::iovec, iovcnt: ::c_int, offset: ::off_t)
101101
-> ::ssize_t;
102102
pub fn getpagesizes2(pagesize: *mut ::size_t, nelem: ::c_int) -> ::c_int;
103+
104+
pub fn ptsname_r(fildes: ::c_int, name: *mut ::c_char, namelen: ::size_t) -> ::c_int;
103105
}

src/unix/solarish/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
21682168
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;
21692169
pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
21702170
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 4;
2171-
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
2171+
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = ::PTHREAD_MUTEX_NORMAL;
21722172

21732173
pub const RTLD_NEXT: *mut ::c_void = -1isize as *mut ::c_void;
21742174
pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void;

0 commit comments

Comments
 (0)