This is the mail archive of the libc-alpha@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: __stat: should it end up as UND in libc.so or not?


> >> 
> >
> >It must be a PPC bug in glibc since __stat is never defined for
> >libc.so. I didn't find any reference to __stat in libc, at least
> >not on x86.
> 
> Ah, found it, I think. This is another instance of glibc/stat compiled
> without optimization, I thought this was finally solved sometime ago, but
> as a last resort I looked closer and came up with the appended patch.
> I think this should solve it, build is running.
> 

This patch won't work since there is a conflict in libio.


H.J.
---
> Franz.
> 
> 
> Index: stat.h
> ===================================================================
> RCS file: /glibc/cvsfiles/libc/include/sys/stat.h,v
> retrieving revision 1.4
> diff -u -p -r1.4 stat.h
> --- stat.h      1998/08/09 17:38:44     1.4
> +++ stat.h      1998/12/11 14:50:28
> @@ -36,6 +36,7 @@ extern __inline__ int __mknod (__const c
>     We have to use macros but we cannot define them in the normal headers
>     since on user level we must use real functions.  */
>  #define stat(fname, buf) __xstat (_STAT_VER, fname, buf)
> +#define __stat(fname, buf) __xstat (_STAT_VER, fname, buf)
>  #define fstat(fd, buf) __fxstat (_STAT_VER, fd, buf)
>  #define __fstat(fd, buf)  __fxstat (_STAT_VER, fd, buf)
>  #define lstat(fname, buf)  __lxstat (_STAT_VER, fname, buf)
> 
> 


-- 
H.J. Lu (hjl@gnu.org)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]