/[emacs]/emacs/src/xrdb.c
ViewVC logotype

Diff of /emacs/src/xrdb.c

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

revision 1.47 by gerd, Thu Aug 16 12:55:19 2001 UTC revision 1.48 by rms, Sun Mar 3 20:09:27 2002 UTC
# Line 323  gethomedir () Line 323  gethomedir ()
323    
324    
325  static int  static int
326  file_p (path)  file_p (filename)
327       char *path;       char *filename;
328  {  {
329    struct stat status;    struct stat status;
330    
331    return (access (path, 4) == 0                 /* exists and is readable */    return (access (filename, 4) == 0             /* exists and is readable */
332            && stat (path, &status) == 0          /* get the status */            && stat (filename, &status) == 0      /* get the status */
333            && (S_ISDIR (status.st_mode)) == 0);  /* not a directory */            && (S_ISDIR (status.st_mode)) == 0);  /* not a directory */
334  }  }
335    

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

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