[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: router gets wrong file name
On Fri, 12 Jun 1998 mea@nic.funet.fi wrote:
> This is readdir() problem.
>
> I have no longer SunOS 4.1.* machines in my repertoire, so I can't
> check how it did things but there is following passage in the begining
> of the functions.c (and mailq.c, too):
>
> #ifdef HAVE_DIRENT_H
> # include <dirent.h>
> #else /* not HAVE_DIRENT_H */
> # define dirent direct
> # ifdef HAVE_SYS_NDIR_H
> # include <sys/ndir.h>
> # endif /* HAVE_SYS_NDIR_H */
> # ifdef HAVE_SYS_DIR_H
> # include <sys/dir.h>
> # endif /* HAVE_SYS_DIR_H */
> # ifdef HAVE_NDIR_H
> # include <ndir.h>
> # endif /* HAVE_NDIR_H */
> #endif /* HAVE_DIRENT_H */
>
> Now, which of these files you have ?
> What the "man readdir" tell to use ?
> (Compare SunOS 4.1.* and Solaris 2.5.1)
>
Thanks! The problem is this. We have our own getpwent library so that
we have an alternate passwd database in addition to /etc/passwd. That
library was developed on SunOS and uses flock(). Solaris has flock
in /usr/ucblib/libucb.a. But that library also has a compatibility
version of readdir() that I think the compiler is using instead of
the one in libc. I'll try either getting an flock or removing it
from our getpwent.
Thanks again.
Peter
_____________________________________________________
Peter Ip, PhD
Computing and Network Services, University of Toronto
email: peter.ip@utoronto.ca