Last active
May 6, 2020 18:09
-
-
Save deeev-sb/d7b0dc592b923438bdf091ff57231f3d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fcntl.h> | |
int fcntl (int fildes, int cmd, struct flock *lock); | |
// fcntl은 파일의 일부분을 exclusive lock 또는 shared lock의 형태로 lock을 걸어서 | |
// 파일에 대한 공유를 설정함으로써 파일의 동기화를 맞춰주는 system call이며, | |
// 파라미터로는 file descriptor, command, flock라고 하는 data structure 주소값을 넣음 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment