#7752: use fcnptr for glob errfunc.

This commit is contained in:
Felix S. Klock II 2013-09-25 15:50:15 +02:00
parent e5fdc7dee5
commit 7e809819c6

View File

@ -3224,14 +3224,13 @@ pub mod funcs {
#[nolink]
#[abi = "cdecl"]
pub mod glob {
use libc::types::common::c95::{c_void};
use libc::types::os::arch::c95::{c_char, c_int};
use libc::types::os::common::posix01::{glob_t};
extern {
pub fn glob(pattern: *c_char,
flags: c_int,
errfunc: *c_void, // XXX callback
errfunc: extern "C" fn(epath: *c_char, errno: int) -> int,
pglob: *mut glob_t);
pub fn globfree(pglob: *mut glob_t);
}