Manual Reference Pages  - system_isfifo (3m_system)

NAME

system_isfifo(3f) - [M_system:QUERY_FILE] checks if argument is a fifo - named pipe (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Return Value
Errors
See Also
Examples

SYNOPSIS

elemental impure logical function system_isfifo(pathname)

     character(len=*),intent(in) :: pathname
     logical                     :: system_isfifo

DESCRIPTION

The isfifo(3f) function checks if path is a path to a fifo - named pipe.

OPTIONS

path a character string representing a fifo - named pipe pathname. Trailing spaces are ignored.

RETURN VALUE

The system_isfifo() function should always be successful and no return value is reserved to indicate an error.

ERRORS

No errors are defined.

SEE ALSO

system_isreg(3f), system_stat(3f), system_isdir(3f), system_perm(3f)

EXAMPLES

check if filename is a FIFO file

   program demo_system_isfifo
   use M_system, only : system_isfifo
   implicit none
   integer                     :: i
   character(len=80),parameter :: names(*)=[ &
   ’/tmp            ’, &
   ’/tmp/NOTTHERE   ’, &
   ’/usr/local      ’, &
   ’.               ’, &
   ’fifo.test       ’, &
   ’PROBABLY_NOT    ’]
   do i=1,size(names)
      write(*,*)’ is ’,trim(names(i)),’ a fifo(named pipe)? ’, &
              & system_isfifo(names(i))
   enddo
   end program demo_system_isfifo


Nemo Release 3.1 system_isfifo (3m_system) March 07, 2025
Generated by manServer 1.08 from fc125cc7-f812-4c10-94b0-7c5d3d753ef7 using man macros.