File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1820,6 +1820,14 @@ virFileLength(const char *path, int fd)
18201820}
18211821
18221822
1823+ bool
1824+ virFileIsNamedPipe (const char * path )
1825+ {
1826+ struct stat s ;
1827+ return (stat (path , & s ) == 0 ) && S_ISFIFO (s .st_mode );
1828+ }
1829+
1830+
18231831bool
18241832virFileIsDir (const char * path )
18251833{
Original file line number Diff line number Diff line change @@ -194,6 +194,7 @@ void virFileActivateDirOverrideForLib(void);
194194
195195off_t virFileLength (const char * path , int fd ) ATTRIBUTE_NONNULL (1 );
196196bool virFileIsDir (const char * file ) ATTRIBUTE_NONNULL (1 );
197+ bool virFileIsNamedPipe (const char * file ) ATTRIBUTE_NONNULL (1 );
197198bool virFileExists (const char * file ) ATTRIBUTE_NONNULL (1 ) G_GNUC_NO_INLINE ;
198199bool virFileIsExecutable (const char * file ) ATTRIBUTE_NONNULL (1 );
199200bool virFileIsRegular (const char * file ) ATTRIBUTE_NONNULL (1 );
You can’t perform that action at this time.
0 commit comments