commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r819627 - in /commons/sandbox/runtime/trunk/src/main/native/os: unix/fsysio.c win32/fsysio.c
Date Mon, 28 Sep 2009 16:08:55 GMT
Author: mturk
Date: Mon Sep 28 16:08:55 2009
New Revision: 819627

URL: http://svn.apache.org/viewvc?rev=819627&view=rev
Log:
Set blocking moode

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c
    commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c?rev=819627&r1=819626&r2=819627&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/unix/fsysio.c Mon Sep 28 16:08:55 2009
@@ -164,12 +164,16 @@
     fp = ACR_CALLOC(acr_file_t, 1);
     if (!fp) {
         rc = ACR_ENOMEM;
-        goto finally;;
+        goto finally;
     }
     fp->fd     = fd;
     fp->name   = ACR_StrdupA(_E, THROW_NMARK, fname);
     fp->flags  = flags;
     fp->type   = ACR_FT_REG; /* Presume it's a regular file */
+    if (flags & ACR_FOPEN_NONBLOCK)
+        fp->blocking = BLK_OFF;
+    else
+        fp->blocking = BLK_ON;
     if (flags & ACR_FOPEN_NOCLEANUP)
         fo = acr_ioh_open(fp, ACR_DT_FILE, 0, NULL);
     else

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c?rev=819627&r1=819626&r2=819627&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/fsysio.c Mon Sep 28 16:08:55 2009
@@ -153,12 +153,16 @@
     fp = ACR_CALLOC(acr_file_t, 1);
     if (!fp) {
         rc = ACR_ENOMEM;
-        goto finally;;
+        goto finally;
     }
     fp->fd    = fh;
     fp->name  = ACR_StrdupW(_E, THROW_NMARK, fname);
     fp->flags = flags;
     fp->type  = ACR_FT_REG; /* Presume it's a regular file */
+    if (flags & ACR_FOPEN_NONBLOCK)
+        fp->blocking = BLK_OFF;
+    else
+        fp->blocking = BLK_ON;
     if (flags & ACR_FOPEN_NOCLEANUP)
         fo = acr_ioh_open(fp, ACR_DT_FILE, 0, NULL);
     else



Mime
View raw message