Lines Matching refs:fcntl
35 sed '1,/^EOF/d' < $here/$0 > fcntl.c
36 mycc -o fcntl -Wall -Wextra -O0 -g fcntl.c || exit 1
37 rm -f fcntl.c
41 /tmp/fcntl
44 rm -f /tmp/fcntl
95 while (fcntl(fd, F_SETLK, &fl) < 0) {
125 if (fcntl(fd, F_SETLK, &fl) < 0)
139 if ((flags = fcntl(fd, F_GETFL)) == -1)
142 if ((flags = fcntl(fd, F_SETFL, flags)) == -1)
163 if ((flags = fcntl(fd, F_GETFL)) == -1)
166 if ((flags = fcntl(fd, F_SETFL, flags)) == -1)
195 if ((flags = fcntl(fd, F_GETFL)) == -1)
198 if ((flags = fcntl(fd, F_SETFL, flags)) == -1)