Home
last modified time | relevance | path

Searched refs:s_flock (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/compiler-rt/lib/profile/
DInstrProfilingUtil.c127 struct flock s_flock; in lprofLockFd() local
129 s_flock.l_whence = SEEK_SET; in lprofLockFd()
130 s_flock.l_start = 0; in lprofLockFd()
131 s_flock.l_len = 0; /* Until EOF. */ in lprofLockFd()
132 s_flock.l_pid = getpid(); in lprofLockFd()
133 s_flock.l_type = F_WRLCK; in lprofLockFd()
135 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofLockFd()
152 struct flock s_flock; in lprofUnlockFd() local
154 s_flock.l_whence = SEEK_SET; in lprofUnlockFd()
155 s_flock.l_start = 0; in lprofUnlockFd()
[all …]
DCMakeLists.txt32 struct flock s_flock;
34 s_flock.l_type = F_WRLCK;
35 fcntl(fd, F_SETLKW, &s_flock);
/external/compiler-rt/lib/profile/
DInstrProfilingUtil.c82 struct flock s_flock; in lprofOpenFileEx() local
84 s_flock.l_whence = SEEK_SET; in lprofOpenFileEx()
85 s_flock.l_start = 0; in lprofOpenFileEx()
86 s_flock.l_len = 0; /* Until EOF. */ in lprofOpenFileEx()
87 s_flock.l_pid = getpid(); in lprofOpenFileEx()
89 s_flock.l_type = F_WRLCK; in lprofOpenFileEx()
94 while (fcntl(fd, F_SETLKW, &s_flock) == -1) { in lprofOpenFileEx()
DCMakeLists.txt32 struct flock s_flock;
34 s_flock.l_type = F_WRLCK;
35 fcntl(fd, F_SETLKW, &s_flock);