File tree 12 files changed +44
-4
lines changed
12 files changed +44
-4
lines changed Original file line number Diff line number Diff line change @@ -501,6 +501,10 @@ pub const REG_BACKR: ::c_int = 0o02000;
501
501
pub const TIOCCBRK : :: c_uint = 0x2000747a ;
502
502
pub const TIOCSBRK : :: c_uint = 0x2000747b ;
503
503
504
+ pub const PRIO_PROCESS : :: c_int = 0 ;
505
+ pub const PRIO_PGRP : :: c_int = 1 ;
506
+ pub const PRIO_USER : :: c_int = 2 ;
507
+
504
508
f ! {
505
509
pub fn CMSG_FIRSTHDR ( mhdr: * const :: msghdr) -> * mut :: cmsghdr {
506
510
if ( * mhdr) . msg_controllen as usize >= :: mem:: size_of:: <:: cmsghdr>( ) {
Original file line number Diff line number Diff line change @@ -1206,6 +1206,10 @@ pub const TIOCCBRK: ::c_int = TCGETA + 21;
1206
1206
pub const TIOCMBIS : :: c_int = TCGETA + 22 ;
1207
1207
pub const TIOCMBIC : :: c_int = TCGETA + 23 ;
1208
1208
1209
+ pub const PRIO_PROCESS : :: c_int = 0 ;
1210
+ pub const PRIO_PGRP : :: c_int = 1 ;
1211
+ pub const PRIO_USER : :: c_int = 2 ;
1212
+
1209
1213
f ! {
1210
1214
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
1211
1215
let fd = fd as usize ;
Original file line number Diff line number Diff line change @@ -939,6 +939,10 @@ const ULONG_SIZE: usize = 64;
939
939
940
940
pub const WNOHANG : :: c_int = 0x00000001 ;
941
941
942
+ pub const PRIO_PROCESS : :: c_int = 0 ;
943
+ pub const PRIO_PGRP : :: c_int = 1 ;
944
+ pub const PRIO_USER : :: c_int = 2 ;
945
+
942
946
f ! {
943
947
pub fn WEXITSTATUS ( status: :: c_int) -> :: c_int {
944
948
( status >> 8 ) & 0xff
Original file line number Diff line number Diff line change @@ -2144,6 +2144,10 @@ pub const EDOM: ::c_int = 33;
2144
2144
pub const ERANGE : :: c_int = 34 ;
2145
2145
pub const EWOULDBLOCK : :: c_int = EAGAIN ;
2146
2146
2147
+ pub const PRIO_PROCESS : :: c_int = 0 ;
2148
+ pub const PRIO_PGRP : :: c_int = 1 ;
2149
+ pub const PRIO_USER : :: c_int = 2 ;
2150
+
2147
2151
f ! {
2148
2152
pub fn CMSG_NXTHDR ( mhdr: * const msghdr,
2149
2153
cmsg: * const cmsghdr) -> * mut cmsghdr {
Original file line number Diff line number Diff line change @@ -1680,6 +1680,10 @@ pub const ARPD_LOOKUP: ::c_ushort = 0x02;
1680
1680
pub const ARPD_FLUSH : :: c_ushort = 0x03 ;
1681
1681
pub const ATF_MAGIC : :: c_int = 0x80 ;
1682
1682
1683
+ pub const PRIO_PROCESS : :: c_int = 0 ;
1684
+ pub const PRIO_PGRP : :: c_int = 1 ;
1685
+ pub const PRIO_USER : :: c_int = 2 ;
1686
+
1683
1687
f ! {
1684
1688
pub fn CMSG_NXTHDR ( mhdr: * const msghdr,
1685
1689
cmsg: * const cmsghdr) -> * mut cmsghdr {
Original file line number Diff line number Diff line change @@ -465,6 +465,10 @@ pub const RLIMIT_RTPRIO: ::__rlimit_resource_t = 14;
465
465
pub const RLIMIT_RTTIME : :: __rlimit_resource_t = 15 ;
466
466
pub const RLIMIT_NLIMITS : :: __rlimit_resource_t = 16 ;
467
467
468
+ pub const PRIO_PROCESS : :: __priority_which_t = 0 ;
469
+ pub const PRIO_PGRP : :: __priority_which_t = 1 ;
470
+ pub const PRIO_USER : :: __priority_which_t = 2 ;
471
+
468
472
pub const MS_RMT_MASK : :: c_ulong = 0x02800051 ;
469
473
470
474
pub const __UT_LINESIZE: usize = 32 ;
Original file line number Diff line number Diff line change @@ -425,6 +425,10 @@ pub const REG_OK: ::c_int = 0;
425
425
pub const TIOCSBRK : :: c_int = 0x5427 ;
426
426
pub const TIOCCBRK : :: c_int = 0x5428 ;
427
427
428
+ pub const PRIO_PROCESS : :: c_int = 0 ;
429
+ pub const PRIO_PGRP : :: c_int = 1 ;
430
+ pub const PRIO_USER : :: c_int = 2 ;
431
+
428
432
extern "C" {
429
433
pub fn sendmmsg (
430
434
sockfd : :: c_int ,
Original file line number Diff line number Diff line change @@ -269,10 +269,6 @@ pub const LOG_NOWAIT: ::c_int = 0x10;
269
269
pub const LOG_PRIMASK : :: c_int = 7 ;
270
270
pub const LOG_FACMASK : :: c_int = 0x3f8 ;
271
271
272
- pub const PRIO_PROCESS : :: c_int = 0 ;
273
- pub const PRIO_PGRP : :: c_int = 1 ;
274
- pub const PRIO_USER : :: c_int = 2 ;
275
-
276
272
pub const PRIO_MIN : :: c_int = -20 ;
277
273
pub const PRIO_MAX : :: c_int = 20 ;
278
274
Original file line number Diff line number Diff line change @@ -547,6 +547,10 @@ pub const EAI_MEMORY: ::c_int = -304;
547
547
pub const EAI_NONAME : :: c_int = -305 ;
548
548
pub const EAI_SOCKTYPE : :: c_int = -307 ;
549
549
550
+ pub const PRIO_PROCESS : :: c_int = 0 ;
551
+ pub const PRIO_PGRP : :: c_int = 1 ;
552
+ pub const PRIO_USER : :: c_int = 2 ;
553
+
550
554
f ! {
551
555
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
552
556
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
Original file line number Diff line number Diff line change @@ -823,6 +823,10 @@ pub const _PC_ALLOC_SIZE_MIN: ::c_int = 18;
823
823
pub const _PC_SYMLINK_MAX: :: c_int = 19 ;
824
824
pub const _PC_2_SYMLINKS: :: c_int = 20 ;
825
825
826
+ pub const PRIO_PROCESS : :: c_int = 0 ;
827
+ pub const PRIO_PGRP : :: c_int = 1 ;
828
+ pub const PRIO_USER : :: c_int = 2 ;
829
+
826
830
// wait.h
827
831
f ! {
828
832
pub fn WIFSTOPPED ( status: :: c_int) -> bool {
Original file line number Diff line number Diff line change @@ -1995,6 +1995,10 @@ pub const TIME_OOP: i32 = 3;
1995
1995
pub const TIME_WAIT : i32 = 4 ;
1996
1996
pub const TIME_ERROR : i32 = 5 ;
1997
1997
1998
+ pub const PRIO_PROCESS : :: c_int = 0 ;
1999
+ pub const PRIO_PGRP : :: c_int = 1 ;
2000
+ pub const PRIO_USER : :: c_int = 2 ;
2001
+
1998
2002
f ! {
1999
2003
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
2000
2004
let bits = :: mem:: size_of_val( & ( * set) . fds_bits[ 0 ] ) * 8 ;
Original file line number Diff line number Diff line change @@ -1503,6 +1503,10 @@ pub const NOSTR: ::nl_item = 0x503;
1503
1503
1504
1504
pub const FILENAME_MAX : :: c_uint = 4095 ;
1505
1505
1506
+ pub const PRIO_PROCESS : :: c_int = 0 ;
1507
+ pub const PRIO_PGRP : :: c_int = 1 ;
1508
+ pub const PRIO_USER : :: c_int = 2 ;
1509
+
1506
1510
f ! {
1507
1511
pub fn FD_CLR ( fd: :: c_int, set: * mut fd_set) -> ( ) {
1508
1512
let fd = fd as usize ;
You can’t perform that action at this time.
0 commit comments