Mercurial > hg > octave-nkf
diff src/syscalls.cc @ 10259:65b41bc71f09
use gnulib fcntl module
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Feb 2010 17:05:02 -0500 |
parents | 2fcc927a8757 |
children | c992efc0c2fa |
line wrap: on
line diff
--- a/src/syscalls.cc +++ b/src/syscalls.cc @@ -36,9 +36,7 @@ #include <sys/types.h> #include <unistd.h> -#ifdef HAVE_FCNTL_H #include <fcntl.h> -#endif #include "file-ops.h" #include "file-stat.h" @@ -390,7 +388,7 @@ */ -DEFUN (fcntl, args, , +DEFUNX ("fcntl", Ffcntl, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} fcntl (@var{fid}, @var{request}, @var{arg})\n\ Change the properties of the open file @var{fid}. The following values\n\ @@ -474,7 +472,7 @@ { std::string msg; - int status = octave_syscalls::fcntl (fid, req, arg, msg); + int status = octave_fcntl (fid, req, arg, msg); retval(0) = status; retval(1) = msg;