Skip to content

Commit 113efbf

Browse files
authored
Merge pull request #3867 from devnexen/illumos_ptsname_r
adding new illumos ptsname_r call.
2 parents f48d010 + 2c6ad42 commit 113efbf

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
@@ -2154,7 +2154,7 @@ pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
21542154
pub const PTHREAD_MUTEX_NORMAL: ::c_int = 0;
21552155
pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
21562156
pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 4;
2157-
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = PTHREAD_MUTEX_NORMAL;
2157+
pub const PTHREAD_MUTEX_DEFAULT: ::c_int = ::PTHREAD_MUTEX_NORMAL;
21582158

21592159
pub const RTLD_NEXT: *mut ::c_void = -1isize as *mut ::c_void;
21602160
pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void;

0 commit comments

Comments
 (0)