Re: C Preprocessor: Expected Declaration Specifiers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ryan Slominski wrote:
The code in question (line 34 of msg_bmk) is a preprocessor macro
which is supposed to expand to a user stub for a new system call.
Here is the line:

_syscall2( int, msgbmk, int, msqid, int, MSG_TRIALS )

The file msg_bmk.h includes the header file <linux/unistd.h> which
contains the macro definition.

Any feedback would be great.

It's difficult to tell what the real problem is when looking
at macros.  You need to look at the code after macros have
been expanded.

Execute "gcc msg_client.c -E -dD -o msg_client.i" and take a
look at what the _syscall2 macro generates.

--
Michael Eager	 eager@xxxxxxxxxxxx
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux