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
807ecb11
Commit
807ecb11
authored
11 years ago
by
Guy Zana
Browse files
Options
Downloads
Patches
Plain Diff
net: implement socketpair()
parent
d4b63034
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bsd/sys/kern/uipc_syscalls_wrap.c
+13
-0
13 additions, 0 deletions
bsd/sys/kern/uipc_syscalls_wrap.c
bsd/uipc_syscalls.h
+1
-0
1 addition, 0 deletions
bsd/uipc_syscalls.h
with
14 additions
and
0 deletions
bsd/sys/kern/uipc_syscalls_wrap.c
+
13
−
0
View file @
807ecb11
...
...
@@ -7,6 +7,19 @@
#include
"libc.h"
int
socketpair
(
int
domain
,
int
type
,
int
protocol
,
int
sv
[
2
])
{
int
error
;
error
=
linux_socketpair
(
domain
,
type
,
protocol
,
sv
);
if
(
error
)
{
errno
=
error
;
return
-
1
;
}
return
0
;
}
int
accept4
(
int
fd
,
struct
sockaddr
*
restrict
addr
,
socklen_t
*
restrict
len
,
int
flg
)
{
...
...
This diff is collapsed.
Click to expand it.
bsd/uipc_syscalls.h
+
1
−
0
View file @
807ecb11
...
...
@@ -53,5 +53,6 @@ int linux_recvfrom(int s, void* buf, size_t len, int flags,
int
linux_shutdown
(
int
s
,
int
how
);
int
linux_setsockopt
(
int
s
,
int
level
,
int
name
,
caddr_t
val
,
int
valsize
);
int
linux_getsockopt
(
int
s
,
int
level
,
int
name
,
void
*
val
,
socklen_t
*
valsize
);
int
linux_socketpair
(
int
domain
,
int
type
,
int
protocol
,
int
*
rsv
);
#endif
/* !UIPC_SYSCALLS_H */
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