Mercurial > octave
annotate doc/interpreter/system.txi @ 20923:58263bea2fdf
Unified "sleep" functions to "octave_sleep" in C++ and "pause" in Octave.
* doc/interpreter/system.txi: removed sleep and usleep from doc.
* libinterp/corefcn/sysdep.cc (pause): updated docstring.
* libinterp/corefcn/sysdep.cc (sleep): moved to deprecate sleep.m.
* libinterp/corefcn/sysdep.cc (usleep): moved to deprecate usleep.m.
* scripts/deprecated/sleep.m: moved here from sysdep.cc.
* scripts/deprecated/usleep.m: moved here from sysdep.cc.
* scripts/deprecated/module.mk: add sleep.m and usleep.m to build system.
* NEWS: deprecation news for sleep and usleep.
* libinterp/corefcn/data.cc: examples updated.
* libinterp/corefcn/syscalls.cc: examples updated.
* scripts/audio/@audioplayer/audioplayer.m: examples updated.
* scripts/audio/@audiorecorder/audiorecorder.m: examples updated.
* scripts/plot/util/ginput.m: examples updated.
* scripts/plot/util/private/__gnuplot_get_var__.m: use pause.
* scripts/plot/util/private/__gnuplot_ginput__.m: use pause.
* libinterp/corefcn/utils.cc (octave_sleep): Unified "sleep" functions here.
* libinterp/corefcn/utils.h: removed header cutils.h.
* libinterp/corefcn/graphics.cc (drawnow): use octave_sleep.
* libinterp/corefcn/graphics.cc (waitfor): use octave_sleep.
* libinterp/corefcn/toplev.cc (clean_up_and_exit): use octave_sleep.
* libinterp/corefcn/cutils.c: removed no longer needed code.
* libinterp/corefcn/cutils.h: removed no longer needed header.
* libinterp/corefcn/matherr.c: removed orphaned code.
* libinterp/corefcn/module.mk: removed cutils.h, cutils.c, and matherr.c from
build system.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Thu, 17 Dec 2015 16:04:13 +0100 |
parents | 69489c064cb7 |
children | 1da428cbf401 |
rev | line source |
---|---|
19697
4197fc428c7d
maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents:
19596
diff
changeset
|
1 @c Copyright (C) 1996-2015 John W. Eaton |
7018 | 2 @c |
3 @c This file is part of Octave. | |
4 @c | |
5 @c Octave is free software; you can redistribute it and/or modify it | |
6 @c under the terms of the GNU General Public License as published by the | |
7 @c Free Software Foundation; either version 3 of the License, or (at | |
8 @c your option) any later version. | |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
9 @c |
7018 | 10 @c Octave is distributed in the hope that it will be useful, but WITHOUT |
11 @c ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 @c FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 @c for more details. | |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
14 @c |
7018 | 15 @c You should have received a copy of the GNU General Public License |
16 @c along with Octave; see the file COPYING. If not, see | |
17 @c <http://www.gnu.org/licenses/>. | |
3294 | 18 |
4167 | 19 @node System Utilities |
3294 | 20 @chapter System Utilities |
21 | |
22 This chapter describes the functions that are available to allow you to | |
23 get information about what is happening outside of Octave, while it is | |
24 still running, and use this information in your program. For example, | |
25 you can get information about environment variables, the current time, | |
26 and even start other programs from the Octave prompt. | |
27 | |
28 @menu | |
17152
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
29 * Timing Utilities:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
30 * Filesystem Utilities:: |
6549 | 31 * File Archiving Utilities:: |
32 * Networking Utilities:: | |
17152
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
33 * Controlling Subprocesses:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
34 * Process ID Information:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
35 * Environment Variables:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
36 * Current Working Directory:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
37 * Password Database Functions:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
38 * Group Database Functions:: |
f2a8592b8fbd
doc: Shorten some long subsection names in Manual.
Rik <rik@octave.org>
parents:
17097
diff
changeset
|
39 * System Information:: |
6702 | 40 * Hashing Functions:: |
3294 | 41 @end menu |
42 | |
4167 | 43 @node Timing Utilities |
3294 | 44 @section Timing Utilities |
45 | |
46 Octave's core set of functions for manipulating time values are | |
47 patterned after the corresponding functions from the standard C library. | |
48 Several of these functions use a data structure for time that includes | |
49 the following elements: | |
50 | |
51 @table @code | |
52 @item usec | |
53 Microseconds after the second (0-999999). | |
54 | |
55 @item sec | |
14570
d07d96e53612
seconds after the minute can be 0-60, not 0-61
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
56 Seconds after the minute (0-60). This number can be 60 to account |
3294 | 57 for leap seconds. |
58 | |
59 @item min | |
60 Minutes after the hour (0-59). | |
61 | |
62 @item hour | |
63 Hours since midnight (0-23). | |
64 | |
65 @item mday | |
66 Day of the month (1-31). | |
67 | |
68 @item mon | |
69 Months since January (0-11). | |
70 | |
71 @item year | |
72 Years since 1900. | |
73 | |
74 @item wday | |
75 Days since Sunday (0-6). | |
76 | |
77 @item yday | |
78 Days since January 1 (0-365). | |
79 | |
80 @item isdst | |
81 Daylight Savings Time flag. | |
82 | |
20375
31f89b12aaf7
strftime: Add support for "%z" conversion specifier (bug #45592)
Mike Miller <mtmiller@octave.org>
parents:
20024
diff
changeset
|
83 @item gmtoff |
31f89b12aaf7
strftime: Add support for "%z" conversion specifier (bug #45592)
Mike Miller <mtmiller@octave.org>
parents:
20024
diff
changeset
|
84 Seconds offset from UTC. |
31f89b12aaf7
strftime: Add support for "%z" conversion specifier (bug #45592)
Mike Miller <mtmiller@octave.org>
parents:
20024
diff
changeset
|
85 |
3294 | 86 @item zone |
87 Time zone. | |
88 @end table | |
89 | |
90 @noindent | |
91 In the descriptions of the following functions, this structure is | |
92 referred to as a @var{tm_struct}. | |
93 | |
3301 | 94 @DOCSTRING(time) |
3294 | 95 |
6502 | 96 @DOCSTRING(now) |
97 | |
3294 | 98 @DOCSTRING(ctime) |
99 | |
3301 | 100 @DOCSTRING(gmtime) |
3294 | 101 |
3301 | 102 @DOCSTRING(localtime) |
3294 | 103 |
3301 | 104 @DOCSTRING(mktime) |
3294 | 105 |
3301 | 106 @DOCSTRING(asctime) |
3294 | 107 |
108 @DOCSTRING(strftime) | |
109 | |
4169 | 110 @DOCSTRING(strptime) |
111 | |
3294 | 112 Most of the remaining functions described in this section are not |
113 patterned after the standard C library. Some are available for | |
9079
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
114 compatibility with @sc{matlab} and others are provided because they are |
3294 | 115 useful. |
116 | |
3301 | 117 @DOCSTRING(clock) |
3294 | 118 |
3301 | 119 @DOCSTRING(date) |
3294 | 120 |
3301 | 121 @DOCSTRING(etime) |
3294 | 122 |
3301 | 123 @DOCSTRING(cputime) |
3294 | 124 |
3301 | 125 @DOCSTRING(is_leap_year) |
3294 | 126 |
17097
e7a059a9a644
doc: Use XREF as anchor prefix in documentation for clearer results in Info viewer.
Rik <rik@octave.org>
parents:
16812
diff
changeset
|
127 @anchor{XREFtoc} |
3301 | 128 @DOCSTRING(tic) |
3294 | 129 |
3301 | 130 @DOCSTRING(pause) |
3294 | 131 |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
132 @DOCSTRING(datenum) |
6502 | 133 |
134 @DOCSTRING(datestr) | |
135 | |
136 @DOCSTRING(datevec) | |
137 | |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
138 @DOCSTRING(addtodate) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
139 |
6502 | 140 @DOCSTRING(calendar) |
141 | |
142 @DOCSTRING(weekday) | |
143 | |
144 @DOCSTRING(eomday) | |
145 | |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
146 @DOCSTRING(datetick) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
147 |
4167 | 148 @node Filesystem Utilities |
3294 | 149 @section Filesystem Utilities |
150 | |
12575
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12568
diff
changeset
|
151 Octave includes many utility functions for copying, moving, renaming, and |
d0b799dafede
Grammarcheck files for 3.4.1 release.
Rik <octave@nomad.inbox5.com>
parents:
12568
diff
changeset
|
152 deleting files; for creating, reading, and deleting directories; for retrieving |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
153 status information on files; and for manipulating file and path names. |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
154 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
155 @DOCSTRING(movefile) |
3294 | 156 |
3301 | 157 @DOCSTRING(rename) |
3294 | 158 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
159 @DOCSTRING(copyfile) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
160 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
161 @DOCSTRING(unlink) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
162 |
3710 | 163 @DOCSTRING(link) |
164 | |
165 @DOCSTRING(symlink) | |
166 | |
4169 | 167 @DOCSTRING(readlink) |
168 | |
3301 | 169 @DOCSTRING(mkdir) |
3294 | 170 |
3301 | 171 @DOCSTRING(rmdir) |
3294 | 172 |
6550 | 173 @DOCSTRING(confirm_recursive_rmdir) |
174 | |
3301 | 175 @DOCSTRING(mkfifo) |
3294 | 176 |
3301 | 177 @DOCSTRING(umask) |
3294 | 178 |
17097
e7a059a9a644
doc: Use XREF as anchor prefix in documentation for clearer results in Info viewer.
Rik <rik@octave.org>
parents:
16812
diff
changeset
|
179 @anchor{XREFlstat} |
3301 | 180 @DOCSTRING(stat) |
3294 | 181 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
182 @DOCSTRING(S_ISBLK) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
183 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
184 @DOCSTRING(S_ISCHR) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
185 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
186 @DOCSTRING(S_ISDIR) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
187 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
188 @DOCSTRING(S_ISFIFO) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
189 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
190 @DOCSTRING(S_ISLNK) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
191 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
192 @DOCSTRING(S_ISREG) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
193 |
12212
f1ab2a12b4f4
Add S_ISSOCK function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12211
diff
changeset
|
194 @DOCSTRING(S_ISSOCK) |
f1ab2a12b4f4
Add S_ISSOCK function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12211
diff
changeset
|
195 |
6549 | 196 @DOCSTRING(fileattrib) |
197 | |
198 @DOCSTRING(isdir) | |
199 | |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
200 @DOCSTRING(readdir) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
201 |
3301 | 202 @DOCSTRING(glob) |
3294 | 203 |
3301 | 204 @DOCSTRING(file_in_path) |
3294 | 205 |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
206 @DOCSTRING(filesep) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
207 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
208 @DOCSTRING(filemarker) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
209 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
210 @DOCSTRING(fileparts) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
211 |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
212 @DOCSTRING(fullfile) |
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
213 |
3301 | 214 @DOCSTRING(tilde_expand) |
3294 | 215 |
6549 | 216 @DOCSTRING(canonicalize_file_name) |
217 | |
12211
11faa69c4eaa
Add S_ISBLK and family of functions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12208
diff
changeset
|
218 @DOCSTRING(make_absolute_filename) |
6549 | 219 |
8817
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
220 @DOCSTRING(is_absolute_filename) |
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
221 |
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
222 @DOCSTRING(is_rooted_relative_filename) |
03b7f618ab3d
include docstrings for new functions in the manual
John W. Eaton <jwe@octave.org>
parents:
8653
diff
changeset
|
223 |
13843
c299b26d0e6b
missing change from changeset 69afe121f07e
John W. Eaton <jwe@octave.org>
parents:
12580
diff
changeset
|
224 @DOCSTRING(recycle) |
c299b26d0e6b
missing change from changeset 69afe121f07e
John W. Eaton <jwe@octave.org>
parents:
12580
diff
changeset
|
225 |
6549 | 226 @node File Archiving Utilities |
227 @section File Archiving Utilities | |
228 | |
229 @DOCSTRING(bunzip2) | |
230 | |
6868 | 231 @DOCSTRING(gzip) |
232 | |
6549 | 233 @DOCSTRING(gunzip) |
234 | |
235 @DOCSTRING(tar) | |
236 | |
237 @DOCSTRING(untar) | |
238 | |
239 @DOCSTRING(zip) | |
240 | |
241 @DOCSTRING(unzip) | |
242 | |
243 @DOCSTRING(unpack) | |
244 | |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
245 @DOCSTRING(bzip2) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
246 |
6549 | 247 @node Networking Utilities |
248 @section Networking Utilities | |
249 | |
9880 | 250 @menu |
11255
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
251 * FTP Objects:: |
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
252 * URL Manipulation:: |
16812
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
253 * Base64 and Binary Data Transmission:: |
9880 | 254 @end menu |
255 | |
12514
e5e66c389597
Add gethostname to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12512
diff
changeset
|
256 @DOCSTRING(gethostname) |
e5e66c389597
Add gethostname to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12512
diff
changeset
|
257 |
11255
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
258 @node FTP Objects |
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
259 @subsection FTP Objects |
9880 | 260 |
14217
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
261 Octave supports the FTP protocol through an object-oriented interface. |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
262 Use the function @code{ftp} to create an FTP object which represents the |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
263 connection. All FTP functions take an FTP object as the first argument. |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
264 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
265 @DOCSTRING(@ftp/ftp) |
9880 | 266 |
14217
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
267 @DOCSTRING(@ftp/close) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
268 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
269 @DOCSTRING(@ftp/mget) |
9880 | 270 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
271 @DOCSTRING(@ftp/mput) |
9880 | 272 |
14217
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
273 @DOCSTRING(@ftp/cd) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
274 |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
275 @DOCSTRING(@ftp/dir) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
276 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
277 @DOCSTRING(@ftp/ascii) |
9880 | 278 |
9891
1506a17832c9
doc building fixes for class methods
John W. Eaton <jwe@octave.org>
parents:
9880
diff
changeset
|
279 @DOCSTRING(@ftp/binary) |
9880 | 280 |
14217
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
281 @DOCSTRING(@ftp/delete) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
282 |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
283 @DOCSTRING(@ftp/rename) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
284 |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
285 @DOCSTRING(@ftp/mkdir) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
286 |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
287 @DOCSTRING(@ftp/rmdir) |
7912e682aa30
doc: Update docstrings for @ftp class.
Rik <octave@nomad.inbox5.com>
parents:
14138
diff
changeset
|
288 |
11255
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
289 @node URL Manipulation |
d682cd6669ac
Update info-based documentation menus to include new nodes.
Rik <octave@nomad.inbox5.com>
parents:
9891
diff
changeset
|
290 @subsection URL Manipulation |
9880 | 291 |
6549 | 292 @DOCSTRING(urlread) |
293 | |
294 @DOCSTRING(urlwrite) | |
295 | |
16812
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
296 @node Base64 and Binary Data Transmission |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
297 @subsection Base64 and Binary Data Transmission |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
298 |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
299 Some transmission channels can not accept binary data. It is customary to |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
300 encode binary data in Base64 for transmission and to decode the data upon |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
301 reception. |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
302 |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
303 @DOCSTRING(base64_encode) |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
304 |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
305 @DOCSTRING(base64_decode) |
366a13bd71d5
doc: Add base64_encode()/base64_decode() to documentation.
Rik <rik@octave.org>
parents:
16772
diff
changeset
|
306 |
4167 | 307 @node Controlling Subprocesses |
3294 | 308 @section Controlling Subprocesses |
309 | |
310 Octave includes some high-level commands like @code{system} and | |
311 @code{popen} for starting subprocesses. If you want to run another | |
312 program to perform some task and then look at its output, you will | |
313 probably want to use these functions. | |
314 | |
315 Octave also provides several very low-level Unix-like functions which | |
316 can also be used for starting subprocesses, but you should probably only | |
317 use them if you can't find any way to do what you need with the | |
318 higher-level functions. | |
319 | |
3301 | 320 @DOCSTRING(system) |
3294 | 321 |
6549 | 322 @DOCSTRING(unix) |
323 | |
324 @DOCSTRING(dos) | |
325 | |
19271
030d56f67363
implement the open function
John W. Eaton <jwe@octave.org>
parents:
19167
diff
changeset
|
326 @DOCSTRING(open) |
030d56f67363
implement the open function
John W. Eaton <jwe@octave.org>
parents:
19167
diff
changeset
|
327 |
7984
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
328 @DOCSTRING(perl) |
bbaa5d7d0143
Some documentation updates
David Bateman <dbateman@free.fr>
parents:
7018
diff
changeset
|
329 |
13859
6d59b141e65d
Add python to manual and respect format rules of copyright block
Carnë Draug <carandraug+dev@gmail.com>
parents:
12580
diff
changeset
|
330 @DOCSTRING(python) |
6d59b141e65d
Add python to manual and respect format rules of copyright block
Carnë Draug <carandraug+dev@gmail.com>
parents:
12580
diff
changeset
|
331 |
3301 | 332 @DOCSTRING(popen) |
3294 | 333 |
3301 | 334 @DOCSTRING(pclose) |
3294 | 335 |
3301 | 336 @DOCSTRING(popen2) |
3294 | 337 |
3301 | 338 @DOCSTRING(EXEC_PATH) |
3294 | 339 |
340 In most cases, the following functions simply decode their arguments and | |
341 make the corresponding Unix system calls. For a complete example of how | |
342 they can be used, look at the definition of the function @code{popen2}. | |
343 | |
3301 | 344 @DOCSTRING(fork) |
3294 | 345 |
3301 | 346 @DOCSTRING(exec) |
3294 | 347 |
3301 | 348 @DOCSTRING(pipe) |
3294 | 349 |
3301 | 350 @DOCSTRING(dup2) |
3294 | 351 |
3301 | 352 @DOCSTRING(waitpid) |
3294 | 353 |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
354 @DOCSTRING(WCONTINUE) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
355 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
356 @DOCSTRING(WCOREDUMP) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
357 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
358 @DOCSTRING(WEXITSTATUS) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
359 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
360 @DOCSTRING(WIFCONTINUED) |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
361 |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
362 @DOCSTRING(WIFSIGNALED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
363 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
364 @DOCSTRING(WIFSTOPPED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
365 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
366 @DOCSTRING(WIFEXITED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
367 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
368 @DOCSTRING(WNOHANG) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
369 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
370 @DOCSTRING(WSTOPSIG) |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
17744
diff
changeset
|
371 |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
372 @DOCSTRING(WTERMSIG) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
373 |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
374 @DOCSTRING(WUNTRACED) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
375 |
3301 | 376 @DOCSTRING(fcntl) |
3294 | 377 |
6549 | 378 @DOCSTRING(kill) |
379 | |
380 @DOCSTRING(SIG) | |
381 | |
4167 | 382 @node Process ID Information |
3294 | 383 @section Process, Group, and User IDs |
384 | |
3301 | 385 @DOCSTRING(getpgrp) |
3294 | 386 |
3301 | 387 @DOCSTRING(getpid) |
3294 | 388 |
3301 | 389 @DOCSTRING(getppid) |
3294 | 390 |
3301 | 391 @DOCSTRING(geteuid) |
3294 | 392 |
3301 | 393 @DOCSTRING(getuid) |
3294 | 394 |
3301 | 395 @DOCSTRING(getegid) |
3294 | 396 |
3301 | 397 @DOCSTRING(getgid) |
3294 | 398 |
4167 | 399 @node Environment Variables |
3294 | 400 @section Environment Variables |
401 | |
3301 | 402 @DOCSTRING(getenv) |
3294 | 403 |
19167
6f0290863d50
Add new function unsetenv from gnulib to Octave.
Rik <rik@octave.org>
parents:
19128
diff
changeset
|
404 @DOCSTRING(setenv) |
6f0290863d50
Add new function unsetenv from gnulib to Octave.
Rik <rik@octave.org>
parents:
19128
diff
changeset
|
405 |
6f0290863d50
Add new function unsetenv from gnulib to Octave.
Rik <rik@octave.org>
parents:
19128
diff
changeset
|
406 @DOCSTRING(unsetenv) |
3294 | 407 |
20024
cf9b94a89620
Document get_home_directory in Octave manual and NEWS file.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
408 @DOCSTRING(get_home_directory) |
cf9b94a89620
Document get_home_directory in Octave manual and NEWS file.
Rik <rik@octave.org>
parents:
19697
diff
changeset
|
409 |
4167 | 410 @node Current Working Directory |
3294 | 411 @section Current Working Directory |
412 | |
3301 | 413 @DOCSTRING(cd) |
3294 | 414 |
3301 | 415 @DOCSTRING(ls) |
3294 | 416 |
6549 | 417 @DOCSTRING(ls_command) |
418 | |
419 @DOCSTRING(dir) | |
420 | |
3301 | 421 @DOCSTRING(pwd) |
3294 | 422 |
4167 | 423 @node Password Database Functions |
3294 | 424 @section Password Database Functions |
425 | |
426 Octave's password database functions return information in a structure | |
427 with the following fields. | |
428 | |
429 @table @code | |
430 @item name | |
431 The user name. | |
432 | |
433 @item passwd | |
434 The encrypted password, if available. | |
435 | |
436 @item uid | |
437 The numeric user id. | |
438 | |
439 @item gid | |
440 The numeric group id. | |
441 | |
442 @item gecos | |
443 The GECOS field. | |
444 | |
445 @item dir | |
446 The home directory. | |
447 | |
448 @item shell | |
449 The initial shell. | |
450 @end table | |
451 | |
452 In the descriptions of the following functions, this data structure is | |
453 referred to as a @var{pw_struct}. | |
454 | |
3301 | 455 @DOCSTRING(getpwent) |
3294 | 456 |
3301 | 457 @DOCSTRING(getpwuid) |
3294 | 458 |
3301 | 459 @DOCSTRING(getpwnam) |
3294 | 460 |
3301 | 461 @DOCSTRING(setpwent) |
3294 | 462 |
3301 | 463 @DOCSTRING(endpwent) |
3294 | 464 |
4167 | 465 @node Group Database Functions |
3294 | 466 @section Group Database Functions |
467 | |
468 Octave's group database functions return information in a structure | |
469 with the following fields. | |
470 | |
471 @table @code | |
472 @item name | |
473 The user name. | |
474 | |
475 @item passwd | |
476 The encrypted password, if available. | |
477 | |
478 @item gid | |
479 The numeric group id. | |
480 | |
481 @item mem | |
482 The members of the group. | |
483 @end table | |
484 | |
485 In the descriptions of the following functions, this data structure is | |
486 referred to as a @var{grp_struct}. | |
487 | |
3301 | 488 @DOCSTRING(getgrent) |
3294 | 489 |
3301 | 490 @DOCSTRING(getgrgid) |
17281
bc924baa2c4e
doc: Add new @qcode macro for code samples which are quoted.
Rik <rik@octave.org>
parents:
17152
diff
changeset
|
491 |
3301 | 492 @DOCSTRING(getgrnam) |
3294 | 493 |
3301 | 494 @DOCSTRING(setgrent) |
3294 | 495 |
3301 | 496 @DOCSTRING(endgrent) |
3294 | 497 |
4167 | 498 @node System Information |
3294 | 499 @section System Information |
500 | |
3301 | 501 @DOCSTRING(computer) |
3294 | 502 |
6549 | 503 @DOCSTRING(uname) |
504 | |
12512
77b14e634166
Replace nprocs with nproc function. Use gnulib module for portability across platforms.
Iain Murray <iain@iainmurray.net>
parents:
12510
diff
changeset
|
505 @DOCSTRING(nproc) |
12510
a1b2da4967ac
Add nproc, nproc_conf utility functions for determining number of available processors.
Iain Murray <iain@iainmurray.net>
parents:
12212
diff
changeset
|
506 |
6549 | 507 @DOCSTRING(ispc) |
508 | |
509 @DOCSTRING(isunix) | |
510 | |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
511 @DOCSTRING(ismac) |
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
512 |
3301 | 513 @DOCSTRING(isieee) |
3294 | 514 |
12568
b22816427ce9
Add isdeployed function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12514
diff
changeset
|
515 @DOCSTRING(isdeployed) |
b22816427ce9
Add isdeployed function to documentation.
Rik <octave@nomad.inbox5.com>
parents:
12514
diff
changeset
|
516 |
19128
4990d5988cf5
new function, isstudent (bug #43155)
John W. Eaton <jwe@octave.org>
parents:
19120
diff
changeset
|
517 @DOCSTRING(isstudent) |
4990d5988cf5
new function, isstudent (bug #43155)
John W. Eaton <jwe@octave.org>
parents:
19120
diff
changeset
|
518 |
6623 | 519 @DOCSTRING(OCTAVE_HOME) |
520 | |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
521 @DOCSTRING(matlabroot) |
3294 | 522 |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
523 @DOCSTRING(OCTAVE_VERSION) |
8286
6f2d95255911
fix @seealso references to point to existing anchors
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
7984
diff
changeset
|
524 |
6623 | 525 @DOCSTRING(version) |
526 | |
527 @DOCSTRING(ver) | |
528 | |
12208
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
529 @DOCSTRING(compare_versions) |
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
530 |
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
531 @DOCSTRING(license) |
9611014e7cf1
Add function compare_versions to documentation.
Rik <octave@nomad.inbox5.com>
parents:
11535
diff
changeset
|
532 |
3301 | 533 @DOCSTRING(octave_config_info) |
3294 | 534 |
3301 | 535 @DOCSTRING(getrusage) |
6702 | 536 |
537 @node Hashing Functions | |
538 @section Hashing Functions | |
539 | |
20913
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
540 It is often necessary to find if two strings or files are identical. |
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
541 This might be done by comparing them character by character and looking |
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
542 for differences. However, this can be slow, and so comparing a hash of |
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
543 the string or file can be a rapid way of finding if the files differ. |
6702 | 544 |
9079
4d610aba7347
Cleanup documentation for system.texi, package.texi
Rik <rdrider0-list@yahoo.com>
parents:
8920
diff
changeset
|
545 Another use of the hashing function is to check for file integrity. The |
6702 | 546 user can check the hash of the file against a known value and find if |
547 the file they have is the same as the one that the original hash was | |
548 produced with. | |
549 | |
20913
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
550 Octave supplies the @code{hash} function to calculate hash values of |
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
551 strings and files, the latter in combination with the @code{fileread} |
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
552 function. The @code{hash} function supports the most common used |
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
553 cryptographic hash functions, namely MD5 and SHA-1. |
6702 | 554 |
20913
69489c064cb7
New function hash to calculate MD{2/4/5} and SHA{1,244,256,384,512} hash values.
Kai T. Ohlhus <k.ohlhus@gmail.com>
parents:
20375
diff
changeset
|
555 @DOCSTRING(hash) |
6702 | 556 |