Skip to content

Commit

Permalink
m68k: Wire up direct socket calls
Browse files Browse the repository at this point in the history
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Geert Uytterhoeven committed Sep 28, 2015
1 parent 9ffecb1 commit 5b3f33e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/m68k/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <uapi/asm/unistd.h>


#define NR_syscalls 356
#define NR_syscalls 373

#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_OLD_STAT
Expand Down
17 changes: 17 additions & 0 deletions arch/m68k/include/uapi/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,5 +361,22 @@
#define __NR_memfd_create 353
#define __NR_bpf 354
#define __NR_execveat 355
#define __NR_socket 356
#define __NR_socketpair 357
#define __NR_bind 358
#define __NR_connect 359
#define __NR_listen 360
#define __NR_accept4 361
#define __NR_getsockopt 362
#define __NR_setsockopt 363
#define __NR_getsockname 364
#define __NR_getpeername 365
#define __NR_sendto 366
#define __NR_sendmsg 367
#define __NR_recvfrom 368
#define __NR_recvmsg 369
#define __NR_shutdown 370
#define __NR_recvmmsg 371
#define __NR_sendmmsg 372

#endif /* _UAPI_ASM_M68K_UNISTD_H_ */
18 changes: 17 additions & 1 deletion arch/m68k/kernel/syscalltable.S
Original file line number Diff line number Diff line change
Expand Up @@ -376,4 +376,20 @@ ENTRY(sys_call_table)
.long sys_memfd_create
.long sys_bpf
.long sys_execveat /* 355 */

.long sys_socket
.long sys_socketpair
.long sys_bind
.long sys_connect
.long sys_listen /* 360 */
.long sys_accept4
.long sys_getsockopt
.long sys_setsockopt
.long sys_getsockname
.long sys_getpeername /* 365 */
.long sys_sendto
.long sys_sendmsg
.long sys_recvfrom
.long sys_recvmsg
.long sys_shutdown /* 370 */
.long sys_recvmmsg
.long sys_sendmmsg

0 comments on commit 5b3f33e

Please sign in to comment.