shmget, shmctl, shmat, shmdt codes

For a class, I need to write out the functions for:
int shmget(...)
int shmctl(...)
void *shmat(...)
int shmdt(...)

Does anyone know the code for these functions?  When I do searches I can find how to use them or how they work, but can't find the actual code.  I need to have this code in order to work on a project for my class that has a due date, so the question is urgent.  Thanks!
Who is Participating?
source code for these functions should be available from the linux source tree,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.