We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c25d657 + 2c8ad9b commit 0bfcd7aCopy full SHA for 0bfcd7a
src/unix/bsd/netbsdlike/netbsd/mod.rs
@@ -644,6 +644,15 @@ pub const P_PGID: idtype_t = 4;
644
pub const B460800: ::speed_t = 460800;
645
pub const B921600: ::speed_t = 921600;
646
647
+// dirfd() is a macro on netbsd to access
648
+// the first field of the struct where dirp points to:
649
+// http://cvsweb.netbsd.org/bsdweb.cgi/src/include/dirent.h?rev=1.36
650
+f! {
651
+ pub fn dirfd(dirp: *mut ::DIR) -> ::c_int {
652
+ unsafe { *(dirp as *const ::c_int) }
653
+ }
654
+}
655
+
656
extern {
657
pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int;
658
pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int;
0 commit comments