|
|
1.1 ! root 1: #ifndef lint ! 2: static char sccsid[] = "@(#)wwclose.c 3.13 4/24/85"; ! 3: #endif ! 4: ! 5: /* ! 6: * Copyright (c) 1983 Regents of the University of California, ! 7: * All rights reserved. Redistribution permitted subject to ! 8: * the terms of the Berkeley Software License Agreement. ! 9: */ ! 10: ! 11: #include "ww.h" ! 12: #include <signal.h> ! 13: ! 14: wwclose(w) ! 15: register struct ww *w; ! 16: { ! 17: wwindex[w->ww_index] = 0; ! 18: if (w->ww_pty >= 0) ! 19: (void) close(w->ww_pty); ! 20: if (w->ww_socket >= 0) ! 21: (void) close(w->ww_socket); ! 22: wwfree((char **)w->ww_win, w->ww_w.t); ! 23: wwfree((char **)w->ww_buf, w->ww_b.t); ! 24: if (w->ww_fmap != 0) ! 25: wwfree((char **)w->ww_fmap, w->ww_w.t); ! 26: free((char *)(w->ww_nvis + w->ww_w.t)); ! 27: if (w->ww_ob != 0) ! 28: free(w->ww_ob); ! 29: free((char *)w); ! 30: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.