Subj : CVS commit src/sbbs3/nope To : Digital Man From : Deuce Date : Sun Dec 26 2004 10:23 pm Re: CVS commit src/sbbs3/nope By: Digital Man to Deuce on Sun Dec 26 2004 02:58:00 > Well SMB/CIFS has standardized, cross-platform, file and record locking, whi > should (obviously) be supported by all smb/cifs clients and servers (e.g. > smbfs), regardless of the OS on which they're hosted. Right... but for a *nix system to map calls to say lockf() to SMB/CIFS calls, it's just not possible because the lock semantics are different. If for example, you want an exclusive record lock in *nix, you MUST open with write intent plus some other semantic weirdness... what I'm suggesting is that although SMB/CIFS supports specific file/record locking, *nix itself does not, so you'd either need to use some platform-specific SMB/CIFS library in the program or handle the SMB/CIFS stuff yourself to get correct bahaviour. Possibly the call deadlock response is caused by the fact that our lock() implementation uses both flock() and fcntl() locks. Not sure, I'd have to experiment (after the holidays unfortunately) --- þ Synchronet þ ``Penguins make tasty snacks'' .