search for: f_tlock

Displaying 3 results from an estimated 3 matches for "f_tlock".

2011 Jun 28
0
[nut-commits] svn commit r3081 - branches/apcsmart-dev/drivers
...#ifdef HAVE_UU_LOCK > ret = uu_lock(xbasename(device_path)); > -#elif defined(HAVE_FLOCK) > + #elif defined(HAVE_FLOCK) > ret = flock(fd, LOCK_EX | LOCK_NB); > -#elif defined(HAVE_LOCKF) > + #elif defined(HAVE_LOCKF) > lseek(fd, 0L, SEEK_SET); > ret = lockf(fd, F_TLOCK, 0L); > -#endif > + #endif > if (ret < 0) > upslog_with_errno(LOG_ERR, "apc_ser_try: couldn't lock the port > (%s)", device_path); > } Trivial - preprocessor directives are *not* C-code and should start in column 1 (and not inlined with the code) fo...
2006 Oct 17
0
[PATCH] misc compile fixes for tools on Solaris
...lt_colors(); +#endif init_pair(1, -1, COLOR_YELLOW); do { diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c --- a/tools/xenstore/xenstored_core.c +++ b/tools/xenstore/xenstored_core.c @@ -1688,7 +1688,7 @@ static void write_pidfile(const char *pi if (lockf(fd, F_TLOCK, 0) == -1) exit(0); - len = sprintf(buf, "%d\n", getpid()); + len = sprintf(buf, "%ld\n", (long)getpid()); if (write(fd, buf, len) != len) barf_perror("Writing pid file %s", pidfile); } @@ -1901,7 +1901,7 @@ int main(int argc, char *argv[]) restore_existin...
2006 Apr 25
2
NFS
I've finally managed to run Dovecot without errors in two computers with maildir and indexes stored in NFS. I added a page to wiki about this: http://wiki.dovecot.org/NFS Suggestions how to keep attribute cache enabled but to allow Dovecot to specifically request not to use a cached value (when it's important) would be welcome. -------------- next part -------------- A non-text