Skip to content

Commit e45fa4a

Browse files
committed
Put comments in the correct location
1 parent d79a44f commit e45fa4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/unix/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -609,16 +609,16 @@ extern {
609609
#[cfg_attr(target_os = "macos", link_name = "readdir$INODE64")]
610610
#[cfg_attr(target_os = "netbsd", link_name = "__readdir30")]
611611
#[cfg_attr(target_os = "freebsd", link_name = "readdir@FBSD_1.0")]
612+
pub fn readdir(dirp: *mut ::DIR) -> *mut ::dirent;
613+
#[cfg_attr(target_os = "macos", link_name = "readdir_r$INODE64")]
614+
#[cfg_attr(target_os = "netbsd", link_name = "__readdir_r30")]
615+
#[cfg_attr(target_os = "freebsd", link_name = "readdir_r@FBSD_1.0")]
612616
/// The 64-bit libc on Solaris and illumos only has readdir_r. If a
613617
/// 32-bit Solaris or illumos target is ever created, it should use
614618
/// __posix_readdir_r. See libc(3LIB) on Solaris or illumos:
615619
/// https://illumos.org/man/3lib/libc
616620
/// https://docs.oracle.com/cd/E36784_01/html/E36873/libc-3lib.html
617621
/// https://www.unix.com/man-page/opensolaris/3LIB/libc/
618-
pub fn readdir(dirp: *mut ::DIR) -> *mut ::dirent;
619-
#[cfg_attr(target_os = "macos", link_name = "readdir_r$INODE64")]
620-
#[cfg_attr(target_os = "netbsd", link_name = "__readdir_r30")]
621-
#[cfg_attr(target_os = "freebsd", link_name = "readdir_r@FBSD_1.0")]
622622
pub fn readdir_r(dirp: *mut ::DIR, entry: *mut ::dirent,
623623
result: *mut *mut ::dirent) -> ::c_int;
624624
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),

0 commit comments

Comments
 (0)