LOG_DBG ((LOG_SYSDEP, 95, "monitor_stat: enter"));
monitor_stat (const char *path, struct stat *sb){  int fd, r, saved_errno;  LOG_DBG ((LOG_SYSDEP, 95, "monitor_stat: enter"));  fd = monitor_open (path, O_RDONLY, 0);  if (fd < 0)    {      errno = EACCES; /* A good guess? */      return -1;    }  r = fstat (fd, sb);  saved_errno = errno;  monitor_close (fd);  errno = saved_errno;  return r;}