.. include:: ../global.rst Predicates ^^^^^^^^^^ .. _`b?`: .. idio:function:: b? pathname is `pathname` a block special device? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`c?`: .. idio:function:: c? pathname is `pathname` a character special device? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`d?`: .. idio:function:: d? pathname is `pathname` a directory? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`e?`: .. idio:function:: e? pathname does `pathname` exist? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`f?`: .. idio:function:: f? pathname is `pathname` a regular file? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`l?`: .. idio:function:: l? pathname is `pathname` a symlink? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`p?`: .. idio:function:: p? pathname is `pathname` a FIFO? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`r?`: .. idio:function:: r? pathname does `pathname` pass :samp:`access ({pathname}, R_OK)`? :param pathname: file to test :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`s?`: .. idio:function:: s? pathname is `pathname` a socket? :param pathname: pathname to stat :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`T?`: .. idio:function:: T? fd is `fd` a terminal? :param fd: file descriptor to stat :type fd: C/int :return: ``#t`` or ``#f`` :rtype: boolean .. _`w?`: .. idio:function:: w? pathname does `pathname` pass :samp:`access ({pathname}, W_OK)`? :param pathname: file to test :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. _`x?`: .. idio:function:: x? pathname does `pathname` pass :samp:`access ({pathname}, X_OK)`? :param pathname: file to test :type pathname: string :return: ``#t`` or ``#f`` :rtype: boolean :raises ^rt-libc-format-error: if `pathname` contains an ASCII NUL .. include:: ../commit.rst