home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!kimba.catt.citri.edu.au!jck
- From: jck@kimba.catt.citri.edu.au (Justin Kibell)
- Subject: lockf problem on SparcStation 2
- Message-ID: <1992Nov10.014453.1427@mel.dit.csiro.au>
- Keywords: lockf
- Sender: jck@kimba (Justin Kibell)
- Organization: CATT Centre at CITRI, Melbourne, Australia
- Date: Tue, 10 Nov 92 01:44:53 GMT
- Lines: 16
-
- I am currently trying to get file locking for a program I am working on and
- it isn't working to well.
-
- My question is, can you use fd = fileno(fp) where fp is (FILE *fp) and then
- pass the result to lockf(fd, F_LOCK, 0L)? The result I get is :-
-
- lockf: Bad file number
-
- I've checked permissions on files etc and it just ain't working. :-(
-
- SparcStation 2 - OS 4.1.2
-
- Justin Kibell: SDL 88 GR Case Tool Development Project - XMelba Version 0.13
- Centre for Advanced Technology in Telecommunications
- Collaborative Information Technology Research Institute
- jck@jaguar.catt.citri.edu.au Phone: +61 3 282 2456
-