Lines Matching defs:fd
69 ** fd -- the file descriptor of the file.
80 smdb_lockfile(fd, type)
81 int fd;
103 while ((i = fcntl(fd, action, &lfd)) < 0 && errno == EINTR)
125 int omode = fcntl(fd, F_GETFL, NULL);
128 syslog(LOG_ERR, "cannot lockf(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
129 filename, ext, fd, type, omode, euid);
136 while ((i = flock(fd, type)) < 0 && errno == EINTR)
145 int omode = fcntl(fd, F_GETFL, NULL);
148 syslog(LOG_ERR, "cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
149 filename, ext, fd, type, omode, euid);
379 int fd;
381 fd = database->smdb_lockfd(database);
382 if (fd < 0)
384 if (!smdb_lockfile(fd, type))
402 int fd;
404 fd = database->smdb_lockfd(database);
405 if (fd < 0)
407 if (!smdb_lockfile(fd, LOCK_UN))