1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-09 05:46:32 +00:00

socat V1.6.0.0 (initial GIT commit)

This commit is contained in:
Gerhard Rieger 2008-01-27 13:00:08 +01:00
commit b819572f5e
170 changed files with 59193 additions and 0 deletions

21
xioexit.c Normal file
View file

@ -0,0 +1,21 @@
/* $Id: xioexit.c,v 1.10 2005/03/13 12:19:11 gerhard Exp $ */
/* Copyright Gerhard Rieger 2001-2005 */
/* Published under the GNU General Public License V.2, see file COPYING */
/* this file contains the source for the extended exit function */
#include "xiosysincludes.h"
#include "xio.h"
/* this function closes all open xio sockets on exit, if they are still open.
It must be registered with atexit(). */
void xioexit(void) {
int i;
for (i = 0; i < XIO_MAXSOCK; ++i) {
if (sock[i] != NULL && sock[i]->tag != XIO_TAG_INVALID) {
xioclose(sock[i]);
}
}
}