Skip to content

Commit 65e817b

Browse files
committed
Fix Q_{GET,SET}QUOTA for DragonFly
1 parent a0d2d63 commit 65e817b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/unix/bsd/freebsdlike/dragonfly/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,6 @@ pub const F_SETLKW: ::c_int = 9;
7171
pub const ELAST: ::c_int = 99;
7272
pub const RLIM_POSIXLOCKS: ::c_int = 11;
7373
pub const RLIM_NLIMITS: ::rlim_t = 12;
74+
75+
pub const Q_GETQUOTA: ::c_int = 0x300;
76+
pub const Q_SETQUOTA: ::c_int = 0x400;

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ pub const RLIMIT_NPTS: ::c_int = 11;
5858
pub const RLIMIT_SWAP: ::c_int = 12;
5959
pub const RLIM_NLIMITS: ::rlim_t = 13;
6060

61+
pub const Q_GETQUOTA: ::c_int = 0x700;
62+
pub const Q_SETQUOTA: ::c_int = 0x800;
63+
6164
extern {
6265
pub fn __error() -> *mut ::c_int;
6366
}

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,6 @@ pub const ST_NOSUID: ::c_ulong = 2;
557557

558558
pub const NI_MAXHOST: ::size_t = 1025;
559559

560-
pub const Q_GETQUOTA: ::c_int = 0x700;
561-
pub const Q_SETQUOTA: ::c_int = 0x800;
562-
563560
pub const RTLD_LOCAL: ::c_int = 0;
564561
pub const RTLD_NODELETE: ::c_int = 0x1000;
565562
pub const RTLD_NOLOAD: ::c_int = 0x2000;

0 commit comments

Comments
 (0)