@@ -31,15 +31,11 @@ pub type nlink_t = u32;
3131macro_rules! deprecate_lfs64 {
3232 ( $( $it: item) +) => {
3333 $(
34- #[ cfg_attr(
35- not( gnu_file_offset_bits64) ,
36- deprecated(
37- since = "0.2.187" ,
38- note = "Use the unsuffixed variant instead. This type is meant to provide an \
39- LFS64-compliant interface that was once exposed through \
40- `_LARGEFIL64_SOURCE` but is currently exposed through \
41- `FILE_OFFSET_BITS=64`",
42- )
34+ #[ deprecated(
35+ since = "0.2.187" ,
36+ note = "Use the unsuffixed variant instead. emscripten uses musl, and makes no \
37+ changes to these types. musl exposes 64-bit types no matter the target \
38+ triple.",
4339 ) ]
4440 $it
4541 ) +
@@ -61,14 +57,10 @@ deprecate_lfs64! {
6157}
6258
6359extern_ty ! {
64- #[ cfg_attr(
65- not( gnu_file_offset_bits64) ,
66- deprecated(
67- since = "0.2.187" ,
68- note = "Use `fpos_t`. This type is meant to provide a suffixed 64-bit alternative for \
69- 32-bit systems where handling files larger than 2 GiB is not possible without \
70- compatibility shims."
71- )
60+ #[ deprecated(
61+ since = "0.2.187" ,
62+ note = "Use the unsuffixed variant instead. emscripten uses musl, and makes no changes to \
63+ these types. musl exposes 64-bit types no mater the target triple."
7264 ) ]
7365 pub enum fpos64_t { } // FIXME(emscripten): fill this out with a struct
7466}
@@ -1485,24 +1477,18 @@ extern "C" {
14851477}
14861478
14871479// Alias <foo> to <foo>64 to mimic glibc's LFS64 support
1488- #[ cfg( not( gnu_file_offset_bits64) ) ]
1489- #[ allow( deprecated) ]
14901480#[ deprecated(
14911481 since = "0.2.187" ,
1492- note = "This module was previously accessed by any emscripten user, but that is only \
1493- possible when the `_GNU_SOURCE` and `_LARGEFILE64_SOURCE` feature test macros are \
1494- defined. Note the latter is deprecated and instead should be issued to this crate \
1495- with the `gnu_file_offset_bits64` `cfg` option."
1482+ note = "Use the unsuffixed variant instead. emscripten uses musl, and makes no changes to \
1483+ these routines. musl exposes 64-bit types no matter the target triple."
14961484) ]
1485+ #[ allow( deprecated) ]
14971486mod lfs64;
14981487
1499- #[ cfg( not( gnu_file_offset_bits64) ) ]
1500- #[ allow( deprecated) ]
15011488#[ deprecated(
15021489 since = "0.2.187" ,
1503- note = "This module was previously accessed by any emscripten user, but that is only \
1504- possible when the `_GNU_SOURCE` and `_LARGEFILE64_SOURCE` feature test macros are \
1505- defined. Note the latter is deprecated and instead should be issued to this crate \
1506- with the `gnu_file_offset_bits64` `cfg` option."
1490+ note = "Use the unsuffixed variant instead. emscripten uses musl, and makes no changes to \
1491+ these routines. musl exposes 64-bit types no matter the target triple."
15071492) ]
1493+ #[ allow( deprecated) ]
15081494pub use self :: lfs64:: * ;
0 commit comments