summaryrefslogtreecommitdiffstats
path: root/adb/sysdeps_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'adb/sysdeps_win32.c')
-rw-r--r--adb/sysdeps_win32.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/adb/sysdeps_win32.c b/adb/sysdeps_win32.c
index a8e3bb9..ced91e8 100644
--- a/adb/sysdeps_win32.c
+++ b/adb/sysdeps_win32.c
@@ -435,6 +435,20 @@ int adb_lseek(int fd, int pos, int where)
}
+int adb_shutdown(int fd)
+{
+ FH f = _fh_from_int(fd);
+
+ if (!f) {
+ return -1;
+ }
+
+ D( "adb_shutdown: %s\n", f->name);
+ shutdown( f->fh_socket, SD_BOTH );
+ return 0;
+}
+
+
int adb_close(int fd)
{
FH f = _fh_from_int(fd);