Skip to content

File tree

6 files changed

+18
-36
lines changed

6 files changed

+18
-36
lines changed

libc-test/semver/linux-gnu.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -691,9 +691,6 @@ euidaccess
691691
eaccess
692692
asctime_r
693693
ctime_r
694-
strftime
695-
strftime_l
696-
strptime
697694
dirname
698695
posix_basename
699696
gnu_basename

libc-test/semver/linux-musl.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,5 @@ timex
7777
euidaccess
7878
eaccess
7979
asctime_r
80-
strftime
81-
strftime_l
82-
strptime
8380
dirname
8481
basename

libc-test/semver/linux.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3834,8 +3834,11 @@ statvfs64
38343834
strcasecmp
38353835
strcasestr
38363836
strchrnul
3837+
strftime
3838+
strftime_l
38373839
strncasecmp
38383840
strndup
3841+
strptime
38393842
strsignal
38403843
swapoff
38413844
swapon

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,21 +1478,6 @@ extern "C" {
14781478
pub fn asctime_r(tm: *const ::tm, buf: *mut ::c_char) -> *mut ::c_char;
14791479
pub fn ctime_r(timep: *const time_t, buf: *mut ::c_char) -> *mut ::c_char;
14801480

1481-
pub fn strftime(
1482-
s: *mut ::c_char,
1483-
max: ::size_t,
1484-
format: *const ::c_char,
1485-
tm: *const ::tm,
1486-
) -> ::size_t;
1487-
pub fn strftime_l(
1488-
s: *mut ::c_char,
1489-
max: ::size_t,
1490-
format: *const ::c_char,
1491-
tm: *const ::tm,
1492-
locale: ::locale_t,
1493-
) -> ::size_t;
1494-
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
1495-
14961481
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
14971482
/// POSIX version of `basename(3)`, defined in `libgen.h`.
14981483
#[link_name = "__xpg_basename"]

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

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -883,21 +883,6 @@ extern "C" {
883883

884884
pub fn asctime_r(tm: *const ::tm, buf: *mut ::c_char) -> *mut ::c_char;
885885

886-
pub fn strftime(
887-
s: *mut ::c_char,
888-
max: ::size_t,
889-
format: *const ::c_char,
890-
tm: *const ::tm,
891-
) -> ::size_t;
892-
pub fn strftime_l(
893-
s: *mut ::c_char,
894-
max: ::size_t,
895-
format: *const ::c_char,
896-
tm: *const ::tm,
897-
locale: ::locale_t,
898-
) -> ::size_t;
899-
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
900-
901886
pub fn dirname(path: *mut ::c_char) -> *mut ::c_char;
902887
pub fn basename(path: *mut ::c_char) -> *mut ::c_char;
903888
}

src/unix/linux_like/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,6 +1775,21 @@ extern "C" {
17751775
pub fn uname(buf: *mut ::utsname) -> ::c_int;
17761776

17771777
pub fn strchrnul(s: *const ::c_char, c: ::c_int) -> *mut ::c_char;
1778+
1779+
pub fn strftime(
1780+
s: *mut ::c_char,
1781+
max: ::size_t,
1782+
format: *const ::c_char,
1783+
tm: *const ::tm,
1784+
) -> ::size_t;
1785+
pub fn strftime_l(
1786+
s: *mut ::c_char,
1787+
max: ::size_t,
1788+
format: *const ::c_char,
1789+
tm: *const ::tm,
1790+
locale: ::locale_t,
1791+
) -> ::size_t;
1792+
pub fn strptime(s: *const ::c_char, format: *const ::c_char, tm: *mut ::tm) -> *mut ::c_char;
17781793
}
17791794

17801795
// LFS64 extensions

0 commit comments

Comments
 (0)