This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Original file line number Diff line number Diff line change @@ -466,6 +466,38 @@ else version (CRuntime_Bionic)
466
466
else version (CRuntime_Musl )
467
467
{
468
468
alias ulong rlim_t;
469
+
470
+ int getrlimit (int , rlimit* );
471
+ int setrlimit (int , in rlimit* );
472
+ alias getrlimit getrlimit64;
473
+ alias setrlimit setrlimit64;
474
+ enum
475
+ {
476
+ RUSAGE_SELF = 0 ,
477
+ RUSAGE_CHILDREN = - 1 ,
478
+ RUSAGE_THREAD = 1
479
+ }
480
+ struct rusage
481
+ {
482
+ timeval ru_utime;
483
+ timeval ru_stime;
484
+ c_long ru_maxrss;
485
+ c_long ru_ixrss;
486
+ c_long ru_idrss;
487
+ c_long ru_isrss;
488
+ c_long ru_minflt;
489
+ c_long ru_majflt;
490
+ c_long ru_nswap;
491
+ c_long ru_inblock;
492
+ c_long ru_oublock;
493
+ c_long ru_msgsnd;
494
+ c_long ru_msgrcv;
495
+ c_long ru_nsignals;
496
+ c_long ru_nvcsw;
497
+ c_long ru_nivcsw;
498
+ c_long[16 ] __reserved;
499
+ }
500
+
469
501
enum
470
502
{
471
503
RLIMIT_CPU = 0 ,
@@ -476,10 +508,6 @@ else version (CRuntime_Musl)
476
508
RLIMIT_NOFILE = 7 ,
477
509
RLIMIT_AS = 9 ,
478
510
}
479
- int getrlimit (int , rlimit* );
480
- int setrlimit (int , in rlimit* );
481
- alias getrlimit getrlimit64;
482
- alias setrlimit setrlimit64;
483
511
}
484
512
else version (CRuntime_UClibc )
485
513
{
@@ -651,4 +679,4 @@ else version (CRuntime_UClibc)
651
679
int setrlimit (int , in rlimit* );
652
680
}
653
681
int getrusage (int , rusage* );
654
- }
682
+ }
You can’t perform that action at this time.
0 commit comments