This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Re: mount()/umount() prototypes
- From: Thomas Koeller <thomas dot koeller at baslerweb dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Fri, 5 Sep 2003 15:33:45 +0200
- Subject: Re: [ECOS] Re: mount()/umount() prototypes
- Organization: Basler AG
- References: <3F588622.1030903@elatec.si>
Savin Zlobec wrote:
> >Hi,
> >
> >there appears to be no header file that implements prototypes for mount()
> > and umount(). When I build for the linux synthetic target and have
> > '#include <sys/mount.h>' in my program, everything works because
> > '-nostdinc' is not among the compiler switches by default. However, if I
> > compile for my real target then there is no such header, and after I
> > remove the '#include', I get warnings about implicit declarations.
>
> Look in 'io/fileio/current/include/fileio.h'
>
> savin
I see. Because there are 'standard' functions, I expected them to be in some
standard header. Btw., there are source files that include sys/mount.h, as
demonstrated below:
bash-2.05b$ find /pub/ecos/cvs/packages/ -type f -name "*.c" -exec grep -l '#include <sys/mount.h>' '{}' \;
/pub/ecos/cvs/packages/net/tcpip/current/src/sys/kern/sys_generic.c
/pub/ecos/cvs/packages/net/tcpip/current/src/sys/kern/uipc_syscalls.c
tk
--------------------------------------------------
Thomas Koeller, Software Development
Basler Vision Technologies
An der Strusbek 60-62
22926 Ahrensburg
Germany
Tel +49 (4102) 463-162
Fax +49 (4102) 463-239
mailto:thomas.koeller@baslerweb.com
http://www.baslerweb.com
==============================
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss