Which I guess in their style would be (and I suspect this is probably what you tried):
/* This function checks whether current file system is an AutoFs
* HRFS_entry must be valid prior to calling this function
* return 1 if AutoFs, 0 otherwise
*/
int
Check_HR_FileSys_AutoFs(void)
{
#if HAVE_GETFSSTAT
if (HRFS_entry->HRFS_type != NULL &&
#if defined(MNTTYPE_AUTOFS) !strcmp(HRFS_entry->HRFS_type, MNTTYPE_AUTOFS)
#else !strcmp(HRFS_entry->HRFS_type, "autofs")
#endif
)
return 1; /* AUTOFS */
#endif /* HAVE_GETFSSTAT */
return 0; /* no AUTOFS */
}
Which I guess in their style would be (and I suspect this is probably what you tried): FileSys_ AutoFs( void) >HRFS_type != NULL && MNTTYPE_ AUTOFS)
!strcmp( HRFS_entry- >HRFS_type, MNTTYPE_AUTOFS)
!strcmp( HRFS_entry- >HRFS_type, "autofs")
/* This function checks whether current file system is an AutoFs
* HRFS_entry must be valid prior to calling this function
* return 1 if AutoFs, 0 otherwise
*/
int
Check_HR_
{
#if HAVE_GETFSSTAT
if (HRFS_entry-
#if defined(
#else
#endif
)
return 1; /* AUTOFS */
#endif /* HAVE_GETFSSTAT */
return 0; /* no AUTOFS */
}