#include #include #ifdef __linux__ #include #else #define NR_OPEN 1024 #endif int close_all(void) { int fd, max, err; max = sysconf(_SC_OPEN_MAX); err = max <= 0; if (max < NR_OPEN) max = NR_OPEN; for (fd = 3; fd < max; fd++) err |= close(fd) && errno != EBADF; return -err; }
<span id="7ztzv"></span>
<sub id="7ztzv"></sub>

<span id="7ztzv"></span><form id="7ztzv"></form>

<span id="7ztzv"></span>

        <address id="7ztzv"></address>

            ÑÇÖÞÅ·ÃÀÔÚÏß