diff options
Diffstat (limited to 'do/shutdown')
-rw-r--r-- | do/shutdown | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/do/shutdown b/do/shutdown deleted file mode 100644 index 11917076d4..0000000000 --- a/do/shutdown +++ /dev/null @@ -1,28 +0,0 @@ -int -do_shutdown(stab, arglast) -STAB *stab; -int *arglast; -{ - register STR **st = stack->ary_array; - register int sp = arglast[1]; - register STIO *stio; - int how; - - if (!stab) - goto nuts; - - stio = stab_io(stab); - if (!stio || !stio->ifp) - goto nuts; - - how = (int)str_gnum(st[++sp]); - return shutdown(fileno(stio->ifp), how) >= 0; - -nuts: - if (dowarn) - warn("shutdown() on closed fd"); - errno = EBADF; - return FALSE; - -} - |