[UP]


Manual Reference Pages  - system_issock (3)

NAME

system_issock(3f) - [M_system] checks if argument is a socket (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Return Value
Errors
See Also
Example

SYNOPSIS

elemental impure logical function system_issock(pathname)

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

DESCRIPTION

The issock(3f) function checks if path is a path to a socket

OPTIONS

path a character string representing a socket pathname. Trailing spaces are ignored.

RETURN VALUE

The system_issock() 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)

EXAMPLE

check if filename is a socket

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


system_issock (3) July 05, 2020
Generated by manServer 1.08 from 204c2f70-cfb3-41ac-b2c5-c03e6e2c056e using man macros.