From: Alan Cox Date: Fri, 25 Mar 2016 20:52:41 +0000 (+0000) Subject: includes: add shutdown X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b78133edfa33436433bffe6f1c90582a79b4ebff;p=FUZIX.git includes: add shutdown --- diff --git a/Library/include/syscalls.h b/Library/include/syscalls.h index 89544f43..1d91f5db 100644 --- a/Library/include/syscalls.h +++ b/Library/include/syscalls.h @@ -81,6 +81,11 @@ struct sockaddr; #define AD_NOSYNC 1 /* Unimplemented */ +/* shutdown */ +#define SHUT_RD 0 +#define SHUT_WR 1 +#define SHUT_RDWR 2 + struct times; struct tms; struct utimbuf; @@ -150,6 +155,7 @@ extern int socket(int af, int type, int pf); extern int listen(int fd, int len); extern int bind(int fd, const struct sockaddr *s, int len); extern int connect(int fd, const struct sockaddr *s, int len); +extern int shutdown(int fd, int how); /* asm syscall hooks with C wrappers */ extern int _getdirent(int fd, void *buf, int len);