This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


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

linux sys_call access


hai all
i have compiled and build eCos tools on linux synthetic target.
i have compiled and run my own file operations code on ecos. everything is ok.
If i wish to call system calls of linux in my file operations code
 [eg. sys_open() insted of fopen() ] i am getting the fallowing errors:
{ i have included all necessary header files in my code }


In file included from open.c:1,
                 from main.c:1:
/usr/include/linux/file.h:8: warning: `struct file' declared inside parameter list
/usr/include/linux/file.h:8: warning: its scope is only this definition or declaration,
/usr/include/linux/file.h:8: warning: which is probably not what you want.
/usr/include/linux/file.h:14: warning: `struct task_struct' declared inside parameter list
/usr/include/linux/file.h: In function `fcheck_task':
/usr/include/linux/file.h:16: `NULL' undeclared (first use in this function)
/usr/include/linux/file.h:16: (Each undeclared identifier is reported only once
/usr/include/linux/file.h:16: for each function it appears in.)
/usr/include/linux/file.h:18: dereferencing pointer to incomplete type
/usr/include/linux/file.h:18: dereferencing pointer to incomplete type
/usr/include/linux/file.h:19: dereferencing pointer to incomplete type
/usr/include/linux/file.h: In function `fcheck':
/usr/include/linux/file.h:28: `NULL' undeclared (first use in this function)
/usr/include/linux/file.h:30: `current' undeclared (first use in this function)
/usr/include/linux/file.h: In function `fget':
/usr/include/linux/file.h:40: dereferencing pointer to incomplete type
/usr/include/linux/file.h: In function `fd_install':
/usr/include/linux/file.h:49: `current' undeclared (first use in this function)
/usr/include/linux/timex.h: At top level:
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/mm.h:4,
                 from open.c:5,
                 from main.c:1:
/usr/include/linux/timex.h:159: field `time' has incomplete type
In file included from /usr/include/linux/sched.h:74,
                 from /usr/include/linux/mm.h:4,
                 from open.c:5,
                 from main.c:1:
/usr/include/asm/processor.h:278: warning: `struct task_struct' declared inside parameter list
/usr/include/asm/processor.h:282: warning: `struct task_struct' declared inside parameter list


if there is any feedback, i should be thankful
regards
naidu p
-- 

begin:vcard 
n:naidu;akkala
x-mozilla-html:TRUE
org:DANLAW Tech. India Ltd.;Engg.
adr:;;;;;;
version:2.1
email;internet:naidup@danlawinc.com
note;quoted-printable:Res:=0D=0A#8-3-225/A/7=0D=0AYadagiri Nagar=0D=0AYousufguda Check Post=0D=0AHyd.
x-mozilla-cpt:;352
fn:akkala naidu
end:vcard

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