Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Verlässliche Systemsoftware
projects
osv
Commits
9c801a32
Commit
9c801a32
authored
12 years ago
by
Avi Kivity
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:cloudius-systems/osv
parents
bdb08b03
3c81b9d8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
external/glibc-testsuite
+1
-1
1 addition, 1 deletion
external/glibc-testsuite
fs/vfs/main.c
+13
-1
13 additions, 1 deletion
fs/vfs/main.c
with
14 additions
and
2 deletions
glibc-testsuite
@
ea88fa9e
Compare
1aa74537
...
ea88fa9e
Subproject commit
1aa7453760873926164d197f4909c2513edac0cf
Subproject commit
ea88fa9ea46bea5ce159ae15f93c154ac0c51173
This diff is collapsed.
Click to expand it.
fs/vfs/main.c
+
13
−
1
View file @
9c801a32
...
...
@@ -709,12 +709,19 @@ out_errno:
/*
* Duplicate a file descriptor to a particular value.
*/
int
dup
2
(
int
oldfd
,
int
newfd
)
int
dup
3
(
int
oldfd
,
int
newfd
,
int
flags
)
{
struct
task
*
t
=
main_task
;
file_t
fp
,
org
;
int
error
;
/*
* Don't allow any argument but O_CLOEXEC. But we even ignore
* that as we don't support exec() and thus don't care.
*/
if
((
flags
&
~
O_CLOEXEC
)
!=
0
)
return
-
EINVAL
;
error
=
EBADF
;
if
(
oldfd
>=
OPEN_MAX
||
newfd
>=
OPEN_MAX
)
goto
out_errno
;
...
...
@@ -737,6 +744,11 @@ out_errno:
return
-
1
;
}
int
dup2
(
int
oldfd
,
int
newfd
)
{
return
dup3
(
oldfd
,
newfd
,
0
);
}
/*
* The file control system call.
*/
...
...
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