[119846] trunk/base/src/pextlib1.0/flock.c
cal at macports.org
cal at macports.org
Wed May 7 16:56:53 PDT 2014
Revision: 119846
https://trac.macports.org/changeset/119846
Author: cal at macports.org
Date: 2014-05-07 16:56:53 -0700 (Wed, 07 May 2014)
Log Message:
-----------
base: pextlib1.0/flock.c: Remove duplicate and unused code.
Modified Paths:
--------------
trunk/base/src/pextlib1.0/flock.c
Modified: trunk/base/src/pextlib1.0/flock.c
===================================================================
--- trunk/base/src/pextlib1.0/flock.c 2014-05-07 23:55:12 UTC (rev 119845)
+++ trunk/base/src/pextlib1.0/flock.c 2014-05-07 23:56:53 UTC (rev 119846)
@@ -182,20 +182,6 @@
Tcl_SetResult(interp, (void *) "Seek error", TCL_STATIC);
return TCL_ERROR;
}
-
- if (ret == -1) {
- errnoval = errno;
- if ((oshared || oexclusive)) {
- /* map the errno val to what we would expect for flock */
- if (onoblock && errnoval == EAGAIN) {
- /* on some systems, EAGAIN=EWOULDBLOCK, but lets be safe */
- errnoval = EWOULDBLOCK;
- }
- else if (errnoval == EINVAL) {
- errnoval = EOPNOTSUPP;
- }
- }
- }
#else
#error no available locking implementation
#endif /* HAVE_LOCKF */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140507/ec5bf412/attachment-0001.html>
More information about the macports-changes
mailing list