changeset 33238:ddd3da3f1a70

Return flags from fcntl (bug #65504) * syscalls.cc (Ffcntl): For non-error conditions, return output from fcntl() syscall which might be flags.
author Rik <rik@octave.org>
date Fri, 22 Mar 2024 17:31:33 -0700
parents c0ee9e8e3117
children 775dde0cb3e5
files libinterp/corefcn/syscalls.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/syscalls.cc	Fri Mar 22 19:41:48 2024 +0100
+++ b/libinterp/corefcn/syscalls.cc	Fri Mar 22 17:31:33 2024 -0700
@@ -485,7 +485,7 @@
       if (status < 0)
         retval = ovl (-1.0, msg);
       else
-        retval = ovl (0.0, "");
+        retval = ovl (status, "");
     }
 
   return retval;