search for: fnctlres

Displaying 1 result from an estimated 1 matches for "fnctlres".

Did you mean: factores
2006 May 22
1
Samba client file locking
...printf("File opened.\n"); // try to lock the entire file lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 0; // request a write lock int fnctlres = fcntl(fd, F_SETLK, &lock); // check if we got granted the lock if ( fnctlres == -1) { printf("Could not set write lock.\n"); } else { prin...