-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement accept4 for more archs using socketcall.
So far accept4 was only supported on archs using socketcall for x86. This patch adds support for the remaining archs. (cherry picked from commit 1e1dc4e)
- Loading branch information
Jakub Jelinek
authored and
Andreas Schwab
committed
Jul 29, 2009
1 parent
7ee7b70
commit c97164f
Showing
5 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include <kernel-features.h> | ||
#include <sys/syscall.h> | ||
#if !defined __NR_accept4 && defined __NR_socketcall | ||
# define socket accept4 | ||
# ifdef __ASSUME_ACCEPT4 | ||
# define __socket accept4 | ||
# else | ||
# define __socket __internal_accept4 | ||
# endif | ||
# define NARGS 4 | ||
# define NEED_CANCELLATION | ||
# define NO_WEAK_ALIAS | ||
# include <socket.S> | ||
#endif |