flock() working mechanism..

C

Ckid

hi all the C users,

i must write a function similar(or exactly) same as flock() with
instead of simply giving fd, IPADDRESS:fd which resovles the IPADDRESS
and then acts on the fd over there for a project i'm doing.

if there are any specifications that define things like what should
flock() do and #define LOCK_SH ? and #define LOCK_EX ? please provide
some pointers.

thank you
 
P

Peter Nilsson

Ckid said:
hi all the C users,

i must write a function similar(or exactly) same as flock()
with instead of simply giving fd, IPADDRESS:fd which resovles
the IPADDRESS and then acts on the fd over there for a project
i'm doing.

This is beyond the scope of the C language standards which do
not define flock(). As such, your question is off topic in clc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top