LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 04-29-2007, 11:52 PM   #1
ahm_irf
Member
 
Registered: Feb 2007
Posts: 37

Rep: Reputation: 15
"expected specifier-qualifier-list" ERROR while adding a new system call


Hi,

I have tried to add a new system call. I am using Fedora linux 6 ..Kernel 2.6.18.2
I followed the document http://nd.edu/~ablaich/system_call_i...n_a_blaich.txt to add a new system call.

During compilation I got the following error. I have place my system call code in ~/ipc/ which is also as follows. Does any body has idea about this error.
___________________________________________________________
In file included from include/linux/shm.h:4,
from ipc/mycall.c:2:
include/linux/ipc.h:59: error: expected specifier-qualifier-list before ‘spinlock_t’
ipc/mycall.c:3:21: error: inttypes.h: No such file or directory
make[1]: *** [ipc/mycall.o] Error 1
make: *** [ipc] Error 2
__________________________________________________________________

/*System call code*/

#include<linux/linkage.h>
#include<linux/shm.h>
#include<linux/types.h>


asmlinkage long sys_mycall(int i)
{
return i+10;
}_____________________________________________
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Dynamic MMap ran out of room" error when adding new apt source list hasanito Debian 25 05-27-2013 04:56 AM
list file system linux supports "please give the command or system call" varun_shrivastava Linux - General 4 01-09-2007 08:28 AM
Java "<identifier> expected" error. nro Programming 2 09-01-2004 01:20 AM
"Function not implemented" error in call to "sem_open()" Krishnendu8 Linux - Newbie 1 06-07-2003 03:52 AM
"Function not imlemented" error in call to "sem_open()" Krishnendu8 Linux - Networking 0 06-07-2003 03:19 AM


All times are GMT -5. The time now is 04:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration