Skip to content

Commit

Permalink
Merge pull request #1001 from Qwinci/linux-shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Feb 18, 2024
2 parents 429765b + 212399c commit ec3acf7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sysdeps/linux/generic/sysdeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,14 @@ int sys_listen(int fd, int backlog) {
return 0;
}

int sys_shutdown(int sockfd, int how) {
auto ret = do_syscall(SYS_shutdown, sockfd, how);
if (int e = sc_error(ret); e) {
return e;
}
return 0;
}

int sys_getpriority(int which, id_t who, int *value) {
auto ret = do_syscall(SYS_getpriority, which, who);
if (int e = sc_error(ret); e) {
Expand Down

0 comments on commit ec3acf7

Please sign in to comment.