*/
#ifndef lint
-static const char rcsid[] = "$Id: os_unix.c,v 1.23 2001/03/27 13:21:26 robs Exp $";
+static const char rcsid[] = "$Id: os_unix.c,v 1.24 2001/03/27 14:03:20 robs Exp $";
#endif /* not lint */
#include "fcgi_config.h"
static int numWrPosted = 0;
static int volatile maxFd = -1;
-\f
/*
*--------------------------------------------------------------
*
return 0;
}
-\f
/*
*--------------------------------------------------------------
*
return;
}
-\f
/*
*----------------------------------------------------------------------
*
#endif
return 0;
}
-\f
union SockAddrUnion {
struct sockaddr_un unixVariant;
struct sockaddr_in inetVariant;
};
-\f
/*
* OS_CreateLocalIpcFd --
*
return listenSock;
}
-\f
/*
*----------------------------------------------------------------------
*
}
}
-\f
/*
*--------------------------------------------------------------
*
{
return(read(fd, buf, len));
}
-\f
+
/*
*--------------------------------------------------------------
*
return(write(fd, buf, len));
}
-\f
/*
*----------------------------------------------------------------------
*
return 0;
}
-\f
/*
*--------------------------------------------------------------
*
}
-\f
/*
*--------------------------------------------------------------
*
FD_SET(fd, &readFdSet);
return 0;
}
-\f
+
/*
*--------------------------------------------------------------
*
FD_SET(fd, &writeFdSet);
return 0;
}
-\f
+
/*
*--------------------------------------------------------------
*
}
return close(fd);
}
-\f
+
/*
*--------------------------------------------------------------
*
return shutdown(fd, 0);
}
-\f
/*
*--------------------------------------------------------------
*
return sdup;
}
-\f
/*
*----------------------------------------------------------------------
*
return result;
}
-\f
/*
*----------------------------------------------------------------------
*
return 0;
#endif
}
-\f
+
/*
*----------------------------------------------------------------------
*
#endif
}
-\f
/**********************************************************************
* Determine if the errno resulting from a failed accept() warrants a
* retry or exit(). Based on Apache's http_main.c accept() handling
return (socket);
}
-\f
+
/*
*----------------------------------------------------------------------
*
return OS_Close(ipcFd);
}
-\f
/*
*----------------------------------------------------------------------
*
return FALSE;
}
}
-\f
+
/*
*----------------------------------------------------------------------
*
* significantly more enjoyable.)
*/
#ifndef lint
-static const char rcsid[] = "$Id: os_win32.c,v 1.10 2001/03/27 04:13:12 robs Exp $";
+static const char rcsid[] = "$Id: os_win32.c,v 1.11 2001/03/27 14:03:21 robs Exp $";
#endif /* not lint */
#include "fcgi_config.h"
static OVERLAPPED listenOverlapped;
static BOOLEAN libInitialized = FALSE;
-\f
/*
*--------------------------------------------------------------
*
return index;
}
-\f
+
/*
*--------------------------------------------------------------
*
return 0;
}
-\f
/*
*--------------------------------------------------------------
*
return;
}
-\f
/*
*--------------------------------------------------------------
*
return port;
}
-\f
/*
* OS_CreateLocalIpcFd --
*
return pseudoFd;
}
-\f
/*
*----------------------------------------------------------------------
*
return pseudoFd;
}
-\f
/*
*--------------------------------------------------------------
*
return -1;
}
}
-\f
+
/*
*--------------------------------------------------------------
*
}
}
-\f
/*
*----------------------------------------------------------------------
*
}
}
-\f
/*
*--------------------------------------------------------------
*
return 0;
}
-\f
/*
*--------------------------------------------------------------
*
}
return 0;
}
-\f
+
/*
*--------------------------------------------------------------
*
return 0;
}
-\f
/*
*--------------------------------------------------------------
*
Win32FreeDescriptor(fd);
return ret;
}
-\f
+
/*
*--------------------------------------------------------------
*
ret = -1;
return ret;
}
-\f
+
/*
*--------------------------------------------------------------
*
}
}
-\f
/*
*----------------------------------------------------------------------
*
return ipcFd;
}
-\f
+
/*
*----------------------------------------------------------------------
*
}
}
-\f
/*
*----------------------------------------------------------------------
*
}
}
-\f
/*
*----------------------------------------------------------------------
*