We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5fdc7d commit 7e80981Copy full SHA for 7e80981
src/libstd/libc.rs
@@ -3224,14 +3224,13 @@ pub mod funcs {
3224
#[nolink]
3225
#[abi = "cdecl"]
3226
pub mod glob {
3227
- use libc::types::common::c95::{c_void};
3228
use libc::types::os::arch::c95::{c_char, c_int};
3229
use libc::types::os::common::posix01::{glob_t};
3230
3231
extern {
3232
pub fn glob(pattern: *c_char,
3233
flags: c_int,
3234
- errfunc: *c_void, // XXX callback
+ errfunc: extern "C" fn(epath: *c_char, errno: int) -> int,
3235
pglob: *mut glob_t);
3236
pub fn globfree(pglob: *mut glob_t);
3237
}
0 commit comments