Skip to content

Commit b5134b8

Browse files
committed
Auto merge of rust-lang#3058 - cppcoffee:uclibc, r=JohnTitor
uclibc/mips: add O_NOATIME & O_PATH constant Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com> This adds the O_NOATIME & O_PATH constant on Linux and uclibc. It is defined as part of the uclibc in fcntl.h: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/libc/sysdeps/linux/mips/bits/fcntl.h?id=9efce41dd3bb5d721a5b771931126f32a85e1958#n56 https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/libc/sysdeps/linux/mips/bits/fcntl.h?id=9efce41dd3bb5d721a5b771931126f32a85e1958#n57
2 parents aa8cfff + 3235a97 commit b5134b8

File tree

1 file changed

+2
-0
lines changed
  • src/unix/linux_like/linux/uclibc/mips

1 file changed

+2
-0
lines changed

src/unix/linux_like/linux/uclibc/mips/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ pub const O_ACCMODE: ::c_int = 3;
3838
pub const O_DIRECT: ::c_int = 0x8000;
3939
pub const O_DIRECTORY: ::c_int = 0x10000;
4040
pub const O_NOFOLLOW: ::c_int = 0x20000;
41+
pub const O_NOATIME: ::c_int = 0x40000;
42+
pub const O_PATH: ::c_int = 0o010000000;
4143

4244
pub const O_APPEND: ::c_int = 8;
4345
pub const O_CREAT: ::c_int = 256;

0 commit comments

Comments
 (0)