Skip to content

Commit

Permalink
Auto merge of #3168 - devnexen:redox_strclpy_api, r=JohnTitor
Browse files Browse the repository at this point in the history
redox add strlcpy api
  • Loading branch information
bors committed Mar 27, 2023
2 parents 9ac18cd + ec2ea5e commit 7b5a0b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/redox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ setrlimit
setservent
strcasecmp
strcasestr
strlcat
strlcpy
strncasecmp
strndup
strsignal
Expand Down
4 changes: 4 additions & 0 deletions src/unix/redox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,10 @@ extern "C" {
pub fn pthread_cancel(thread: ::pthread_t) -> ::c_int;
pub fn pthread_kill(thread: ::pthread_t, sig: ::c_int) -> ::c_int;

// string.h
pub fn strlcat(dst: *mut ::c_char, src: *const ::c_char, siz: ::size_t) -> ::size_t;
pub fn strlcpy(dst: *mut ::c_char, src: *const ::c_char, siz: ::size_t) -> ::size_t;

// sys/epoll.h
pub fn epoll_create(size: ::c_int) -> ::c_int;
pub fn epoll_create1(flags: ::c_int) -> ::c_int;
Expand Down

0 comments on commit 7b5a0b7

Please sign in to comment.