mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-12 18:36:10 +08:00
* syscall.c (cb_syscall) <case CB_SYS_lstat>: New case.
* callback.c (os_lstat): New function.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user