system_issock(3f) - [M_system:QUERY_FILE] checks if argument is a socket (LICENSE:PD)
Synopsis
Description
Options
Return Value
Errors
See Also
Examples
elemental impure logical function system_issock(pathname)
character(len=*),intent(in) :: pathname logical :: system_issock
The issock(3f) function checks if path is a path to a socket
path a character string representing a socket pathname. Trailing spaces are ignored.
The system_issock() function should always be successful and no return value is reserved to indicate an error.
No errors are defined.
system_isreg(3f), system_stat(3f), system_isdir(3f), system_perm(3f)
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
Nemo Release 3.1 | system_issock (3m_system) | March 07, 2025 |