Skip to contentSkip to conversation

BSD sockets with sys_socketcall

DISCUSSION Prasad Koya 2 participants 2 messages Jun 27, 2001

lore
Share & tools
lore
#0 lore raw

How does socket(), bind() and other BSD socket API calls in user applications are handled by system socketcall(). Does the compiler (say gcc) substitute socket() in user app with socketcall(SYS_SOCKET,..)?

Also, why don't I see _syscallN() macro for socketcall or any other BSD socket calls?

I'd greatly appreciate your help.

Please CC to [email protected] as I don't subscribe to the mailing list.

Thanks

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

#1 lore raw
Quoted 4 lines · Prasad Koya

How does socket(), bind() and other BSD socket API calls in user applications are handled by system socketcall(). Does the compiler (say gcc) substitute socket() in user app with socketcall(SYS_SOCKET,..)?

You are using libc wrappers which translate the BSD API to Linux kernel ABI.

Quoted 1 line

Thanks

/Matti Aarnio