* syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
[deliverable/binutils-gdb.git] / sim / common / callback.c
index d2a92d084ca2150f38cf1591ccaefaa12fb3ce4f..7ba0c06fb0656fde8967e735ca3485762163e6c2 100644 (file)
@@ -407,6 +407,16 @@ os_fstat (p, fd, buf)
   return wrap (p, fstat (fdmap (p, fd), buf));
 }
 
+static int
+os_lstat (p, file, buf)
+     host_callback *p;
+     const char *file;
+     struct stat *buf;
+{
+  /* NOTE: hpn/2004-12-12: Same issue here as with os_fstat.  */
+  return wrap (p, lstat (file, buf));
+}
+
 static int 
 os_ftruncate (p, fd, len)
      host_callback *p;
@@ -589,6 +599,7 @@ host_callback default_callback =
 
   os_stat,
   os_fstat,
+  os_lstat,
 
   os_ftruncate,
   os_truncate,
@@ -816,7 +827,7 @@ cb_host_to_target_stat (cb, hs, ts)
 
       if (hs != NULL)
        {
-         if (1)
+         if (0)
            ;
          /* Defined here to avoid emacs indigestion on a lone "else".  */
 #undef ST_x
This page took 0.023642 seconds and 4 git commands to generate.