Mercurial > hg > octave-lyh
changeset 12292:76617b82cf4c release-3-4-x
Add S_ISSOCK function to documentation.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 29 Jan 2011 21:38:33 -0800 |
parents | b6840c49fbdb |
children | d6c70e64882c |
files | doc/ChangeLog doc/interpreter/system.txi src/ChangeLog src/syscalls.cc |
diffstat | 4 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-01-29 Rik <octave@nomad.inbox5.com> + + * interpreter/system.txi: Add S_ISSOCK function to documentation. + 2011-01-29 Rik <octave@nomad.inbox5.com> * interpreter/system.txi: Add S_ISBLK and related functions to
--- a/doc/interpreter/system.txi +++ b/doc/interpreter/system.txi @@ -191,6 +191,8 @@ @DOCSTRING(S_ISREG) +@DOCSTRING(S_ISSOCK) + @DOCSTRING(fileattrib) @DOCSTRING(isdir)
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-01-29 Rik <octave@nomad.inbox5.com> + + * syscalls.cc (S_ISSOCK, S_ISCHR): Improve docstrings + 2011-01-29 Rik <octave@nomad.inbox5.com> * dirfns.cc (readdir, filesep, pathsep): Improve docstrings
--- a/src/syscalls.cc +++ b/src/syscalls.cc @@ -1058,7 +1058,7 @@ DEFUNX ("S_ISCHR", FS_ISCHR, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} S_ISCHR (@var{mode})\n\ -Return true if @var{mode} corresponds to a character devicey. The value\n\ +Return true if @var{mode} corresponds to a character device. The value\n\ of @var{mode} is assumed to be returned from a call to @code{stat}.\n\ @seealso{stat, lstat}\n\ @end deftypefn") @@ -1158,6 +1158,8 @@ DEFUNX ("S_ISSOCK", FS_ISSOCK, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} S_ISSOCK (@var{mode})\n\ +Return true if @var{mode} corresponds to a socket. The value\n\ +of @var{mode} is assumed to be returned from a call to @code{stat}.\n\ @seealso{stat, lstat}\n\ @end deftypefn") {