Hi,
Can I set up one file in order to have only one fd ?
I want to do that only one process can read it.
Thanks in advance
Can I set up one file in order to have only one fd ?
I want to do that only one process can read it.
Thanks in advance
: Can I set up one file in order to have only one fd ?
: I want to do that only one process can read it.
unlink (delete) the 'file' after openning it.
Cheers,
--
<A HREF="http://scitsc.wlv.ac.uk/~cs6171/hack/index.html">unix/net/hack page</A>
<A HREF="http://scitsc.wlv.ac.uk/~cs6171/home.html">Arny's Home Page</A>
: Can I set up one file in order to have only one fd ?
: I want to do that only one process can read it.
: Thanks in advance
man lockf
man fcntl (SETLK, GETLK, ...)
--
__________
/\ _______\
\ \ \____ / Posted by Zlatko Calusic
\ \/ / / URL: http://fly.cc.fer.hr/~maverick
\ / / ---------------------------------------------------------------
\/_/ Faculty of Electrical and Computer Engineering, Zagreb, Croatia
This would work only if you had either mandatory locking on the file
or a restricted set of programs which would respect the advisory locks.
N.b. Not all OSes support mandatory locks; Linux 1.2.x is one example.
--
Christopher Oliver Traverse Communications
Systems Coordinator 223 Grandview Pkwy, Suite 108
'tis an ill wind that blows no minds.
1. How ? One file <----> One file descriptor
Hi,
Can I set up one file in order to have only one fd ?
I want to do that only one process can read it.
Thanks in advance
2. Solaris PPP client connecting to NT Ras Server
3. <><><> MOUNTING EXTENDED PARTITION <><><>
4. adaptec SCSI aha1740 abort needed
5. Wanted: <><><> Unix Specialist <><><>
8. Kernel 2.6 keyboard driver changes from 2.4
9. ***>>> Summary: Questions on sending binary files by e-mail <<<***
10. file transfer question: sun<=>telnet<=>terminal server<=>modem ?
11. Does the new <File> </File> directive work?
13. Expected </Files> but saw </Files>??