/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.32 by hauk, Wed Sep 11 20:45:07 2002 UTC revision 1.33 by hauk, Thu Sep 12 16:46:07 2002 UTC
# Line 634  int is_process_running(Process_T p) { Line 634  int is_process_running(Process_T p) {
634    
635    
636  /**  /**
  * @return TRUE if file exist and is a regular file, otherwise FALSE  
  */  
 int isreg_file(char *file) {  
     
   struct stat buf;  
     
   return (stat(file, &buf) == 0 && S_ISREG(buf.st_mode));  
     
 }  
   
   
 /**  
  * @return TRUE if file exist  
  */  
 int exist_file(char *file) {  
     
   struct stat buf;  
     
   return (stat(file, &buf) == 0);  
     
 }  
   
   
 /**  
637   * Returns a (RFC1123) Date string. If the given date   * Returns a (RFC1123) Date string. If the given date
638   * is NULL compute the date now.   * is NULL compute the date now.
639   * @param date   * @param date

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26