1a02c88d6Slogwang /*- 2a02c88d6Slogwang * Copyright (c) 2010 Kip Macy 3*2317ada5Sfengbojiang * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. 4a02c88d6Slogwang * All rights reserved. 5a02c88d6Slogwang * 6a02c88d6Slogwang * Redistribution and use in source and binary forms, with or without 7a02c88d6Slogwang * modification, are permitted provided that the following conditions 8a02c88d6Slogwang * are met: 9a02c88d6Slogwang * 1. Redistributions of source code must retain the above copyright 10a02c88d6Slogwang * notice unmodified, this list of conditions, and the following 11a02c88d6Slogwang * disclaimer. 12a02c88d6Slogwang * 2. Redistributions in binary form must reproduce the above copyright 13a02c88d6Slogwang * notice, this list of conditions and the following disclaimer in the 14a02c88d6Slogwang * documentation and/or other materials provided with the distribution. 15a02c88d6Slogwang * 16a02c88d6Slogwang * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17a02c88d6Slogwang * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18a02c88d6Slogwang * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19a02c88d6Slogwang * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20a02c88d6Slogwang * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21a02c88d6Slogwang * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22a02c88d6Slogwang * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23a02c88d6Slogwang * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24a02c88d6Slogwang * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25a02c88d6Slogwang * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26a02c88d6Slogwang */ 27a02c88d6Slogwang 28a02c88d6Slogwang #ifndef _FSTACK_SYS_FILEDESC_H_ 29a02c88d6Slogwang #define _FSTACK_SYS_FILEDESC_H_ 30a02c88d6Slogwang 31a02c88d6Slogwang #include_next <sys/filedesc.h> 32a02c88d6Slogwang 33615f2d3cSlogwang void ff_fdused_range(int max); 34a02c88d6Slogwang int ff_fdisused(int fd); 3570bb2888Schenwei int ff_getmaxfd(void); 36a02c88d6Slogwang 37a02c88d6Slogwang #endif /* _FSTACK_SYS_FILEDESC_H_ */ 38