1#include "ruby/config.h"
5#elif defined HAVE_FCNTL && defined HAVE_FCNTL_H
28flock(
int fd,
int operation)
34 lock.l_type = F_RDLCK;
37 lock.l_type = F_WRLCK;
40 lock.l_type = F_UNLCK;
47 lock.l_start = lock.l_len = 0
L;
49 return fcntl(fd, (operation &
LOCK_NB) ? F_SETLK : F_SETLKW, &lock);
52#elif defined(HAVE_LOCKF)
93flock(
int fd,
int operation)
int flock(int fd, int operation)
void rb_notimplement(void)