diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-12-15 20:14:02 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-12-15 20:14:19 +0100 |
commit | 1cd4fffcde4edd4853e039da9a42e0972d851a51 (patch) | |
tree | 82c1f750fd5acf88414b85a421c7b7212d9efcfc /lib/flock.c | |
parent | 20ccae8dbb8d92a6a32e0275c517f70961c6b833 (diff) | |
download | guile-1cd4fffcde4edd4853e039da9a42e0972d851a51.tar.gz |
Use Gnulib's `sys_stat' module; update Gnulib.
* .x-sc_prohibit_S_IS_definition: New file.
* m4/gnulib-cache.m4: Add `sys_stat'.
* libguile/filesys.c: Remove `S_IS*' macro definitions for Ultrix and
MinGW.
Diffstat (limited to 'lib/flock.c')
-rw-r--r-- | lib/flock.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/lib/flock.c b/lib/flock.c index 2993432de..f583245f6 100644 --- a/lib/flock.c +++ b/lib/flock.c @@ -130,27 +130,27 @@ flock (int fd, int operation) { DWORD err = GetLastError (); switch (err) - { - /* This means someone else is holding a lock. */ - case ERROR_LOCK_VIOLATION: - errno = EAGAIN; - break; - - /* Out of memory. */ - case ERROR_NOT_ENOUGH_MEMORY: - errno = ENOMEM; - break; - - case ERROR_BAD_COMMAND: - errno = EINVAL; - break; - - /* Unlikely to be other errors, but at least don't lose the - * error code. - */ - default: - errno = err; - } + { + /* This means someone else is holding a lock. */ + case ERROR_LOCK_VIOLATION: + errno = EAGAIN; + break; + + /* Out of memory. */ + case ERROR_NOT_ENOUGH_MEMORY: + errno = ENOMEM; + break; + + case ERROR_BAD_COMMAND: + errno = EINVAL; + break; + + /* Unlikely to be other errors, but at least don't lose the + * error code. + */ + default: + errno = err; + } return -1; } |