Bug#182367: libc6-dev: inconsistency of sys/sem.h and linux/sem.h
On Tue, Feb 25, 2003 at 06:29:10PM +0100, MeDon wrote:
> Daniel Jacobowitz wrote:
> >On Tue, Feb 25, 2003 at 11:04:03AM +0100, MeDon wrote:
> >
> >>Hi,
> >>yes it's on i386 architecture. Both program I mentioned use <sys/sem.h>.
> >>I don't know much about it, sorry. I'm sending you a semtool.c and
> >>semstat.c from "LINUX Programmer's Guide". More on MPICH problem could
> >>be seen on http://www-unix.mcs.anl.gov/mpi/mpich/buglist-tbl.html.
> >>
> >>Regards
> >> Ondrej Medek
> >
> >
> >They don't even compile; and I know that it's not a bug that
> ><sys/sem.h> doesn't provide union semun - it's a bizarre quirk of the
> >standards.
> >
> >
>
> I think you're right. Red Hat 7.2. uses exactly the same header files.
> But what do you think about the sentence (MPICH) "One user found that
> the include file /usr/include/linux/sem.h (used by the kernel) and
> /usr/include/sys/sem.h and /usr/include/sys/ipc.h were not consistent,
> causing programs using semaphores to fail. If you have this problem, you
> need to correct your installation of Linux."
They are different interfaces, they aren't necessarily the same. One
is the glibc interface and the other is the syscall interface.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
Reply to: