| isfdtype(3) | Library Functions Manual | isfdtype(3) |
isfdtype - проверяет тип файла файлового дескриптора
Стандартная библиотека языка C (libc, -lc)
#include <sys/stat.h> #include <sys/socket.h>
int isfdtype(int fd, int fdtype);
isfdtype():
Начиная с glibc 2.20:
_DEFAULT_SOURCE
До glibc 2.20:
_BSD_SOURCE || _SVID_SOURCE
Функция isfdtype() проверяет ссылается ли файловый дескриптор fd на файл с типом fdtype. В аргументе fdtype указывается одна из констант S_IF*, определённых в <sys/stat.h> и описанных в stat(2) (например, S_IFREG).
The isfdtype() function returns 1 if the file descriptor fd is of type fdtype and 0 if it is not. On failure, -1 is returned and errno is set to indicate the error.
The isfdtype() function can fail with any of the same errors as fstat(2).
Portable applications should use fstat(2) instead.
Отсутствуют.
It appeared in the draft POSIX.1g standard. It is present on OpenBSD and Tru64 UNIX (where the required header file in both cases is just <sys/stat.h>, as shown in the POSIX.1g draft).
Русский перевод этой страницы руководства разработал(и) Azamat Hackimov <azamat.hackimov@gmail.com>, Dmitriy S. Seregin <dseregin@59.ru>, Yuri Kozlov <yuray@komyakino.ru>, Иван Павлов <pavia00@gmail.com> и Kirill Rekhov <krekhov.dev@gmail.com>
Этот перевод является свободной программной документацией; он распространяется на условиях общедоступной лицензии GNU (GNU General Public License - GPL, https://www.gnu.org/licenses/gpl-3.0.html версии 3 или более поздней) в отношении авторского права, но БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ.
Если вы обнаружите какие-либо ошибки в переводе этой страницы руководства, пожалуйста, сообщите об этом разработчику(ам) по его(их) адресу(ам) электронной почты или по адресу списка рассылки русских переводчиков.
| 2 мая 2024 г. | Справочные страницы Linux 6.9.1 |