Semaphore help

new topic     » topic index » view thread      » older message » newer message

I have tried to implement the code for semaphores, but it seems
not to be working. The main limitation is that fact that one of
the paramters of a function (semctl) has a union as its type.
How does one create/pass a union as a paramter to a C func?
(It would be nice to also have examples of using semaphores, but
I have the lpg (linux programmers guide) in addition to the
man pages, so if none can be provided, I can manage.)

(Also, I'll eventually try to write a parser, so you can
replace clunky routine calls with code that looks like this:
"shared integer count count = 1" instead of this:
"newvar("count") setvar("count", 1)", any ideas/code
on how this could be done?)

TIA,
jbrown



-- 
http://fastmail.fm: send your email first class

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu