diff options
Diffstat (limited to 'adb/sysdeps.h')
-rw-r--r-- | adb/sysdeps.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/adb/sysdeps.h b/adb/sysdeps.h index 389fbd2..6372649 100644 --- a/adb/sysdeps.h +++ b/adb/sysdeps.h @@ -113,6 +113,7 @@ extern int adb_creat(const char* path, int mode); extern int adb_read(int fd, void* buf, int len); extern int adb_write(int fd, const void* buf, int len); extern int adb_lseek(int fd, int pos, int where); +extern int adb_shutdown(int fd); extern int adb_close(int fd); static __inline__ int unix_close(int fd) @@ -327,6 +328,13 @@ static __inline__ int adb_open( const char* pathname, int options ) #undef open #define open ___xxx_open +static __inline__ int adb_shutdown(int fd) +{ + return shutdown(fd, SHUT_RDWR); +} +#undef shutdown +#define shutdown ____xxx_shutdown + static __inline__ int adb_close(int fd) { return close(fd); |