Skip to content

Commit ba5930d

Browse files
committed
1 parent 770abef commit ba5930d

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ malloc_stats
632632
malloc_trim
633633
malloc_usable_size
634634
mallopt
635+
mempcpy
635636
mq_notify
636637
nl_mmap_hdr
637638
nl_mmap_req

libc-test/semver/unix.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ localtime_r
638638
lseek
639639
lstat
640640
malloc
641+
memccpy
641642
memchr
642643
memcmp
643644
memcpy

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,8 @@ extern "C" {
14391439
timeout: *const crate::timespec,
14401440
sigmask: *const crate::sigset_t,
14411441
) -> c_int;
1442+
1443+
pub fn mempcpy(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void;
14421444
}
14431445

14441446
cfg_if! {

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ extern "C" {
681681
pub fn memcpy(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void;
682682
pub fn memmove(dest: *mut c_void, src: *const c_void, n: size_t) -> *mut c_void;
683683
pub fn memset(dest: *mut c_void, c: c_int, n: size_t) -> *mut c_void;
684+
pub fn memccpy(dest: *mut c_void, src: *const c_void, c: c_int, n: size_t) -> *mut c_void;
684685
}
685686

686687
extern "C" {

0 commit comments

Comments
 (0)