Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
relibc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peter Limkilde Svendsen
relibc
Commits
2284bc4a
Commit
2284bc4a
authored
1 year ago
by
Bendeguz Pisch
Committed by
Jeremy Soller
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix posix prio process (same as MR458 with fixed commits)
parent
4d2d062f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/header/sys_resource/mod.rs
+1
-1
1 addition, 1 deletion
src/header/sys_resource/mod.rs
tests/Makefile
+1
-0
1 addition, 0 deletions
tests/Makefile
tests/resource/prio_process.c
+8
-0
8 additions, 0 deletions
tests/resource/prio_process.c
with
10 additions
and
1 deletion
src/header/sys_resource/mod.rs
+
1
−
1
View file @
2284bc4a
...
@@ -61,7 +61,7 @@ pub struct rusage {
...
@@ -61,7 +61,7 @@ pub struct rusage {
pub
ru_nivcsw
:
c_long
,
pub
ru_nivcsw
:
c_long
,
}
}
pub
const
PRIO_PRO
GR
ESS
:
c_int
=
0
;
pub
const
PRIO_PRO
C
ESS
:
c_int
=
0
;
pub
const
PRIO_PGRP
:
c_int
=
1
;
pub
const
PRIO_PGRP
:
c_int
=
1
;
pub
const
PRIO_USER
:
c_int
=
2
;
pub
const
PRIO_USER
:
c_int
=
2
;
...
...
This diff is collapsed.
Click to expand it.
tests/Makefile
+
1
−
0
View file @
2284bc4a
...
@@ -188,6 +188,7 @@ NAMES=\
...
@@ -188,6 +188,7 @@ NAMES=\
grp/getgrgid_r
\
grp/getgrgid_r
\
grp/getgrnam_r
\
grp/getgrnam_r
\
grp/gr_iter
\
grp/gr_iter
\
resource/prio_process
\
# resource/getrusage
# resource/getrusage
# time/times
# time/times
...
...
This diff is collapsed.
Click to expand it.
tests/resource/prio_process.c
0 → 100644
+
8
−
0
View file @
2284bc4a
#include
<stdio.h>
#include
<sys/resource.h>
int
main
(
void
)
{
printf
(
"PRIO_PROCESS: %d"
,
PRIO_PROCESS
);
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment