ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
"I have to":
Something you are only doing because you gain some external benefit from it. This is typically said by people who would rather have other people do it for them, instead of learning from doing their own homework.
Don't help, folks.
I'd assume you have a TA you could ask instead.
-- Jonas Kölker, Devil's Dictionary Pastiche no. 1
@deviantish
So you're looking for something with semaphores. Look in /usr/include. I typed ls /usr/include/sem, pressed <tab> for autocompletion and it came up with the file semaphore.h.
Sounds like a good starting point to me. Open that file and find the function prototypes.
Once you know the function names, you can use man-pages and internet to get more information and examples.
@jonaskoelker
deviantish asks where to start, not to give the solution.
Sounds to me that he/she is willing to do some research but does not know where to start.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.