|
> Not that I've done that much with the IFS, but the way I read the > manuals/Redbooks, if you want an exclusive lock, you need to add x'10' > (exclusive use) to openflags to get the behavior you want. Actually, that's not correct. O_EXCL means "exclusively create." You specify O_CREAT+O_EXCL when you want open() to return an error if there's already a file by that name. This way, you never accidentally change or overwrite an existing file. Instead, Aaron probably wants to use the O_SHARE_xxx flags on the open() call. They are described here: http://publib.boulder.ibm.com/iseries/v5r2/ic2924/info/apis/open.htm#HDROPNFLAG
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.