comparison src/syscalls.cc @ 10840:89f4d7e294cc

Grammarcheck .cc files
author Rik <octave@nomad.inbox5.com>
date Sat, 31 Jul 2010 11:18:11 -0700
parents 3140cb7a05a1
children aca961a3f387
comparison
equal deleted inserted replaced
10839:65bc065bec95 10840:89f4d7e294cc
111 "-*- texinfo -*-\n\ 111 "-*- texinfo -*-\n\
112 @deftypefn {Built-in Function} {[@var{fid}, @var{msg}] =} dup2 (@var{old}, @var{new})\n\ 112 @deftypefn {Built-in Function} {[@var{fid}, @var{msg}] =} dup2 (@var{old}, @var{new})\n\
113 Duplicate a file descriptor.\n\ 113 Duplicate a file descriptor.\n\
114 \n\ 114 \n\
115 If successful, @var{fid} is greater than zero and contains the new file\n\ 115 If successful, @var{fid} is greater than zero and contains the new file\n\
116 ID. Otherwise, @var{fid} is negative and @var{msg} contains a\n\ 116 ID@. Otherwise, @var{fid} is negative and @var{msg} contains a\n\
117 system-dependent error message.\n\ 117 system-dependent error message.\n\
118 @end deftypefn") 118 @end deftypefn")
119 { 119 {
120 octave_value_list retval; 120 octave_value_list retval;
121 121
246 and output streams of the subprocess are returned in @var{in} and\n\ 246 and output streams of the subprocess are returned in @var{in} and\n\
247 @var{out}. If execution of the command is successful, @var{pid}\n\ 247 @var{out}. If execution of the command is successful, @var{pid}\n\
248 contains the process ID of the subprocess. Otherwise, @var{pid} is\n\ 248 contains the process ID of the subprocess. Otherwise, @var{pid} is\n\
249 @minus{}1.\n\ 249 @minus{}1.\n\
250 \n\ 250 \n\
251 For example,\n\ 251 For example:\n\
252 \n\ 252 \n\
253 @example\n\ 253 @example\n\
254 [in, out, pid] = popen2 (\"sort\", \"-r\");\n\ 254 [in, out, pid] = popen2 (\"sort\", \"-r\");\n\
255 fputs (in, \"these\\nare\\nsome\\nstrings\\n\");\n\ 255 fputs (in, \"these\\nare\\nsome\\nstrings\\n\");\n\
256 fclose (in);\n\ 256 fclose (in);\n\
874 return retval; 874 return retval;
875 } 875 }
876 876
877 DEFUNX ("stat", Fstat, args, , 877 DEFUNX ("stat", Fstat, args, ,
878 "-*- texinfo -*-\n\ 878 "-*- texinfo -*-\n\
879 @deftypefn {Built-in Function} {[@var{info}, @var{err}, @var{msg}] =} stat (@var{file})\n\ 879 @deftypefn {Built-in Function} {[@var{info}, @var{err}, @var{msg}] =} stat (@var{file})\n\
880 @deftypefnx {Built-in Function} {[@var{info}, @var{err}, @var{msg}] =} lstat (@var{file})\n\ 880 @deftypefnx {Built-in Function} {[@var{info}, @var{err}, @var{msg}] =} lstat (@var{file})\n\
881 Return a structure @var{s} containing the following information about\n\ 881 Return a structure @var{s} containing the following information about\n\
882 @var{file}.\n\ 882 @var{file}.\n\
883 \n\ 883 \n\
884 @table @code\n\ 884 @table @code\n\
939 \n\ 939 \n\
940 If @var{file} is a symbolic link, @code{stat} will return information\n\ 940 If @var{file} is a symbolic link, @code{stat} will return information\n\
941 about the actual file that is referenced by the link. Use @code{lstat}\n\ 941 about the actual file that is referenced by the link. Use @code{lstat}\n\
942 if you want information about the symbolic link itself.\n\ 942 if you want information about the symbolic link itself.\n\
943 \n\ 943 \n\
944 For example,\n\ 944 For example:\n\
945 \n\ 945 \n\
946 @example\n\ 946 @example\n\
947 [s, err, msg] = stat (\"/vmlinuz\")\n\ 947 [s, err, msg] = stat (\"/vmlinuz\")\n\
948 @result{} s =\n\ 948 @result{} s =\n\
949 @{\n\ 949 @{\n\
1174 } 1174 }
1175 1175
1176 DEFUN (uname, args, , 1176 DEFUN (uname, args, ,
1177 "-*- texinfo -*-\n\ 1177 "-*- texinfo -*-\n\
1178 @deftypefn {Built-in Function} {[@var{uts}, @var{err}, @var{msg}] =} uname ()\n\ 1178 @deftypefn {Built-in Function} {[@var{uts}, @var{err}, @var{msg}] =} uname ()\n\
1179 Return system information in the structure. For example,\n\ 1179 Return system information in the structure. For example:\n\
1180 \n\ 1180 \n\
1181 @example\n\ 1181 @example\n\
1182 @group\n\ 1182 @group\n\
1183 uname ()\n\ 1183 uname ()\n\
1184 @result{} @{\n\ 1184 @result{} @{\n\