LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-01-2005, 12:16 AM   #1
deviantish
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
Implementing semaphore operations as system calls


I have to design and implement a simple interface for initializing,acquiring and releasing semaphores and export these functions as system calls.

Please help me with where should i start from and what kind of issues i need to take care off.

any help at all will be appreciated.
thankyou
 
Old 11-01-2005, 09:24 PM   #2
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
"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

PS. If my intuition is wrong, I apologise.
 
Old 11-01-2005, 11:06 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 10.04, Crunchbang Statler
Posts: 3,325

Rep: Reputation: 168Reputation: 168
@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.
 
Old 11-01-2005, 11:53 PM   #4
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 46
Wim: you're probably right. I should probably add "00 23 * * * killall elinks" to my crontab
 
Old 11-15-2005, 03:55 AM   #5
deviantish
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanx Wim atleast now i got something to start with : )
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shell example using system calls djgerbavore Programming 7 03-06-2010 02:39 AM
System calls question alltime Programming 1 11-29-2005 08:31 PM
Some system calls Spooky Programming 1 11-24-2004 10:17 AM
over riding system calls djgerbavore Programming 11 08-20-2004 12:03 AM
Number of system calls vladmihaisima Linux - General 2 10-02-2002 02:36 PM


All times are GMT -5. The time now is 03:39 PM.

Main Menu
 
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
Open Source Consulting | Domain Registration