+
+ yaz_log(log_level, "fcntl begin type=%d fd=%d", type, fd);
+ r = fcntl(fd, cmd, &area);
+ if (r == -1)
+ yaz_log(YLOG_WARN|YLOG_ERRNO, "fcntl FAIL type=%d fd=%d", type, fd);
+ else
+ yaz_log(log_level, "fcntl type=%d OK fd=%d", type, fd);
+
+ return r;