浏览代码

Oops. Fix up stat. Again.

Eric Andersen 24 年之前
父节点
当前提交
a34c58f20f
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      libc/sysdeps/linux/common/Makefile
  2. 1 0
      libc/sysdeps/linux/common/statfix.h

+ 1 - 1
libc/sysdeps/linux/common/Makefile

@@ -29,7 +29,7 @@ LIBC=$(TOPDIR)libc.a
 CSRC =closedir.o dirfd.o getdnnm.o gethstnm.o getpagesize.o \
 	isatty.o kernel_version.o mkfifo.o opendir.o readdir.o rewinddir.o \
 	seekdir.o setegid.o seteuid.o setpgrp.o statfix.o tcgetatr.o tell.o \
-	telldir.o wait.o wait3.o _xmknod.o
+	telldir.o wait.o wait3.o _xmknod.o _fxstat.o _lxstat.o _xstat.o
 COBJS=$(patsubst %.c,%.o, $(CSRC))
 
 

+ 1 - 0
libc/sysdeps/linux/common/statfix.h

@@ -14,6 +14,7 @@
 #undef stat
 
 extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat);
+extern int _fxstat(int version, int fd, struct libc_stat * statbuf);
 
 #endif