| 1 |
@node C to Scheme mapping, Function and Syntax Index, Library modules - Utilities, Top |
| 2 |
@appendix C to Scheme mapping |
| 3 |
@c NODE CとSchemeの関数の対応 |
| 4 |
|
| 5 |
@c EN |
| 6 |
For the convenience of the programmers familiar to C, |
| 7 |
I composed a simple table of C operators and library functions with |
| 8 |
the corresponding Scheme functions. |
| 9 |
@c JP |
| 10 |
Cに馴染んだプログラマのために、Cのオペレータとライブラリ関数から |
| 11 |
Schemeの関数への対応表を示しておきます。 |
| 12 |
@c COMMON |
| 13 |
|
| 14 |
@table @code |
| 15 |
@item + |
| 16 |
@c EN |
| 17 |
R7RS arithmetic procedure @code{+}. @xref{Arithmetics}. |
| 18 |
@c JP |
| 19 |
R7RS の算術演算手続き @code{+}。@ref{Arithmetics}参照。 |
| 20 |
@c COMMON |
| 21 |
@item += |
| 22 |
@c EN |
| 23 |
Gauche @code{inc!} macro. @xref{Assignments}. |
| 24 |
@c JP |
| 25 |
Gauche の @code{inc!} マクロ。@ref{Assignments}参照。 |
| 26 |
@c COMMON |
| 27 |
@item - |
| 28 |
@c EN |
| 29 |
R7RS arithmetic procedure @code{-}. @xref{Arithmetics}. |
| 30 |
@c JP |
| 31 |
R7RS の算術演算手続き @code{-}。@ref{Arithmetics}参照。 |
| 32 |
@c COMMON |
| 33 |
@item -= |
| 34 |
@c EN |
| 35 |
Gauche @code{dec!} macro. @xref{Assignments}. |
| 36 |
@c JP |
| 37 |
Gauche の @code{dec!} マクロ。@ref{Assignments}参照。 |
| 38 |
@c COMMON |
| 39 |
@item -> |
| 40 |
@c EN |
| 41 |
Gauche @code{slot-ref} is something close to this. @xref{Accessing instance}. |
| 42 |
@c JP |
| 43 |
Gauche の @code{slot-ref} が近いものです。@ref{Accessing instance}参照。 |
| 44 |
@c COMMON |
| 45 |
@c EN |
| 46 |
@item * (binary) |
| 47 |
R7RS arithmetic procedure @code{*}. @xref{Arithmetics}. |
| 48 |
@c JP |
| 49 |
@item * (二項演算子) |
| 50 |
R7RS の算術演算手続き @code{*}。@ref{Arithmetics}参照。 |
| 51 |
@c COMMON |
| 52 |
@c EN |
| 53 |
@item * (unary) |
| 54 |
No equivalent procedure. Scheme doesn't have explicit notation of |
| 55 |
pointers. |
| 56 |
@c JP |
| 57 |
@item * (単項演算子) |
| 58 |
同等の手続きはありません。Scheme には明示的ポインタ表記はありません。 |
| 59 |
@c COMMON |
| 60 |
@item *= |
| 61 |
@c EN |
| 62 |
No equivalent procedure. |
| 63 |
@c JP |
| 64 |
同等の手続きはありません。 |
| 65 |
@c COMMON |
| 66 |
@item / |
| 67 |
@c EN |
| 68 |
In C, it has two different meanings depending on the types |
| 69 |
of operands. For real division, use @code{/}. |
| 70 |
For integer quotient, use @code{quotient}. |
| 71 |
@xref{Arithmetics}. |
| 72 |
@c JP |
| 73 |
Cでは引数の型によって二つの異なる意味を持つオペレータです。 |
| 74 |
実数の除算には@code{/}を、整数除算の商を求めるには@code{quotient}を使います。 |
| 75 |
@ref{Arithmetics}参照。 |
| 76 |
@c COMMON |
| 77 |
@item /= |
| 78 |
@c EN |
| 79 |
No equivalent procedure. |
| 80 |
@c JP |
| 81 |
同等の手続きはありません。 |
| 82 |
@c COMMON |
| 83 |
@c EN |
| 84 |
@item & (binary) |
| 85 |
Gauche @code{logand}. @xref{R7RS bitwise operations}. |
| 86 |
@c JP |
| 87 |
@item & (二項演算子) |
| 88 |
Gauche の @code{logand}。@ref{R7RS bitwise operations}参照。 |
| 89 |
@c COMMON |
| 90 |
@c EN |
| 91 |
@item & (unary) |
| 92 |
No equivalent procedure. Scheme doesn't have explicit notation of |
| 93 |
pointers. |
| 94 |
@c JP |
| 95 |
@item & (単項演算子) |
| 96 |
同等の手続きはありません。Scheme には明示的ポインタ表記はありません。 |
| 97 |
@c COMMON |
| 98 |
@item && |
| 99 |
@c EN |
| 100 |
R7RS syntax @code{and}. @xref{Conditionals}. |
| 101 |
@c JP |
| 102 |
R7RS の構文 @code{and}。@ref{Conditionals}参照。 |
| 103 |
@c COMMON |
| 104 |
@item &= |
| 105 |
@c EN |
| 106 |
No equivalent procedure. |
| 107 |
@c JP |
| 108 |
同等の手続きはありません。 |
| 109 |
@c COMMON |
| 110 |
@item | |
| 111 |
@c EN |
| 112 |
Gauche @code{logior}. @xref{R7RS bitwise operations}. |
| 113 |
@c JP |
| 114 |
Gauche の @code{logior}。@ref{R7RS bitwise operations}参照。 |
| 115 |
@c COMMON |
| 116 |
@item || |
| 117 |
@c EN |
| 118 |
R7RS syntax @code{or}. @xref{Conditionals}. |
| 119 |
@c JP |
| 120 |
R7RS の構文 @code{or}。@ref{Conditionals}参照。 |
| 121 |
@c COMMON |
| 122 |
@item |= |
| 123 |
@c EN |
| 124 |
No equivalent procedure. |
| 125 |
@c JP |
| 126 |
同等の手続きはありません。 |
| 127 |
@c COMMON |
| 128 |
@item ^ |
| 129 |
@c EN |
| 130 |
Gauche @code{logxor}. @xref{R7RS bitwise operations}. |
| 131 |
@c JP |
| 132 |
Gauche の @code{logxor}。@ref{R7RS bitwise operations}参照。 |
| 133 |
@c COMMON |
| 134 |
@item = |
| 135 |
@c EN |
| 136 |
R7RS syntax @code{set!}. @xref{Assignments}. |
| 137 |
@c JP |
| 138 |
R7RS の構文 @code{set!}。@ref{Assignments}参照。 |
| 139 |
@c COMMON |
| 140 |
@item == |
| 141 |
@c EN |
| 142 |
R7RS equivalence procedure, @code{eq?}, @code{eqv?} and @code{equal?}. |
| 143 |
@xref{Equality}. |
| 144 |
@c JP |
| 145 |
R7RS の同等性手続き @code{eq?}、@code{eqv?} および @code{equal?}。 |
| 146 |
@ref{Equality}参照。 |
| 147 |
@c COMMON |
| 148 |
@item < |
| 149 |
@itemx <= |
| 150 |
@c EN |
| 151 |
R7RS arithmetic procedure @code{<} and @code{<=}. |
| 152 |
@xref{Numerical comparison}. Unlike C operator, Scheme version |
| 153 |
is transitive. |
| 154 |
@c JP |
| 155 |
R7RS の算術演算手続き @code{<} および @code{<=}。 |
| 156 |
@ref{Numerical comparison}参照。C の演算子とちがい、Scheme のものは |
| 157 |
推移的なものです。 |
| 158 |
@c COMMON |
| 159 |
@item << |
| 160 |
@c EN |
| 161 |
Gauche @code{ash}. @xref{R7RS bitwise operations}. |
| 162 |
@c JP |
| 163 |
Gauche の @code{ash}。@ref{R7RS bitwise operations}参照。 |
| 164 |
@c COMMON |
| 165 |
@item <<= |
| 166 |
@c EN |
| 167 |
No equivalent procedure. |
| 168 |
@c JP |
| 169 |
同等の手続きはありません。 |
| 170 |
@c COMMON |
| 171 |
@item > |
| 172 |
@itemx >= |
| 173 |
@c EN |
| 174 |
R7RS arithmetic procedure @code{>} and @code{>=}. |
| 175 |
@xref{Numerical comparison}. Unlike C operator, Scheme version |
| 176 |
is transitive. |
| 177 |
@c JP |
| 178 |
R7RS の算術演算手続き @code{<} および @code{<=}。 |
| 179 |
@ref{Numerical comparison}参照。C の演算子とちがい、Scheme のものは |
| 180 |
推移的なものです。 |
| 181 |
@c COMMON |
| 182 |
@item >> |
| 183 |
@c EN |
| 184 |
Gauche @code{ash}. @xref{R7RS bitwise operations}. |
| 185 |
@c JP |
| 186 |
Gauche の @code{ash}。@ref{R7RS bitwise operations}参照。 |
| 187 |
@c COMMON |
| 188 |
@item >>= |
| 189 |
@c EN |
| 190 |
No equivalent procedure. |
| 191 |
@c JP |
| 192 |
同等の手続きはありません。 |
| 193 |
@c COMMON |
| 194 |
@item % |
| 195 |
@c EN |
| 196 |
R7RS operator @code{modulo} and @code{remainder}. @xref{Arithmetics}. |
| 197 |
@c JP |
| 198 |
R7RS の演算子 @code{modulo} および @code{remainder}。@ref{Arithmetics}参照。 |
| 199 |
@c COMMON |
| 200 |
@item %= |
| 201 |
@c EN |
| 202 |
No equivalent procedure. |
| 203 |
@c JP |
| 204 |
同等の手続きはありません。 |
| 205 |
@c COMMON |
| 206 |
@item [] |
| 207 |
@c EN |
| 208 |
R7RS @code{vector-ref} (@pxref{Vectors}) is something close. |
| 209 |
Or you can use Gauche's generic function @code{ref} (@pxref{Sequence framework}) |
| 210 |
for arbitrary sequences. |
| 211 |
@c JP |
| 212 |
R7RS の @code{vector-ref} (@ref{Vectors}参照) が近いものです。あるいは、 |
| 213 |
Gauche のジェネリック関数 @code{ref} (@ref{Sequence framework}参照)が、 |
| 214 |
任意の並び用になっています。 |
| 215 |
@c COMMON |
| 216 |
@item . |
| 217 |
@c EN |
| 218 |
Gauche @code{slot-ref} is something close to this. @xref{Accessing instance}. |
| 219 |
@c JP |
| 220 |
Gauche の @code{slot-ref} がこれに近いものです。@ref{Accessing instance}参照。 |
| 221 |
@c COMMON |
| 222 |
@item ~ |
| 223 |
@c EN |
| 224 |
Gauche @code{lognot}. @xref{R7RS bitwise operations}. |
| 225 |
@c JP |
| 226 |
Gauche の @code{lognot}。@ref{R7RS bitwise operations}参照。 |
| 227 |
@c COMMON |
| 228 |
@item ~= |
| 229 |
@c EN |
| 230 |
No equivalent procedure. |
| 231 |
@c JP |
| 232 |
同等の手続きはありません。 |
| 233 |
@c COMMON |
| 234 |
@item ! |
| 235 |
@c EN |
| 236 |
R7RS procedure @code{not}. @xref{Booleans}. |
| 237 |
@c JP |
| 238 |
R7RS の手続き @code{not}。@ref{Booleans}参照。 |
| 239 |
@c COMMON |
| 240 |
@item != |
| 241 |
@c EN |
| 242 |
No equivalent procedure. |
| 243 |
@c JP |
| 244 |
同等の手続きはありません。 |
| 245 |
@c COMMON |
| 246 |
@item abort |
| 247 |
@c EN |
| 248 |
Gauche @code{sys-abort}. @xref{Program termination}. |
| 249 |
@c JP |
| 250 |
Gauche の @code{sys-abort}。@ref{Program termination}参照。 |
| 251 |
@c COMMON |
| 252 |
@item abs |
| 253 |
@c EN |
| 254 |
R7RS @code{abs}. @xref{Arithmetics}. |
| 255 |
@c JP |
| 256 |
R7RS の @code{abs}。@ref{Arithmetics}参照。 |
| 257 |
@c COMMON |
| 258 |
@item access |
| 259 |
@c EN |
| 260 |
Gauche @code{sys-access}. @xref{File stats}. |
| 261 |
@c JP |
| 262 |
Gauche の @code{sys-access}。@ref{File stats}参照。 |
| 263 |
@c COMMON |
| 264 |
@item acos |
| 265 |
@c EN |
| 266 |
R7RS @code{acos}. @xref{Arithmetics}. |
| 267 |
@c JP |
| 268 |
R7RS の @code{acos}。@ref{Arithmetics}参照。 |
| 269 |
@c COMMON |
| 270 |
@item alarm |
| 271 |
@c EN |
| 272 |
Gauche @code{sys-alarm}. @xref{Miscellaneous system calls}. |
| 273 |
@c JP |
| 274 |
Gauche の @code{sys-alarm}。@ref{Miscellaneous system calls}参照。 |
| 275 |
@c COMMON |
| 276 |
@item asctime |
| 277 |
@c EN |
| 278 |
Gauche @code{sys-asctime}. @xref{Time}. |
| 279 |
@c JP |
| 280 |
Gauche の @code{sys-asctime}。@ref{Time}参照。 |
| 281 |
@c COMMON |
| 282 |
@item asin |
| 283 |
@c EN |
| 284 |
R7RS @code{asin}. @xref{Arithmetics}. |
| 285 |
@c JP |
| 286 |
R7RS の @code{asin}。@ref{Arithmetics}参照。 |
| 287 |
@c COMMON |
| 288 |
@item assert |
| 289 |
@c EN |
| 290 |
No equivalent function in Gauche. |
| 291 |
@c JP |
| 292 |
Gauche には同等の関数はありません。 |
| 293 |
@c COMMON |
| 294 |
@item atan |
| 295 |
@itemx atan2 |
| 296 |
@c EN |
| 297 |
R7RS @code{atan}. @xref{Arithmetics}. |
| 298 |
@c JP |
| 299 |
R7RS の @code{atan}。@ref{Arithmetics}参照。 |
| 300 |
@c COMMON |
| 301 |
@item atexit |
| 302 |
@c EN |
| 303 |
No equivalent function in Gauche, but the "after" thunk of active |
| 304 |
dynamic handlers are called when @code{exit} is called. |
| 305 |
@xref{Program termination}, and @xref{Continuations}. |
| 306 |
@c JP |
| 307 |
Gauche には同等の関数はありませんが、@code{exit} が呼ばれたとき |
| 308 |
アクティブな動的ハンドラの「事後」サンクが呼ばれます。 |
| 309 |
@ref{Program termination} および @ref{Continuations} 参照。 |
| 310 |
@c COMMON |
| 311 |
@item atof |
| 312 |
@itemx atoi |
| 313 |
@itemx atol |
| 314 |
@c EN |
| 315 |
You can use @code{string->number}. @xref{Numerical conversions}. |
| 316 |
@c JP |
| 317 |
@code{string->number} が使えます。@ref{Numerical conversions}参照。 |
| 318 |
@c COMMON |
| 319 |
@item bsearch |
| 320 |
@c EN |
| 321 |
You can use SRFI-133's @code{vector-binary-search}. |
| 322 |
@xref{R7RS vectors}. |
| 323 |
@c JP |
| 324 |
SRFI-133の@code{vector-binary-search}が使えます。 |
| 325 |
@ref{R7RS vectors}参照。 |
| 326 |
@c COMMON |
| 327 |
@item calloc |
| 328 |
@c EN |
| 329 |
Allocation is handled automatically in Scheme. |
| 330 |
@c JP |
| 331 |
Scheme ではメモリ割当は自動的に処理されます。 |
| 332 |
@c COMMON |
| 333 |
@item ceil |
| 334 |
@c EN |
| 335 |
R7RS @code{ceiling}. @xref{Arithmetics}. |
| 336 |
@c JP |
| 337 |
R7RS の @code{ceiling}。@ref{Arithmetics}参照。 |
| 338 |
@c COMMON |
| 339 |
@item cfgetispeed |
| 340 |
@itemx cfgetospeed |
| 341 |
@itemx cfsetispeed |
| 342 |
@itemx cfsetospeed |
| 343 |
@c EN |
| 344 |
Gauche's @code{sys-cfgetispeed}, @code{sys-cfgetospeed}, |
| 345 |
@code{sys-cfsetispeed}, @code{sys-cfsetospeed}. @xref{Terminal control}. |
| 346 |
@c JP |
| 347 |
Gauche の @code{sys-cfgetispeed}、@code{sys-cfgetospeed}、 |
| 348 |
@code{sys-cfsetispeed}、@code{sys-cfsetospeed}。@ref{Terminal control}参照。 |
| 349 |
@c COMMON |
| 350 |
@item chdir |
| 351 |
@c EN |
| 352 |
Gauche's @code{sys-chdir}. @xref{Other file operations}. |
| 353 |
@c JP |
| 354 |
Gauche の @code{sys-chdir}。@ref{Other file operations}参照。 |
| 355 |
@c COMMON |
| 356 |
@item chmod |
| 357 |
@c EN |
| 358 |
Gauche's @code{sys-chmod}. @xref{File stats}. |
| 359 |
@c JP |
| 360 |
Gauche の @code{sys-chmod}。@ref{File stats}参照。 |
| 361 |
@c COMMON |
| 362 |
@item chown |
| 363 |
@c EN |
| 364 |
Gauche's @code{sys-chown}. @xref{File stats}. |
| 365 |
@c JP |
| 366 |
Gauche の @code{sys-chown}。@ref{File stats}参照。 |
| 367 |
@c COMMON |
| 368 |
@item clearerr |
| 369 |
@c EN |
| 370 |
Not supported yet. |
| 371 |
@c JP |
| 372 |
未サポート。 |
| 373 |
@c COMMON |
| 374 |
@item clock |
| 375 |
@c EN |
| 376 |
No equivalent function in Gauche. You can use @code{sys-times} |
| 377 |
to get information about CPU time. |
| 378 |
@c JP |
| 379 |
Gauche には同等の関数はありません。@code{sys-times} を使って、 |
| 380 |
CPUタイムに情報を得ることができます。 |
| 381 |
@c COMMON |
| 382 |
@item close |
| 383 |
@c EN |
| 384 |
You can't directly close the file descriptor, but when you use |
| 385 |
@code{close-input-port} or @code{close-output-port}, underlying |
| 386 |
file is closed. Some port-related functions, such as |
| 387 |
@code{call-with-output-file}, automatically closes the file |
| 388 |
when operation is finished. The file is also closed when |
| 389 |
its governing port is garbage collected. |
| 390 |
@xref{Common port operations}. |
| 391 |
@c JP |
| 392 |
ファイルディスクリプタを直接クローズすることはできませんが、 |
| 393 |
@code{close-input-port} あるいは @code{close-output-port} を使うと、 |
| 394 |
元になるファイルはクローズされます。 |
| 395 |
いくつかのポートに関連する関数、たとえば、@code{call-with-output-file} |
| 396 |
などは、操作終了時に自動的にファイルをクローズします。 |
| 397 |
また、それを支配しているポートがGCされたときにクローズされます。 |
| 398 |
@ref{Common port operations}参照。 |
| 399 |
@c COMMON |
| 400 |
@item closedir |
| 401 |
@c EN |
| 402 |
No equivalent function in Gauche. You can use |
| 403 |
@code{sys-readdir} to read the directory entries at once. |
| 404 |
@xref{Directories}. |
| 405 |
@c JP |
| 406 |
Gauche には同等の関数はありません。@code{sys-readdir} を使うと |
| 407 |
ディレクトリの内容を一度に読むことができます。 |
| 408 |
@ref{Directories} 参照。 |
| 409 |
@c COMMON |
| 410 |
@item cos |
| 411 |
@itemx cosh |
| 412 |
@c EN |
| 413 |
@code{cos} and @code{cosh}. @xref{Arithmetics}. |
| 414 |
@c JP |
| 415 |
@code{cos} および @code{cosh}。@ref{Arithmetics} 参照。 |
| 416 |
@c COMMON |
| 417 |
@item creat |
| 418 |
@c EN |
| 419 |
A file is implicitly created by default when you open it for writing. |
| 420 |
See @ref{File ports} for more control over the creation of files. |
| 421 |
@c JP |
| 422 |
デフォルトでは、書き込みのためにファイルをオープンしたときに、暗黙のうちに |
| 423 |
ファイルが作成されます。ファイル作成のより詳しい制御については |
| 424 |
@ref{File ports} を参照してください。 |
| 425 |
@c COMMON |
| 426 |
@item ctermid |
| 427 |
@c EN |
| 428 |
Gauche @code{sys-ctermid}. @xref{System inquiry}. |
| 429 |
@c JP |
| 430 |
Gauche の @code{sys-ctermid}。@ref{System inquiry} 参照。 |
| 431 |
@c COMMON |
| 432 |
@item ctime |
| 433 |
@c EN |
| 434 |
Gauche @code{sys-ctime}. @xref{Time}. |
| 435 |
@c JP |
| 436 |
Gauche の @code{sys-ctime}。@ref{Time} 参照。 |
| 437 |
@c COMMON |
| 438 |
@item cuserid |
| 439 |
@c EN |
| 440 |
No equivalent function. This is removed from the newer POSIX. |
| 441 |
You can use alternative functions, such as @code{sys-getlogin} or |
| 442 |
@code{sys-getpwuid} with @code{sys-getuid}. |
| 443 |
@c JP |
| 444 |
同等の関数はありません。これは新しい POSIX からは削除されています。 |
| 445 |
別法として、@code{sys-getuid} といっしょに、@code{sys-getlogin} |
| 446 |
あるいは @code{sys-getpwuid} などの関数が使えます。 |
| 447 |
@c COMMON |
| 448 |
@item difftime |
| 449 |
@c EN |
| 450 |
Gauche @code{sys-difftime}. @xref{Time}. |
| 451 |
@c JP |
| 452 |
Gauche の @code{sys-difftime}。@ref{Time} 参照。 |
| 453 |
@c COMMON |
| 454 |
@item div |
| 455 |
@c EN |
| 456 |
You can use R7RS @code{quotient} and @code{remainder}. |
| 457 |
@xref{Arithmetics}. |
| 458 |
@c JP |
| 459 |
R7RS の @code{quotient} および @code{remainder} を使えます。 |
| 460 |
@ref{Arithmetics} 参照。 |
| 461 |
@c COMMON |
| 462 |
@item dup |
| 463 |
@itemx dup2 |
| 464 |
@c EN |
| 465 |
Not directly supported, but you can use @code{port-fd-dup!}. |
| 466 |
@c JP |
| 467 |
直接はサポートされていませんが、@code{port-fd-dup!} が使えます。 |
| 468 |
@c COMMON |
| 469 |
@item execl |
| 470 |
@itemx execle |
| 471 |
@itemx execlp |
| 472 |
@itemx execv |
| 473 |
@itemx execve |
| 474 |
@itemx execvp |
| 475 |
@c EN |
| 476 |
Gauche @code{sys-exec}. @xref{Process management}. |
| 477 |
For higher level interface, @ref{High-level process interface}. |
| 478 |
@c JP |
| 479 |
Gauche の @code{sys-exec}。@ref{Process management} 参照。 |
| 480 |
より高水準のインタフェースについては @ref{High-level process interface} 参照。 |
| 481 |
@c COMMON |
| 482 |
@item exit |
| 483 |
@item _exit |
| 484 |
@c EN |
| 485 |
Use @code{exit} or @code{sys-exit}, depends on what you need. |
| 486 |
@xref{Program termination}. |
| 487 |
@c JP |
| 488 |
必要なことに応じて、@code{exit} あるいは @code{sys-exit} を使いましょう。 |
| 489 |
@ref{Program termination} 参照。 |
| 490 |
@c COMMON |
| 491 |
@item exp |
| 492 |
@c EN |
| 493 |
R7RS @code{exp}. @xref{Arithmetics}. |
| 494 |
@c JP |
| 495 |
R7RS の @code{exp}。@ref{Arithmetics} 参照。 |
| 496 |
@c COMMON |
| 497 |
@item fabs |
| 498 |
@c EN |
| 499 |
R7RS @code{abs}. @xref{Arithmetics}. |
| 500 |
@c JP |
| 501 |
R7RS の @code{abs}。@ref{Arithmetics} 参照。 |
| 502 |
@c COMMON |
| 503 |
@item fclose |
| 504 |
@c EN |
| 505 |
You can't directly close the file stream, but when you use |
| 506 |
@code{close-input-port} or @code{close-output-port}, underlying |
| 507 |
file is closed. Some port-related functions, such as |
| 508 |
@code{call-with-output-file}, automatically closes the file |
| 509 |
when operation is finished. The file is also closed when |
| 510 |
its governing port is garbage collected. |
| 511 |
@c JP |
| 512 |
ファイルストリームを直接クローズすることはできませんが、 |
| 513 |
@code{close-input-port} あるいは @code{close-output-port} を使うと、 |
| 514 |
元になるファイルはクローズされます。 |
| 515 |
いくつかのポートに関連する関数、たとえば、@code{call-with-output-file} |
| 516 |
などは、操作終了時に自動的にファイルをクローズします。 |
| 517 |
また、それを支配しているポートがGCされたときにクローズされます。 |
| 518 |
@ref{Common port operations}参照。 |
| 519 |
@c COMMON |
| 520 |
@item fcntl |
| 521 |
@c EN |
| 522 |
Implemented as @code{sys-fcntl} in @code{gauche.fcntl} module. |
| 523 |
@xref{Low-level file operations}. |
| 524 |
@c JP |
| 525 |
@code{gauche.fcntl} モジュールで、@code{sys-fcntl} として実装されています。 |
| 526 |
@ref{Low-level file operations} 参照。 |
| 527 |
@c COMMON |
| 528 |
@item fdopen |
| 529 |
@c EN |
| 530 |
Gauche's @code{open-input-fd-port} or @code{open-output-fd-port}. |
| 531 |
@xref{File ports}. |
| 532 |
@c JP |
| 533 |
Gauche の @code{open-input-fd-port} あるいは @code{open-output-fd-port}。 |
| 534 |
@ref{File ports} 参照。 |
| 535 |
@c COMMON |
| 536 |
@item feof |
| 537 |
@c EN |
| 538 |
No equivalent operation, but you can check if an input port |
| 539 |
have reached to the end by @code{peek-char} or @code{peek-byte}. |
| 540 |
@xref{Reading data}. |
| 541 |
@c JP |
| 542 |
同等の操作はありませんが、入力ポートがEOFに達したどうか調べるには |
| 543 |
@code{peek-char}や@code{peek-byte}が使えます。 |
| 544 |
@ref{Reading data}参照。 |
| 545 |
@c COMMON |
| 546 |
@item ferror |
| 547 |
@c EN |
| 548 |
Not supported yet. |
| 549 |
@c JP |
| 550 |
未サポート。 |
| 551 |
@c COMMON |
| 552 |
@item fflush |
| 553 |
@c EN |
| 554 |
Gauche's @code{flush}. @xref{Output}. |
| 555 |
@c JP |
| 556 |
Gauche の @code{flush}。@ref{Output} 参照。 |
| 557 |
@c COMMON |
| 558 |
@item fgetc |
| 559 |
@c EN |
| 560 |
Use @code{read-char} or @code{read-byte}. @xref{Input}. |
| 561 |
@c JP |
| 562 |
@code{read-char} あるいは @code{read-byte} を使いましょう。@ref{Input} 参照。 |
| 563 |
@c COMMON |
| 564 |
@item fgetpos |
| 565 |
@c EN |
| 566 |
Use Gauche's @code{port-tell} (@pxref{Common port operations}) |
| 567 |
@c JP |
| 568 |
Gauche の @code{port-tell} を使いましょう。(@ref{Common port operations}参照。) |
| 569 |
@c COMMON |
| 570 |
@item fgets |
| 571 |
@c EN |
| 572 |
Use @code{read-line} or @code{read-string}. @xref{Input}. |
| 573 |
@c JP |
| 574 |
@code{read-line} あるいは @code{read-string} を使いましょう。@ref{Input} 参照。 |
| 575 |
@c COMMON |
| 576 |
@item fileno |
| 577 |
@c EN |
| 578 |
@code{port-file-number}. @xref{Common port operations}. |
| 579 |
@c JP |
| 580 |
@code{port-file-number}。@ref{Common port operations} 参照。 |
| 581 |
@c COMMON |
| 582 |
@item floor |
| 583 |
@c EN |
| 584 |
R7RS @code{floor}. @xref{Arithmetics}. |
| 585 |
@c JP |
| 586 |
R7RS の @code{floor}。@ref{Arithmetics} 参照。 |
| 587 |
@c COMMON |
| 588 |
@item fmod |
| 589 |
@c EN |
| 590 |
Gauche's @code{fmod}. |
| 591 |
@c JP |
| 592 |
Gauche の @code{fmod}。 |
| 593 |
@c COMMON |
| 594 |
@item fopen |
| 595 |
@c EN |
| 596 |
R7RS @code{open-input-file} or @code{open-output-file} |
| 597 |
corresponds to this operation. @xref{File ports}. |
| 598 |
@c JP |
| 599 |
この操作に対応するのは、R7RS の @code{open-input-file} あるいは |
| 600 |
@code{open-output-file} です。@ref{File ports} 参照。 |
| 601 |
@c COMMON |
| 602 |
@item fork |
| 603 |
@c EN |
| 604 |
Gauche's @code{sys-fork}. @xref{Process management}. |
| 605 |
@c JP |
| 606 |
Gauche の @code{sys-fork}。@ref{Process management} 参照。 |
| 607 |
@c COMMON |
| 608 |
@item forkpty |
| 609 |
@c EN |
| 610 |
Use @code{sys-forkpty}. @xref{Terminal control}. |
| 611 |
@c JP |
| 612 |
@code{sys-forkpty} を使いましょう。@ref{Terminal control} 参照。 |
| 613 |
@c COMMON |
| 614 |
@item fpathconf |
| 615 |
@c EN |
| 616 |
Not supported. |
| 617 |
@c JP |
| 618 |
未サポート。 |
| 619 |
@c COMMON |
| 620 |
@item fprintf |
| 621 |
@c EN |
| 622 |
Not directly supported, but Gauche's @code{format} |
| 623 |
provides similar functionality. @xref{Output}. |
| 624 |
SLIB has @code{printf} implementation. |
| 625 |
@c JP |
| 626 |
直接はサポートされていませんが、Gauche の @code{format} は |
| 627 |
似たような機能を提供しています。@ref{Output}参照。 |
| 628 |
SLIB は @code{printf} の実装を持っています。 |
| 629 |
@c COMMON |
| 630 |
@item fputc |
| 631 |
@c EN |
| 632 |
Use @code{write-char} or @code{write-byte}. @xref{Output}. |
| 633 |
@c JP |
| 634 |
@code{write-char} あるいは @code{write-byte}を使いましょう。@ref{Output}参照。 |
| 635 |
@c COMMON |
| 636 |
@item fputs |
| 637 |
@c EN |
| 638 |
Use @code{display}. @xref{Output}. |
| 639 |
@c JP |
| 640 |
@code{display}を使いましょう。@ref{Output} 参照。 |
| 641 |
@c COMMON |
| 642 |
@item fread |
| 643 |
@c EN |
| 644 |
Not directly supported. |
| 645 |
To read binary numbers, see @ref{Binary I/O}. |
| 646 |
If you want to read a chunk of bytes, you may be |
| 647 |
able to use @code{read-uvector!}. |
| 648 |
@xref{Uvector block I/O}. |
| 649 |
@c JP |
| 650 |
直接はサポートされていません。 |
| 651 |
バイナリの数値を読む場合は@ref{Binary I/O}を参照のこと。 |
| 652 |
バイトのチャンクで読みたければ、 |
| 653 |
@code{read-uvector!} が使えるでしょう (@ref{Uvector block I/O}参照)。 |
| 654 |
@c COMMON |
| 655 |
@item free |
| 656 |
@c EN |
| 657 |
You don't need this in Scheme. |
| 658 |
@c JP |
| 659 |
Scheme では必要がありません。 |
| 660 |
@c COMMON |
| 661 |
@item freopen |
| 662 |
@c EN |
| 663 |
Not supported. |
| 664 |
@c JP |
| 665 |
未サポート。 |
| 666 |
@c COMMON |
| 667 |
@item frexp |
| 668 |
@c EN |
| 669 |
Gauche's @code{frexp} |
| 670 |
@c JP |
| 671 |
Gauche の @code{frexp}。 |
| 672 |
@c COMMON |
| 673 |
@item fscanf |
| 674 |
@c EN |
| 675 |
Not supported. For general case, you have to write a parser. |
| 676 |
If you can keep the data in S-exp, you can use @code{read}. |
| 677 |
If the syntax is very simple, you may be able to utilize |
| 678 |
@code{string-tokenize} in @code{srfi.14} (@ref{String library}), |
| 679 |
and/or regular expression stuff (@ref{Regular expressions}). |
| 680 |
@c JP |
| 681 |
サポートしていません。一般的にはパーザを書かねばなりません。 |
| 682 |
データを S式で保持しているなら、@code{read} が使えます。 |
| 683 |
構文がごく単純なら、@code{srfi.14} (@ref{String library}) の |
| 684 |
@code{string-tokenize} や、正規表現 (@ref{Regular expressions}) が使えるでしょう。 |
| 685 |
@c COMMON |
| 686 |
@item fseek |
| 687 |
@c EN |
| 688 |
Use Gauche's @code{port-seek} (@pxref{Common port operations}) |
| 689 |
@c JP |
| 690 |
Gauche の @code{port-seek}(@ref{Common port operations}参照)を使いましょう。 |
| 691 |
@c COMMON |
| 692 |
@item fsetpos |
| 693 |
@c EN |
| 694 |
Use Gauche's @code{port-seek} (@pxref{Common port operations}) |
| 695 |
@c JP |
| 696 |
Gauche の @code{port-seek}(@ref{Common port operations}参照)を使いましょう。 |
| 697 |
@c COMMON |
| 698 |
@item fstat |
| 699 |
@c EN |
| 700 |
Gauche's @code{sys-stat}. @xref{File stats}. |
| 701 |
@c JP |
| 702 |
Gauche の @code{sys-stat}。@ref{File stats} 参照。 |
| 703 |
@c COMMON |
| 704 |
@item ftell |
| 705 |
@c EN |
| 706 |
Use Gauche's @code{port-tell} (@pxref{Common port operations}) |
| 707 |
@c JP |
| 708 |
Gauche の @code{port-tell}(@ref{Common port operations}参照)を使いましょう。 |
| 709 |
@c COMMON |
| 710 |
@item fwrite |
| 711 |
@c EN |
| 712 |
Not directly supported. |
| 713 |
To write binary numbers, see @ref{Binary I/O}. |
| 714 |
If you want to write a chunk of bytes, |
| 715 |
you can simply use @code{display} or @code{write-uvector} |
| 716 |
(@pxref{Uvector block I/O}). |
| 717 |
@c JP |
| 718 |
直接はサポートされていません。 |
| 719 |
バイナリの数値を書き出すのなら、@ref{Binary I/O}参照のこと。 |
| 720 |
バイト列のチャンクを書き出しすなら、 |
| 721 |
単に @code{display} を使うか、@code{write-uvector} が使えます |
| 722 |
(@ref{Uvector block I/O}参照)。 |
| 723 |
@c COMMON |
| 724 |
@item getc |
| 725 |
@itemx getchar |
| 726 |
@c EN |
| 727 |
Use @code{read-char} or @code{read-byte}. @xref{Input}. |
| 728 |
@c JP |
| 729 |
@code{read-char} あるいは @code{read-byte}を使いましょう。@ref{Input}参照。 |
| 730 |
@c COMMON |
| 731 |
@item getcwd |
| 732 |
@c EN |
| 733 |
Gauche's @code{sys-getcwd}. @xref{System inquiry}. |
| 734 |
@c JP |
| 735 |
Gauche の @code{sys-getcwd}。@ref{System inquiry} 参照。 |
| 736 |
@c COMMON |
| 737 |
@item getdomainname |
| 738 |
@c EN |
| 739 |
Gauche's @code{sys-getdomainname}. @xref{System inquiry}. |
| 740 |
@c JP |
| 741 |
Gauche の @code{sys-getdomainname}。@ref{System inquiry} 参照。 |
| 742 |
@c COMMON |
| 743 |
@item getegid |
| 744 |
@c EN |
| 745 |
Gauche's @code{sys-getegid}. @xref{System inquiry}. |
| 746 |
@c JP |
| 747 |
Gauche の @code{sys-getegid}。@ref{System inquiry} 参照。 |
| 748 |
@c COMMON |
| 749 |
@item getenv |
| 750 |
@c EN |
| 751 |
Gauche's @code{sys-getenv}. @xref{Environment inquiry}. |
| 752 |
@c JP |
| 753 |
Gauche の @code{sys-getenv}。@ref{Environment inquiry} 参照。 |
| 754 |
@c COMMON |
| 755 |
@item geteuid |
| 756 |
@c EN |
| 757 |
Gauche's @code{sys-geteuid}. @xref{System inquiry}. |
| 758 |
@c JP |
| 759 |
Gauche の @code{sys-geteuid}。@ref{System inquiry} 参照。 |
| 760 |
@c COMMON |
| 761 |
@item gethostname |
| 762 |
@c EN |
| 763 |
Gauche's @code{sys-gethostname}. @xref{System inquiry}. |
| 764 |
@c JP |
| 765 |
Gauche の @code{sys-gethostname}。@ref{System inquiry} 参照。 |
| 766 |
@c COMMON |
| 767 |
@item getgid |
| 768 |
@c EN |
| 769 |
Gauche's @code{sys-getgid}. @xref{System inquiry}. |
| 770 |
@c JP |
| 771 |
Gauche の @code{sys-getgid}。@ref{System inquiry} 参照。 |
| 772 |
@c COMMON |
| 773 |
@item getgrgid |
| 774 |
@itemx getgrnam |
| 775 |
@c EN |
| 776 |
Gauche's @code{sys-getgrgid} and @code{sys-getgrnam}. @xref{Unix groups and users}. |
| 777 |
@c JP |
| 778 |
Gauche の @code{sys-getgrgid} および @code{sys-getgrnam}。 |
| 779 |
@ref{Unix groups and users} 参照。 |
| 780 |
@c COMMON |
| 781 |
@item getgroups |
| 782 |
@c EN |
| 783 |
Gauche's @code{sys-getgroups}. @xref{System inquiry}. |
| 784 |
@c JP |
| 785 |
Gauche の @code{sys-getgroups}。@ref{System inquiry}参照。 |
| 786 |
@c COMMON |
| 787 |
@item getlogin |
| 788 |
@c EN |
| 789 |
Gauche's @code{sys-getlogin}. @xref{System inquiry}. |
| 790 |
@c JP |
| 791 |
Gauche の @code{sys-getlogin}。@ref{System inquiry}参照。 |
| 792 |
@c COMMON |
| 793 |
@item getpgrp |
| 794 |
@c EN |
| 795 |
Gauche's @code{sys-getpgrp}. @xref{System inquiry}. |
| 796 |
@c JP |
| 797 |
Gauche の @code{sys-getpgrp}。@ref{System inquiry} 参照。 |
| 798 |
@c COMMON |
| 799 |
@item getpid |
| 800 |
@itemx getppid |
| 801 |
@c EN |
| 802 |
Gauche's @code{sys-getpid}. @xref{System inquiry}. |
| 803 |
@c JP |
| 804 |
Gauche の @code{sys-getpid}。@ref{System inquiry} 参照。 |
| 805 |
@c COMMON |
| 806 |
@item getpwnam |
| 807 |
@itemx getpwuid |
| 808 |
@c EN |
| 809 |
Gauche's @code{sys-getpwnam} and @code{sys-getpwuid}. @xref{Unix groups and users}. |
| 810 |
@c JP |
| 811 |
Gauche の @code{sys-getpwnam} および @code{sys-getpwuid}。 |
| 812 |
@ref{Unix groups and users} 参照。 |
| 813 |
@c COMMON |
| 814 |
@item gets |
| 815 |
@c EN |
| 816 |
Use @code{read-line} or @code{read-string}. @xref{Input}. |
| 817 |
@c JP |
| 818 |
@code{read-line} または @code{read-string}を使いましょう。@ref{Input}参照。 |
| 819 |
@c COMMON |
| 820 |
@item gettimeofday |
| 821 |
@c EN |
| 822 |
Gauche's @code{sys-gettimeofday}. @xref{Time}. |
| 823 |
@c JP |
| 824 |
Gauche の @code{sys-gettimeofday}。@ref{Time} 参照。 |
| 825 |
@c COMMON |
| 826 |
@item getuid |
| 827 |
@c EN |
| 828 |
Gauche's @code{sys-getuid}. @xref{System inquiry}. |
| 829 |
@c JP |
| 830 |
Gauche の @code{sys-getuid}。@ref{System inquiry} 参照。 |
| 831 |
@c COMMON |
| 832 |
@item gmtime |
| 833 |
@c EN |
| 834 |
Gauche's @code{sys-gmtime}. @xref{Time}. |
| 835 |
@c JP |
| 836 |
Gauche の @code{sys-gmtime}。@ref{Time} 参照。 |
| 837 |
@c COMMON |
| 838 |
@item isalnum |
| 839 |
@c EN |
| 840 |
Not directly supported, but you can use R7RS @code{char-alphabetic?} and |
| 841 |
@code{char-numeric?}. @xref{Characters}. You can also use |
| 842 |
character set. @xref{Character sets}, also @ref{R7RS character sets}. |
| 843 |
@c JP |
| 844 |
直接はサポートされていませんが、R7RS の @code{char-alphabetic?} および |
| 845 |
@code{char-numeric?} が使えます。@ref{Characters} 参照。また、文字集合も |
| 846 |
使えます。@ref{Character sets}、@ref{R7RS character sets} 参照。 |
| 847 |
@c COMMON |
| 848 |
@item isalpha |
| 849 |
@c EN |
| 850 |
R7RS @code{char-alphabetic?}. @xref{Characters}. See also |
| 851 |
@ref{Character sets} and @ref{R7RS character sets}. |
| 852 |
@c JP |
| 853 |
R7RS の @code{char-alphabetic?}。@ref{Characters} 参照。また、 |
| 854 |
@ref{Character sets} および @ref{R7RS character sets} も参照してください。 |
| 855 |
@c COMMON |
| 856 |
@item isatty |
| 857 |
@c EN |
| 858 |
Gauche's @code{sys-isatty}. @xref{Other file operations}. |
| 859 |
@c JP |
| 860 |
Gauche の @code{sys-isatty}。@ref{Other file operations} 参照。 |
| 861 |
@c COMMON |
| 862 |
@item iscntrl |
| 863 |
@c EN |
| 864 |
Not directly supported, but you can use |
| 865 |
@code{(char-set-contains? char-set:iso-control c)} with @code{srfi.14}. |
| 866 |
@xref{R7RS character sets}. |
| 867 |
@c JP |
| 868 |
直接はサポートされていませんが、@code{srfi.14} で |
| 869 |
@code{(char-set-contains? char-set:iso-control c)} が使えます。 |
| 870 |
@ref{R7RS character sets} 参照。 |
| 871 |
@c COMMON |
| 872 |
@item isdigit |
| 873 |
@c EN |
| 874 |
R7RS @code{char-numeric?}. @xref{Characters}. |
| 875 |
You can also use @code{(char-set-contains? char-set:digit c)} |
| 876 |
with @code{srfi.14}. @xref{R7RS character sets}. |
| 877 |
@c JP |
| 878 |
R7RS の @code{char-numeric?}。@ref{Characters} 参照。 |
| 879 |
@code{srfi.14} で、@code{(char-set-contains? char-set:digit c)} も |
| 880 |
使えます。@ref{R7RS character sets} 参照。 |
| 881 |
@c COMMON |
| 882 |
@item isgraph |
| 883 |
@c EN |
| 884 |
Not directly supported, but you can use |
| 885 |
@code{(char-set-contains? char-set:graphic c)} with @code{srfi.14}. |
| 886 |
@xref{R7RS character sets}. |
| 887 |
@c JP |
| 888 |
直接はサポートされていませんが、@code{srfi.14} で |
| 889 |
@code{(char-set-contains? char-set:graphic c)} が使えます。 |
| 890 |
@ref{R7RS character sets} 参照。 |
| 891 |
@c COMMON |
| 892 |
@item islower |
| 893 |
@c EN |
| 894 |
R7RS @code{char-lower-case?}. @xref{Characters}. |
| 895 |
You can also use @code{(char-set-contains? char-set:lower-case c)} |
| 896 |
with @code{srfi.14}. @xref{R7RS character sets}. |
| 897 |
@c JP |
| 898 |
R7RS の @code{char-lower-case?}。@ref{Characters} 参照。 |
| 899 |
@code{srfi.14} で @code{(char-set-contains? char-set:lower-case c)} |
| 900 |
も使えます。@ref{R7RS character sets} 参照。 |
| 901 |
@c COMMON |
| 902 |
@item isprint |
| 903 |
@c EN |
| 904 |
Not directly supported, but you can use |
| 905 |
@code{(char-set-contains? char-set:printing c)} with @code{srfi.14}. |
| 906 |
@xref{R7RS character sets}. |
| 907 |
@c JP |
| 908 |
直接はサポートされていませんが、@code{srfi.14} で |
| 909 |
@code{(char-set-contains? char-set:printing c)} が使えます。 |
| 910 |
@ref{R7RS character sets} 参照。 |
| 911 |
@c COMMON |
| 912 |
@item ispunct |
| 913 |
@c EN |
| 914 |
Not directly supported, but you can use |
| 915 |
@code{(char-set-contains? char-set:punctuation c)} with @code{srfi.14}. |
| 916 |
@xref{R7RS character sets}. |
| 917 |
@c JP |
| 918 |
直接はサポートされていませんが、@code{srfi.14} で |
| 919 |
@code{(char-set-contains? char-set:punctuation c)} が使えます。 |
| 920 |
@ref{R7RS character sets} 参照。 |
| 921 |
@c COMMON |
| 922 |
@item isspace |
| 923 |
@c EN |
| 924 |
R7RS @code{char-whitespace?}. @xref{Characters}. |
| 925 |
You can also use @code{(char-set-contains? char-set:whitespace c)} |
| 926 |
with @code{srfi.14}. @xref{R7RS character sets}. |
| 927 |
@c JP |
| 928 |
R7RS の @code{char-whitespace?}。@ref{Characters} 参照。 |
| 929 |
@code{srfi.14} で @code{(char-set-contains? char-set:whitespace c)} |
| 930 |
も使えます。@ref{R7RS character sets} 参照。 |
| 931 |
@c COMMON |
| 932 |
@item isupper |
| 933 |
@c EN |
| 934 |
R7RS @code{char-upper-case?}. @xref{Characters}. |
| 935 |
You can also use @code{(char-set-contains? char-set:upper-case c)} |
| 936 |
with @code{srfi.14}. @xref{R7RS character sets}. |
| 937 |
@c JP |
| 938 |
R7RS の @code{char-upper-case?}。@ref{Characters} 参照。 |
| 939 |
@code{srfi.14} で @code{(char-set-contains? char-set:upper-case c)} |
| 940 |
も使えます。@ref{R7RS character sets} 参照。 |
| 941 |
@c COMMON |
| 942 |
@item isxdigit |
| 943 |
@c EN |
| 944 |
Not directly supported, but you can use |
| 945 |
@code{(char-set-contains? char-set:hex-digit c)} with @code{srfi.14}. |
| 946 |
@xref{R7RS character sets}. |
| 947 |
@c JP |
| 948 |
直接はサポートされていませんが、@code{srfi.14} で |
| 949 |
@code{(char-set-contains? char-set:hex-digit c)} が使えます。 |
| 950 |
@ref{R7RS character sets} 参照。 |
| 951 |
@c COMMON |
| 952 |
@item kill |
| 953 |
@c EN |
| 954 |
Gauche's @code{sys-kill}. @xref{Signal}. |
| 955 |
@c JP |
| 956 |
Gauche の @code{sys-kill}。@ref{Signal} 参照。 |
| 957 |
@c COMMON |
| 958 |
@item labs |
| 959 |
@c EN |
| 960 |
R7RS @code{abs}. @xref{Arithmetics}. |
| 961 |
@c JP |
| 962 |
R7RS の @code{abs}。@ref{Arithmetics} 参照。 |
| 963 |
@c COMMON |
| 964 |
@item ldexp |
| 965 |
@c EN |
| 966 |
Gauche's @code{ldexp}. |
| 967 |
@c JP |
| 968 |
Gauche の @code{ldexp}。 |
| 969 |
@c COMMON |
| 970 |
@item ldiv |
| 971 |
@c EN |
| 972 |
Use R7RS @code{quotient} and @code{remainder}. |
| 973 |
@xref{Arithmetics}. |
| 974 |
@c JP |
| 975 |
R7RS の @code{quotient} および @code{remainder} を使いましょう。 |
| 976 |
@ref{Arithmetics}参照。 |
| 977 |
@c COMMON |
| 978 |
@item link |
| 979 |
@c EN |
| 980 |
Gauche's @code{sys-link}. @xref{Directory manipulation}. |
| 981 |
@c JP |
| 982 |
Gauche の @code{sys-link}。@ref{Directory manipulation}参照。 |
| 983 |
@c COMMON |
| 984 |
@item localeconv |
| 985 |
@c EN |
| 986 |
Gauche's @code{sys-localeconv}. @xref{Locale}. |
| 987 |
@c JP |
| 988 |
Gauche の @code{sys-localeconv}。@ref{Locale} 参照。 |
| 989 |
@c COMMON |
| 990 |
@item localtime |
| 991 |
@c EN |
| 992 |
Gauche's @code{sys-localtime}. @xref{Time}. |
| 993 |
@c JP |
| 994 |
Gauche の @code{sys-localtime}。@ref{Time} 参照。 |
| 995 |
@c COMMON |
| 996 |
@item log |
| 997 |
@c EN |
| 998 |
R7RS @code{log}. @xref{Arithmetics}. |
| 999 |
@c JP |
| 1000 |
R7RS の @code{log}。@ref{Arithmetics} 参照。 |
| 1001 |
@c COMMON |
| 1002 |
@item log10 |
| 1003 |
@c EN |
| 1004 |
Not directly supported. @code{log10(z)} @equiv{} @code{(/ (log z) (log 10))}. |
| 1005 |
@c JP |
| 1006 |
直接はサポートされていません。 |
| 1007 |
@code{log10(z)} @equiv{} @code{(/ (log z) (log 10))} です。 |
| 1008 |
@c COMMON |
| 1009 |
@item longjmp |
| 1010 |
@c EN |
| 1011 |
R7RS @code{call/cc} provides similar (superior) mechanism. |
| 1012 |
@xref{Continuations}. |
| 1013 |
@c JP |
| 1014 |
R7RS の @code{call/cc} が類似(上位)のメカニズムを提供しています。 |
| 1015 |
@ref{Continuations} 参照。 |
| 1016 |
@c COMMON |
| 1017 |
@item lseek |
| 1018 |
@c EN |
| 1019 |
Use Gauche's @code{port-seek} (@pxref{Common port operations}) |
| 1020 |
@c JP |
| 1021 |
Gauche の @code{port-seek} (@ref{Common port operations}参照) を使いましょう。 |
| 1022 |
@c COMMON |
| 1023 |
@item malloc |
| 1024 |
@c EN |
| 1025 |
Not necessary in Scheme. |
| 1026 |
@c JP |
| 1027 |
Scheme では必要ありません。 |
| 1028 |
@c COMMON |
| 1029 |
@item mblen |
| 1030 |
@itemx mbstowcs |
| 1031 |
@itemx mbtowc |
| 1032 |
@c EN |
| 1033 |
Gauche handles multibyte strings internally, so generally you don't |
| 1034 |
need to care about multibyte-ness of the string. @code{string-length} |
| 1035 |
always returns a number of characters for a string in supported |
| 1036 |
encoding. If you want to convert the character encoding, |
| 1037 |
see @ref{Character code conversion}. |
| 1038 |
@c JP |
| 1039 |
Gauche ではマルチバイト文字列を内部的に処理しますので、一般的には |
| 1040 |
文字列がマルチバイトであるかどうかを気にする必要はありません。 |
| 1041 |
@code{string-length} は常に、サポートされているエンコーディングの |
| 1042 |
文字列に対して、文字数を返します。文字のエンコーディング変換を |
| 1043 |
したいのであれば、@ref{Character code conversion} を参照してください。 |
| 1044 |
@c COMMON |
| 1045 |
@item memcmp |
| 1046 |
@itemx memcpy |
| 1047 |
@itemx memmove |
| 1048 |
@itemx memset |
| 1049 |
@c EN |
| 1050 |
No equivalent functions. |
| 1051 |
@c JP |
| 1052 |
同等の関数はありません。 |
| 1053 |
@c COMMON |
| 1054 |
@item mkdir |
| 1055 |
@c EN |
| 1056 |
Gauche's @code{sys-mkdir}. @xref{Directory manipulation}. |
| 1057 |
@c JP |
| 1058 |
Gauche の @code{sys-mkdir}。@ref{Directory manipulation} 参照。 |
| 1059 |
@c COMMON |
| 1060 |
@item mkfifo |
| 1061 |
@c EN |
| 1062 |
Gauche's @code{sys-mkfifo}. |
| 1063 |
@c JP |
| 1064 |
Gauche の @code{sys-mkfifo}。 |
| 1065 |
@c COMMON |
| 1066 |
@item mkstemp |
| 1067 |
@c EN |
| 1068 |
Gauche's @code{sys-mkstemp}. @xref{Directory manipulation}. |
| 1069 |
Use this instead of tmpnam. |
| 1070 |
@c JP |
| 1071 |
Gauche の @code{sys-mkstemp}。@ref{Directory manipulation} 参照。 |
| 1072 |
tmpnam の代りにこちらを使いましょう。 |
| 1073 |
@c COMMON |
| 1074 |
@item mktime |
| 1075 |
@c EN |
| 1076 |
Gauche's @code{sys-mktime}. @xref{Time}. |
| 1077 |
@c JP |
| 1078 |
Gauche の @code{sys-mktime}。@ref{Time} 参照。 |
| 1079 |
@c COMMON |
| 1080 |
@item modf |
| 1081 |
@c EN |
| 1082 |
Gauche's @code{modf}. |
| 1083 |
@c JP |
| 1084 |
Gauche の @code{modf}。 |
| 1085 |
@c COMMON |
| 1086 |
@item open |
| 1087 |
@c EN |
| 1088 |
Not directly supported. |
| 1089 |
R7RS @code{open-input-file} or @code{open-output-file} |
| 1090 |
corresponds to this operation. @xref{File ports}. |
| 1091 |
@c JP |
| 1092 |
直接はサポートされていません。この操作に対応するのな |
| 1093 |
R7RS の @code{open-input-file} または @code{open-output-file} です。 |
| 1094 |
@ref{File ports} 参照。 |
| 1095 |
@c COMMON |
| 1096 |
@item opendir |
| 1097 |
@c EN |
| 1098 |
Not directly supported. |
| 1099 |
You can use @code{sys-readdir} to read the directory entries at once. |
| 1100 |
@xref{Directories}. |
| 1101 |
@c JP |
| 1102 |
直接はサポートされていません。 |
| 1103 |
ディレクトリのエントリをいちどに読むには @code{sys-readdir} |
| 1104 |
が使えます。@ref{Directories} 参照。 |
| 1105 |
@c COMMON |
| 1106 |
@item openpty |
| 1107 |
@c EN |
| 1108 |
Use @code{sys-openpty}. @xref{Terminal control}. |
| 1109 |
@c JP |
| 1110 |
@code{sys-openpty} を使いましょう。@ref{Terminal control} 参照。 |
| 1111 |
@c COMMON |
| 1112 |
@item pathconf |
| 1113 |
@c EN |
| 1114 |
Not supported. |
| 1115 |
@c JP |
| 1116 |
サポートしません。 |
| 1117 |
@c COMMON |
| 1118 |
@item pause |
| 1119 |
@c EN |
| 1120 |
Gauche's @code{sys-pause}. @xref{Miscellaneous system calls}. |
| 1121 |
@c JP |
| 1122 |
Gauche の @code{sys-pause}。@ref{Miscellaneous system calls} 参照。 |
| 1123 |
@c COMMON |
| 1124 |
@item perror |
| 1125 |
@c EN |
| 1126 |
No equivalent function in Gauche. System calls generally throws an |
| 1127 |
error (@code{<system-error>}), including the description of the reason |
| 1128 |
of failure. |
| 1129 |
@c JP |
| 1130 |
Gauche には同等の関数はありません。システムコールは一般的には error |
| 1131 |
(@code{<system-error>}) を投げます。これには、失敗した理由の説明が含まれて |
| 1132 |
います。 |
| 1133 |
@c COMMON |
| 1134 |
@item pipe |
| 1135 |
@c EN |
| 1136 |
Gauche's @code{sys-pipe}. @xref{Other file operations}. |
| 1137 |
@c JP |
| 1138 |
Gauche の @code{sys-pipe}。@ref{Other file operations} 参照。 |
| 1139 |
@c COMMON |
| 1140 |
@item pow |
| 1141 |
@c EN |
| 1142 |
R7RS @code{expt}. @xref{Arithmetics}. |
| 1143 |
@c JP |
| 1144 |
R7RS の @code{expt}。@ref{Arithmetics} 参照。 |
| 1145 |
@c COMMON |
| 1146 |
@item printf |
| 1147 |
@c EN |
| 1148 |
Not directly supported, but Gauche's @code{format} |
| 1149 |
provides similar functionality. @xref{Output}. |
| 1150 |
SLIB has @code{printf} implementation. |
| 1151 |
@c JP |
| 1152 |
直接はサポートされていませんが、Gauche の @code{format} は類似の機能を |
| 1153 |
提供しています。@ref{Output} 参照。SLIB には @code{printf} の実装があります。 |
| 1154 |
@c COMMON |
| 1155 |
@item putc |
| 1156 |
@itemx putchar |
| 1157 |
@c EN |
| 1158 |
Use @code{write-char} or @code{write-byte}. @xref{Output}. |
| 1159 |
@c JP |
| 1160 |
@code{write-char} または @code{write-byte} を使いましょう。@ref{Output} 参照。 |
| 1161 |
@c COMMON |
| 1162 |
@item puts |
| 1163 |
@c EN |
| 1164 |
Use @code{display}. @xref{Output}. |
| 1165 |
@c JP |
| 1166 |
@code{display} を使いましょう。@ref{Output} 参照。 |
| 1167 |
@c COMMON |
| 1168 |
@item qsort |
| 1169 |
@c EN |
| 1170 |
Gauche's @code{sort} and @code{sort!} provides a convenient way to sort |
| 1171 |
list of items. @xref{Sorting and merging}. |
| 1172 |
@c JP |
| 1173 |
Gauche の @code{sort} および @code{sort!} はリストをソートする便利な方法を |
| 1174 |
提供しています。@ref{Sorting and merging} 参照。 |
| 1175 |
@c COMMON |
| 1176 |
@item raise |
| 1177 |
@c EN |
| 1178 |
No equivalent function in Gauche. Scheme function @code{raise} (SRFI-18) |
| 1179 |
is to raise an exception. You can use @code{(sys-kill (sys-getpid) SIG)} |
| 1180 |
to send a signal @code{SIG} to the current process. |
| 1181 |
@c JP |
| 1182 |
Gauche には同等の関数はありません。Scheme の関数 @code{raise} (SRFI-18) |
| 1183 |
は例外を発生させます。シグナル @code{SIG} を現在のプロセスに送るには |
| 1184 |
@code{(sys-kill (sys-getpid) SIG)} が使えます。 |
| 1185 |
@c COMMON |
| 1186 |
@item rand |
| 1187 |
@c EN |
| 1188 |
Not supported directly, but on most platforms a better RNG is available |
| 1189 |
as @code{sys-random}. @xref{Miscellaneous system calls}. |
| 1190 |
@c JP |
| 1191 |
直接はサポートされていませんが、多くのプラットフォーム上で、@code{sys-random} |
| 1192 |
のような、よりよい RNG が利用可能です。@ref{Miscellaneous system calls} 参照。 |
| 1193 |
@c COMMON |
| 1194 |
@item read |
| 1195 |
@c EN |
| 1196 |
Not supported directly, but you may be able to use |
| 1197 |
@code{read-uvector} or |
| 1198 |
@code{read-uvector!} (@pxref{Uvector block I/O}). |
| 1199 |
@c JP |
| 1200 |
直接はサポートされていませんが、 |
| 1201 |
@code{read-uvector} あるいは |
| 1202 |
@code{read-uvector!} (@ref{Uvector block I/O}参照)が使えます。 |
| 1203 |
@c COMMON |
| 1204 |
@item readdir |
| 1205 |
@c EN |
| 1206 |
Not supported directly. Gauche's @code{sys-readdir} reads |
| 1207 |
the directory at once. @xref{Directories}. |
| 1208 |
@c JP |
| 1209 |
直接はサポートされていません。Gauche の @code{sys-readdir} は |
| 1210 |
指定のディレクトリを一度に読みます。@ref{Directories} 参照。 |
| 1211 |
@c COMMON |
| 1212 |
@item readlink |
| 1213 |
@c EN |
| 1214 |
Gauche's @code{sys-readlink}. @xref{Directory manipulation}. |
| 1215 |
This function is available on systems that support symbolic links. |
| 1216 |
@c JP |
| 1217 |
Gauche の @code{sys-readlink}。@ref{Directory manipulation} 参照。 |
| 1218 |
この関数はシンボリックリンクをサポートしているシステム上で利用可能です。 |
| 1219 |
@c COMMON |
| 1220 |
@item realloc |
| 1221 |
@c EN |
| 1222 |
Not necessary in Scheme. |
| 1223 |
@c JP |
| 1224 |
Scheme では必要ありません。 |
| 1225 |
@c COMMON |
| 1226 |
@item realpath |
| 1227 |
@c EN |
| 1228 |
Gauche's @code{sys-normalize-pathname} or @code{sys-realpath}. |
| 1229 |
@xref{Pathnames}. |
| 1230 |
@c JP |
| 1231 |
Gauche の @code{sys-normalize-pathname} あるいは @code{sys-realpath}。 |
| 1232 |
@ref{Pathnames}参照。 |
| 1233 |
@c COMMON |
| 1234 |
@item remove |
| 1235 |
@c EN |
| 1236 |
Gauche's @code{sys-remove}. @xref{Directory manipulation}. |
| 1237 |
@c JP |
| 1238 |
Gauche の @code{sys-remove}。@ref{Directory manipulation}参照。 |
| 1239 |
@c COMMON |
| 1240 |
@item rename |
| 1241 |
@c EN |
| 1242 |
Gauche's @code{sys-rename}. @xref{Directory manipulation}. |
| 1243 |
@c JP |
| 1244 |
Gauche の @code{sys-rename}。@ref{Directory manipulation}参照。 |
| 1245 |
@c COMMON |
| 1246 |
@item rewind |
| 1247 |
@c EN |
| 1248 |
Not directly supported, but you can use @code{port-seek} instead. |
| 1249 |
@xref{Common port operations}. |
| 1250 |
@c JP |
| 1251 |
直接はサポートされませんが、@code{port-seek}が代わりに使えます。 |
| 1252 |
@ref{Common port operations}参照。 |
| 1253 |
@c COMMON |
| 1254 |
@item rewinddir |
| 1255 |
@c EN |
| 1256 |
Not supported directly. |
| 1257 |
You can use @code{sys-readdir} to read the directory entries at once. |
| 1258 |
@xref{Directories}. |
| 1259 |
@c JP |
| 1260 |
直接はサポートされていません。 |
| 1261 |
ディレクトリエントリを一度に読むには @code{sys-readdir} が使えます。 |
| 1262 |
@ref{Directories}参照。 |
| 1263 |
@c COMMON |
| 1264 |
@item rmdir |
| 1265 |
@c EN |
| 1266 |
Gauche's @code{sys-rmdir}. @xref{Directory manipulation}. |
| 1267 |
@c JP |
| 1268 |
Gauche の @code{sys-rmdir}。@ref{Directory manipulation}参照。 |
| 1269 |
@c COMMON |
| 1270 |
@item scanf |
| 1271 |
@c EN |
| 1272 |
Not supported. For general case, you have to write a parser. |
| 1273 |
If you can keep the data in S-exp, you can use @code{read}. |
| 1274 |
If the syntax is very simple, you may be able to utilize |
| 1275 |
@code{string-tokenize} in @code{srfi.14} (@ref{String library}), |
| 1276 |
and/or regular expression stuff (@ref{Regular expressions}). |
| 1277 |
@c JP |
| 1278 |
サポートしていません。一般的にはパーザを書かねばなりません。 |
| 1279 |
データを S式で保持できるなら、@code{read} が使えます。 |
| 1280 |
構文がごく単純なら、@code{srfi.14} (@ref{String library}) の |
| 1281 |
@code{string-tokenize} や、正規表現 (@ref{Regular expressions}) |
| 1282 |
が使えるでしょう。 |
| 1283 |
@c COMMON |
| 1284 |
@item select |
| 1285 |
@c EN |
| 1286 |
Gauche's @code{sys-select}. @xref{I/O multiplexing}. |
| 1287 |
@c JP |
| 1288 |
Gauche の @code{sys-select}。@ref{I/O multiplexing}参照。 |
| 1289 |
@c COMMON |
| 1290 |
@item setbuf |
| 1291 |
@c EN |
| 1292 |
Not necessary. |
| 1293 |
@c JP |
| 1294 |
必要ありません。 |
| 1295 |
@c COMMON |
| 1296 |
@item setgid |
| 1297 |
@c EN |
| 1298 |
Gauche's @code{sys-setgid}. |
| 1299 |
@c JP |
| 1300 |
Gauche の @code{sys-getgid}。 |
| 1301 |
@c COMMON |
| 1302 |
@item setjmp |
| 1303 |
@c EN |
| 1304 |
R7RS @code{call/cc} provides similar (superior) mechanism. |
| 1305 |
@xref{Continuations}. |
| 1306 |
@c JP |
| 1307 |
R7RS の @code{call/cc} が類似(上位)のメカニズムを提供しています。 |
| 1308 |
@ref{Continuations} 参照。 |
| 1309 |
@c COMMON |
| 1310 |
@item setlocale |
| 1311 |
@c EN |
| 1312 |
Gauche's @code{sys-setlocale}. @xref{Locale}. |
| 1313 |
@c JP |
| 1314 |
Gauche の @code{sys-setlocale}。@ref{Locale}参照。 |
| 1315 |
@c COMMON |
| 1316 |
@item setpgid |
| 1317 |
@c EN |
| 1318 |
Gauche's @code{sys-setpgid}. @xref{System inquiry}. |
| 1319 |
@c JP |
| 1320 |
Gauche の @code{sys-setpgid}。@ref{System inquiry}参照。 |
| 1321 |
@c COMMON |
| 1322 |
@item setsid |
| 1323 |
@c EN |
| 1324 |
Gauche's @code{sys-setsid}. @xref{System inquiry}. |
| 1325 |
@c JP |
| 1326 |
Gauche の @code{sys-setsid}。@ref{System inquiry}参照。 |
| 1327 |
@c COMMON |
| 1328 |
@item setuid |
| 1329 |
@c EN |
| 1330 |
Gauche's @code{sys-setuid}. @xref{System inquiry}. |
| 1331 |
@c JP |
| 1332 |
Gauche の @code{sys-setuid}。@ref{System inquiry}参照。 |
| 1333 |
@c COMMON |
| 1334 |
@item setvbuf |
| 1335 |
@c EN |
| 1336 |
Not necessary. |
| 1337 |
@c JP |
| 1338 |
必要ありません。 |
| 1339 |
@c COMMON |
| 1340 |
@item sigaction |
| 1341 |
@c EN |
| 1342 |
You can use @code{set-signal-handler!} to install signal handlers. |
| 1343 |
@xref{Handling signals}. |
| 1344 |
@c JP |
| 1345 |
シグナルハンドラを設定するには、@code{set-signal-handler!} が使えます。 |
| 1346 |
@ref{Handling signals}参照。 |
| 1347 |
@c COMMON |
| 1348 |
@item sigaddset |
| 1349 |
@itemx sigdelset |
| 1350 |
@itemx sigemptyset |
| 1351 |
@itemx sigfillset |
| 1352 |
@c EN |
| 1353 |
Gauche's @code{sys-sigset-add!} and @code{sys-sigset-delete!}. |
| 1354 |
@xref{Signals and signal sets}. |
| 1355 |
@c JP |
| 1356 |
Gauche の @code{sys-sigset-add!} および @code{sys-sigset-delete!}。 |
| 1357 |
@ref{Signals and signal sets}参照。 |
| 1358 |
@c COMMON |
| 1359 |
@item sigismember |
| 1360 |
@c EN |
| 1361 |
Not supported yet. |
| 1362 |
@c JP |
| 1363 |
未サポート。 |
| 1364 |
@c COMMON |
| 1365 |
@item siglongjmp |
| 1366 |
@c EN |
| 1367 |
R7RS @code{call/cc} provides similar (superior) mechanism. |
| 1368 |
@xref{Continuations}. |
| 1369 |
@c JP |
| 1370 |
R7RS の @code{call/cc} が類似(上位)のメカニズムを提供しています。 |
| 1371 |
@ref{Continuations} 参照。 |
| 1372 |
@c COMMON |
| 1373 |
@item signal |
| 1374 |
@c EN |
| 1375 |
You can use @code{with-signal-handlers} to install signal handlers. |
| 1376 |
@xref{Handling signals}. |
| 1377 |
@c JP |
| 1378 |
シグナルハンドラを設定するのには、@code{with-signal-handlers} が使えます。 |
| 1379 |
@ref{Handling signals} 参照。 |
| 1380 |
@c COMMON |
| 1381 |
@item sigpending |
| 1382 |
@c EN |
| 1383 |
Not supported yet. |
| 1384 |
@c JP |
| 1385 |
未サポート |
| 1386 |
@c COMMON |
| 1387 |
@item sigprocmask |
| 1388 |
@c EN |
| 1389 |
Signal mask is handled internally. @xref{Handling signals}. |
| 1390 |
@c JP |
| 1391 |
シグナルマスクは内部的に処理されます。@ref{Handling signals}参照。 |
| 1392 |
@c COMMON |
| 1393 |
@item sigsetjmp |
| 1394 |
@c EN |
| 1395 |
R7RS @code{call/cc} provides similar (superior) mechanism. |
| 1396 |
@xref{Continuations}. |
| 1397 |
@c JP |
| 1398 |
R7RS の @code{call/cc} が類似(上位)のメカニズムを提供しています。 |
| 1399 |
@ref{Continuations} 参照。 |
| 1400 |
@c COMMON |
| 1401 |
@item sigsuspend |
| 1402 |
@c EN |
| 1403 |
Gauche's @code{sys-sigsuspend}. @xref{Masking and waiting signals}. |
| 1404 |
@c JP |
| 1405 |
Gauche の @code{sys-sigsuspend}。@ref{Masking and waiting signals}参照。 |
| 1406 |
@c COMMON |
| 1407 |
@item sigwait |
| 1408 |
@c EN |
| 1409 |
Gauche's @code{sys-sigwait}. @xref{Masking and waiting signals}. |
| 1410 |
@c JP |
| 1411 |
Gauche の @code{sys-sigwait}。@ref{Masking and waiting signals}参照。 |
| 1412 |
@c COMMON |
| 1413 |
@item sin |
| 1414 |
@itemx sinh |
| 1415 |
@c EN |
| 1416 |
Use @code{sin} and @code{sinh}. @xref{Arithmetics}. |
| 1417 |
@c JP |
| 1418 |
@code{sin} および @code{sinh} を使いましょう。@ref{Arithmetics}参照。 |
| 1419 |
@c COMMON |
| 1420 |
@item sleep |
| 1421 |
@c EN |
| 1422 |
Gauche's @code{sys-sleep}. @xref{Miscellaneous system calls}. |
| 1423 |
@c JP |
| 1424 |
Gauche の @code{sys-sleep}。@ref{Miscellaneous system calls}参照。 |
| 1425 |
@c COMMON |
| 1426 |
@item sprintf |
| 1427 |
@c EN |
| 1428 |
Not directly supported, but Gauche's @code{format} |
| 1429 |
provides similar functionality. @xref{Output}. |
| 1430 |
SLIB has @code{printf} implementation. |
| 1431 |
@c JP |
| 1432 |
直接はサポートされていませんが、Gauche の @code{format} は類似の機能を |
| 1433 |
提供しています。@ref{Output} 参照。SLIB には @code{printf} の実装があります。 |
| 1434 |
@c COMMON |
| 1435 |
@item sqrt |
| 1436 |
@c EN |
| 1437 |
R7RS @code{sqrt}. @xref{Arithmetics}. |
| 1438 |
@c JP |
| 1439 |
R7RS の @code{sqrt}。@ref{Arithmetics}参照。 |
| 1440 |
@c COMMON |
| 1441 |
@item srand |
| 1442 |
@c EN |
| 1443 |
Not supported directly, but on most platforms a better RNG is available |
| 1444 |
as @code{sys-srandom} (@pxref{Miscellaneous system calls}). |
| 1445 |
The @code{math.mt-random} module provides much superior RNG |
| 1446 |
(@pxref{Mersenne-Twister random number generator}). |
| 1447 |
@c JP |
| 1448 |
直接はサポートされていませんが、多くのプラットフォーム上で、@code{sys-random} |
| 1449 |
のような、よりよい RNG が利用可能です。@ref{Miscellaneous system calls} 参照。 |
| 1450 |
また、@code{math.mt-random}はさらに優れたRNGを提供します |
| 1451 |
(@ref{Mersenne-Twister random number generator}参照)。 |
| 1452 |
@c COMMON |
| 1453 |
@item sscanf |
| 1454 |
@c EN |
| 1455 |
Not supported. For general case, you have to write a parser. |
| 1456 |
If you can keep the data in S-exp, you can use @code{read}. |
| 1457 |
If the syntax is very simple, you may be able to utilize |
| 1458 |
@code{string-tokenize} in @code{srfi.14} (@ref{String library}), |
| 1459 |
and/or regular expression stuff (@ref{Regular expressions}). |
| 1460 |
@c JP |
| 1461 |
サポートしていません。一般的にはパーザを書かねばなりません。 |
| 1462 |
データを S式で保持できるなら、@code{read} が使えます。 |
| 1463 |
構文がごく単純なら、@code{srfi.14} (@ref{String library}) の |
| 1464 |
@code{string-tokenize} や、正規表現 (@ref{Regular expressions}) |
| 1465 |
が使えるでしょう。 |
| 1466 |
@c COMMON |
| 1467 |
@item stat |
| 1468 |
@c EN |
| 1469 |
Gauche's @code{sys-stat}. @xref{File stats}. |
| 1470 |
@c JP |
| 1471 |
Gauche の @code{sys-stat}。@ref{File stats}参照。 |
| 1472 |
@c COMMON |
| 1473 |
@item strcasecmp |
| 1474 |
@c EN |
| 1475 |
R7RS @code{string-ci=?} and other comparison functions. |
| 1476 |
@xref{String comparison}. |
| 1477 |
@c JP |
| 1478 |
R7RS の @code{string-ci=?} および、その他の比較関数。 |
| 1479 |
@ref{String comparison}参照。 |
| 1480 |
@c COMMON |
| 1481 |
@item strcat |
| 1482 |
@c EN |
| 1483 |
R7RS @code{string-append}. @xref{String utilities}. |
| 1484 |
@c JP |
| 1485 |
R7RS の @code{string-append}。@ref{String utilities}参照。 |
| 1486 |
@c COMMON |
| 1487 |
@item strchr |
| 1488 |
@c EN |
| 1489 |
SRFI-13 @code{string-index}. @xref{SRFI-13 String searching}. |
| 1490 |
@c JP |
| 1491 |
SRFI-13 の @code{string-index}。 @ref{SRFI-13 String searching}参照。 |
| 1492 |
@c COMMON |
| 1493 |
@item strcmp |
| 1494 |
@c EN |
| 1495 |
R7RS @code{string=?} and other comparison functions. |
| 1496 |
@xref{String comparison}. |
| 1497 |
@c JP |
| 1498 |
R7RS の @code{string=?} および、その他の比較関数。 |
| 1499 |
@ref{String comparison}参照。 |
| 1500 |
@c COMMON |
| 1501 |
@item strcoll |
| 1502 |
@c EN |
| 1503 |
Not supported yet. |
| 1504 |
@c JP |
| 1505 |
未サポート。 |
| 1506 |
@c COMMON |
| 1507 |
@item strcpy |
| 1508 |
@c EN |
| 1509 |
R7RS @code{string-copy}. @xref{String utilities}. |
| 1510 |
@c JP |
| 1511 |
R7RS の @code{string-copy}。@ref{String utilities}参照。 |
| 1512 |
@c COMMON |
| 1513 |
@item strcspn |
| 1514 |
@c EN |
| 1515 |
Not directly supported, but you can use SRFI-13 @code{string-skip} |
| 1516 |
with a character set. @xref{SRFI-13 String searching}. |
| 1517 |
@c JP |
| 1518 |
直接はサポートされていませんが、文字集合とともに、SRFI-13 の |
| 1519 |
@code{string-skip} が使えます。@ref{SRFI-13 String searching}参照。 |
| 1520 |
@c COMMON |
| 1521 |
@item strerror |
| 1522 |
@c EN |
| 1523 |
Gauche's @code{sys-strerror}. @xref{System inquiry}. |
| 1524 |
@c JP |
| 1525 |
Gaucheの@code{sys-strerror}。 @ref{System inquiry}参照。 |
| 1526 |
@c COMMON |
| 1527 |
@item strftime |
| 1528 |
@c EN |
| 1529 |
Gauche's @code{sys-strftime}. @xref{Time}. |
| 1530 |
@c JP |
| 1531 |
Gauche の @code{sys-strftime}。@ref{Time}参照。 |
| 1532 |
@c COMMON |
| 1533 |
@item strlen |
| 1534 |
@c EN |
| 1535 |
R7RS @code{string-length}. @xref{String accessors & modifiers}. |
| 1536 |
@c JP |
| 1537 |
R7RS の @code{string-length}。@ref{String accessors & modifiers}参照。 |
| 1538 |
@c COMMON |
| 1539 |
@item strncat |
| 1540 |
@c EN |
| 1541 |
Not directly supported, but you can use @code{string-append} and |
| 1542 |
@code{substring}. |
| 1543 |
@c JP |
| 1544 |
直接はサポートされていませんが、@code{string-append} および |
| 1545 |
@code{substring} が使えます。 |
| 1546 |
@c COMMON |
| 1547 |
@item strncasecmp |
| 1548 |
@c EN |
| 1549 |
SRFI-13 @code{string-compare-ci} provides the most flexible |
| 1550 |
(but a bit difficult to use) functionality. |
| 1551 |
@xref{SRFI-13 String comparison}. |
| 1552 |
If what you want is just to check the fixed-length prefixes of two |
| 1553 |
string matches, you can use SRFI-13 @code{string-prefix-ci?}. |
| 1554 |
@c JP |
| 1555 |
SRFI-13 の @code{string-compare-ci} は非常に柔軟な(しかし、使うのは |
| 1556 |
多少難しい)機能を提供しています。@ref{SRFI-13 String comparison}参照。 |
| 1557 |
ふたつの文字列の固定長の接頭辞が一致しているかどうかをチェックしたい |
| 1558 |
だけなら、SRFI-13 の @code{string-prefix-ci?} が使えます。 |
| 1559 |
@c COMMON |
| 1560 |
@item strncmp |
| 1561 |
@c EN |
| 1562 |
SRFI-13 @code{string-compare} provides the most flexible |
| 1563 |
(but a bit difficult to use) functionality. |
| 1564 |
@xref{SRFI-13 String comparison}. |
| 1565 |
If what you want is just to check the fixed-length prefixes of two |
| 1566 |
string matches, you can use SRFI-13 @code{string-prefix?}. |
| 1567 |
@xref{SRFI-13 String prefixes & suffixes}. |
| 1568 |
@c JP |
| 1569 |
SRFI-13 の @code{string-compare-ci} は非常に柔軟な(しかし、使うのは |
| 1570 |
多少難しい)機能を提供しています。@ref{SRFI-13 String comparison}参照。 |
| 1571 |
ふたつの文字列の固定長の接頭辞が一致しているかどうかをチェックしたい |
| 1572 |
だけなら、SRFI-13 の @code{string-prefix-ci?} が使えます。 |
| 1573 |
@ref{SRFI-13 String prefixes & suffixes}参照。 |
| 1574 |
@c COMMON |
| 1575 |
@item strncpy |
| 1576 |
@c EN |
| 1577 |
SRFI-13 @code{substring}. @xref{String utilities}. |
| 1578 |
@c JP |
| 1579 |
SRFI-13 の @code{substring}。@ref{String utilities}参照。 |
| 1580 |
@c COMMON |
| 1581 |
@item strpbrk |
| 1582 |
@c EN |
| 1583 |
Not directly supported, but you can use SRFI-13 @code{string-skip} |
| 1584 |
with a character set. @xref{SRFI-13 String searching}. |
| 1585 |
@c JP |
| 1586 |
直接はサポートされていませんが、文字集合と SRFI-13 の @code{string-skip} |
| 1587 |
が使えます。@ref{SRFI-13 String searching}参照。 |
| 1588 |
@c COMMON |
| 1589 |
@item strrchr |
| 1590 |
@c EN |
| 1591 |
SRFI-13 @code{string-index-right}. @xref{SRFI-13 String searching}. |
| 1592 |
@c JP |
| 1593 |
SRFI-13 の @code{string-index-right}。@ref{SRFI-13 String searching}参照。 |
| 1594 |
@c COMMON |
| 1595 |
@item strspn |
| 1596 |
@c EN |
| 1597 |
Not directly supported, but you can use SRFI-13 @code{string-index} |
| 1598 |
with a character set. @xref{SRFI-13 String searching}. |
| 1599 |
@c JP |
| 1600 |
直接はサポートされていませんが、文字集合と SRFI-13 の @code{string-index} |
| 1601 |
が使えます。@ref{SRFI-13 String searching}参照。 |
| 1602 |
@c COMMON |
| 1603 |
@item strstr |
| 1604 |
@c EN |
| 1605 |
SRFI-13 @code{string-contains}. @xref{SRFI-13 String searching}. |
| 1606 |
@c JP |
| 1607 |
SRFI-13 の @code{string-contains}。@ref{SRFI-13 String searching}参照。 |
| 1608 |
@c COMMON |
| 1609 |
@item strtod |
| 1610 |
@c EN |
| 1611 |
You can use R7RS @code{string->number}. @xref{Numerical conversions}. |
| 1612 |
@c JP |
| 1613 |
R7RS の @code{string->number}が使えます。@ref{Numerical conversions}参照。 |
| 1614 |
@c COMMON |
| 1615 |
@item strtok |
| 1616 |
@c EN |
| 1617 |
SRFI-13 @code{string-tokenize}. @xref{SRFI-13 Other string operations}. |
| 1618 |
@c JP |
| 1619 |
SRFI-13 の @code{string-tokenize}。@ref{SRFI-13 Other string operations}参照。 |
| 1620 |
@c COMMON |
| 1621 |
@item strtol |
| 1622 |
@itemx strtoul |
| 1623 |
@c EN |
| 1624 |
You can use R7RS @code{string->number}. @xref{Numerical conversions}. |
| 1625 |
@c JP |
| 1626 |
R7RS の @code{string->number}が使えます。@ref{Numerical conversions}参照。 |
| 1627 |
@c COMMON |
| 1628 |
@item strxfrm |
| 1629 |
@c EN |
| 1630 |
Not supported yet. |
| 1631 |
@c JP |
| 1632 |
未サポート。 |
| 1633 |
@c COMMON |
| 1634 |
@item symlink |
| 1635 |
@c EN |
| 1636 |
Gauche's @code{sys-symlink}. @xref{Directory manipulation}. |
| 1637 |
This function is available on systems that support symbolic links. |
| 1638 |
@c JP |
| 1639 |
Gauche の @code{sys-symlink}。@ref{Directory manipulation}参照。 |
| 1640 |
この関数は、シンボリックリンクをサポートしているシステム上で利用可能です。 |
| 1641 |
@c COMMON |
| 1642 |
@item sysconf |
| 1643 |
@c EN |
| 1644 |
Not supported yet. |
| 1645 |
@c JP |
| 1646 |
未サポート。 |
| 1647 |
@c COMMON |
| 1648 |
@item system |
| 1649 |
@c EN |
| 1650 |
Gauche's @code{sys-system}. @xref{Process management}. |
| 1651 |
It is generally recommended to use the process library |
| 1652 |
(@ref{High-level process interface}). |
| 1653 |
@c JP |
| 1654 |
Gauche の @code{sys-system}。@ref{Process management}参照。 |
| 1655 |
一般的にはプロセスライブラリ(@ref{High-level process interface}) |
| 1656 |
を使うことを推奨します。 |
| 1657 |
@c COMMON |
| 1658 |
@item tan |
| 1659 |
@itemx tanh |
| 1660 |
@c EN |
| 1661 |
R7RS @code{tan} and Gauche @code{tanh}. @xref{Arithmetics}. |
| 1662 |
@c JP |
| 1663 |
R7RS の @code{tan} および Gauche の @code{tanh}。@ref{Arithmetics}参照。 |
| 1664 |
@c COMMON |
| 1665 |
@item tcdrain |
| 1666 |
@item tcflow |
| 1667 |
@item tcflush |
| 1668 |
@item tcgetattr |
| 1669 |
@item tcgetpgrp |
| 1670 |
@item tcsendbreak |
| 1671 |
@item tcsetattr |
| 1672 |
@item tcsetpgrp |
| 1673 |
@c EN |
| 1674 |
Corresponding functions are: @code{sys-tcdrain}, @code{sys-tcflow}, |
| 1675 |
@code{sys-tcflush}, @code{sys-tcgetattr}, @code{sys-tcgetpgrp}, |
| 1676 |
@code{sys-tcsendbreak}, @code{sys-tcsetattr}, @code{sys-tcsetpgrp}. |
| 1677 |
@xref{Terminal control}. |
| 1678 |
@c JP |
| 1679 |
対応する関数はそれぞれ、@code{sys-tcdrain}、@code{sys-tcflow}、 |
| 1680 |
@code{sys-tcflush}、@code{sys-tcgetattr}、@code{sys-tcgetpgrp}、 |
| 1681 |
@code{sys-tcsendbreak}、@code{sys-tcsetattr}、@code{sys-tcsetpgrp} です。 |
| 1682 |
@ref{Terminal control}参照。 |
| 1683 |
@c COMMON |
| 1684 |
@item time |
| 1685 |
@c EN |
| 1686 |
Gauche's @code{sys-time}. @xref{Time}. |
| 1687 |
@c JP |
| 1688 |
Gauche の @code{sys-time}。 @ref{Time}参照。 |
| 1689 |
@c COMMON |
| 1690 |
@item times |
| 1691 |
@c EN |
| 1692 |
Gauche's @code{sys-times}. @xref{System inquiry}. |
| 1693 |
@c JP |
| 1694 |
Gauche の @code{sys-times}。@ref{System inquiry}参照。 |
| 1695 |
@c COMMON |
| 1696 |
@item tmpfile |
| 1697 |
@c EN |
| 1698 |
Not exactly supported. See @code{sys-mkstemp} instead. |
| 1699 |
@xref{Directory manipulation}. |
| 1700 |
@c JP |
| 1701 |
厳密には、サポートしません。@code{sys-mkstemp}を見てください。 |
| 1702 |
@ref{Directory manipulation}参照。 |
| 1703 |
@c COMMON |
| 1704 |
@item tmpnam |
| 1705 |
@c EN |
| 1706 |
Gauche's @code{sys-tmpnam}. |
| 1707 |
This function is provided since it is in POSIX, but its use is |
| 1708 |
discouraged for the potential security risk. Use @code{sys-mkstemp} |
| 1709 |
instead. @xref{Directory manipulation}. |
| 1710 |
@c JP |
| 1711 |
Gauche の @code{sys-tmpnam}。この関数は POSIX にあるので提供されていますが、 |
| 1712 |
潜在的なセキュリティリスクがあるため、利用はおすすめできません。 |
| 1713 |
代りに @code{sys-mkstemp} を使いましょう。@ref{Directory manipulation}参照。 |
| 1714 |
@c COMMON |
| 1715 |
@item tolower |
| 1716 |
@itemx toupper |
| 1717 |
@c EN |
| 1718 |
R7RS @code{char-upcase} and @code{char-downcase}. @xref{Characters}. |
| 1719 |
@c JP |
| 1720 |
R7RS の @code{char-upcase} および @code{char-downcase}。@ref{Characters}参照。 |
| 1721 |
@c COMMON |
| 1722 |
@item ttyname |
| 1723 |
@c EN |
| 1724 |
Gauche's @code{sys-ttyname}. @xref{Other file operations}. |
| 1725 |
@c JP |
| 1726 |
Gauche の @code{sys-ttyname}。@ref{Other file operations}参照。 |
| 1727 |
@c COMMON |
| 1728 |
@item tzset |
| 1729 |
@c EN |
| 1730 |
Not supported yet. |
| 1731 |
@c JP |
| 1732 |
未サポート。 |
| 1733 |
@c COMMON |
| 1734 |
@item umask |
| 1735 |
@c EN |
| 1736 |
Gauche's @code{sys-umask}. @xref{Directory manipulation}. |
| 1737 |
@c JP |
| 1738 |
Gauche の @code{sys-umask}。@ref{Directory manipulation}参照。 |
| 1739 |
@c COMMON |
| 1740 |
@item uname |
| 1741 |
@c EN |
| 1742 |
Gauche's @code{sys-uname}. @xref{System inquiry}. |
| 1743 |
@c JP |
| 1744 |
Gauche の @code{sys-uname}。@ref{System inquiry}参照。 |
| 1745 |
@c COMMON |
| 1746 |
@item ungetc |
| 1747 |
@c EN |
| 1748 |
Not directly supported. You can use @code{peek-char} to look |
| 1749 |
one character ahead, instead of pushing back. |
| 1750 |
@c JP |
| 1751 |
直接はサポートされません。プッシュしなおす代りに、@code{peek-char} をつかって |
| 1752 |
先読みしましょう。 |
| 1753 |
@c COMMON |
| 1754 |
@item unlink |
| 1755 |
@c EN |
| 1756 |
Gauche's @code{sys-unlink}. @xref{Directory manipulation}. |
| 1757 |
@c JP |
| 1758 |
Gauche の @code{sys-unlink}。@ref{Directory manipulation}参照。 |
| 1759 |
@c COMMON |
| 1760 |
@item utime |
| 1761 |
@c EN |
| 1762 |
Gauche's @code{sys-utime}. @xref{File stats}. |
| 1763 |
@c JP |
| 1764 |
Gauche の @code{sys-utime}。@ref{File stats}参照。 |
| 1765 |
@c COMMON |
| 1766 |
@item va_arg |
| 1767 |
@itemx va_end |
| 1768 |
@itemx va_start |
| 1769 |
@c EN |
| 1770 |
Not necessary, for Scheme handles variable number of arguments naturally. |
| 1771 |
@c JP |
| 1772 |
Scheme は可変長引数を自然に処理できますので、必要ありません。 |
| 1773 |
@c COMMON |
| 1774 |
@item vfprintf |
| 1775 |
@itemx vprintf |
| 1776 |
@itemx vsprintf |
| 1777 |
@c EN |
| 1778 |
Not directly supported, but Gauche's @code{format} |
| 1779 |
provides similar functionality. @xref{Output}. |
| 1780 |
SLIB has @code{printf} implementation. |
| 1781 |
@c JP |
| 1782 |
直接はサポートされていませんが、Gauche の @code{format} は類似の機能を |
| 1783 |
提供しています。@ref{Output} 参照。SLIB には @code{printf} の実装があります。 |
| 1784 |
@c COMMON |
| 1785 |
@item wait |
| 1786 |
@c EN |
| 1787 |
Gauche's @code{sys-wait}. @xref{Process management}. |
| 1788 |
@c JP |
| 1789 |
Gauche の @code{sys-wait}。@ref{Process management}参照。 |
| 1790 |
@c COMMON |
| 1791 |
@item waitpid |
| 1792 |
@c EN |
| 1793 |
Gauche's @code{sys-waitpid}. @xref{Process management}. |
| 1794 |
@c JP |
| 1795 |
Gauche の @code{sys-waitpid}。@ref{Process management}参照。 |
| 1796 |
@c COMMON |
| 1797 |
@item wcstombs |
| 1798 |
@itemx wctomb |
| 1799 |
@c EN |
| 1800 |
Gauche handles multibyte strings internally, so generally you don't |
| 1801 |
need to care about multibyte-ness of the string. @code{string-length} |
| 1802 |
always returns a number of characters for a string in supported |
| 1803 |
encoding. If you want to convert the character encoding, |
| 1804 |
see @ref{Character code conversion}. |
| 1805 |
@c JP |
| 1806 |
Gauche はマルチバイト文字列を内部的に処理します。それゆえ、一般的には |
| 1807 |
文字列がマルチバイトであるかどうかを気にする必要はありません。 |
| 1808 |
@code{string-length} は常にサポートされているエンコーディングでの文字列の |
| 1809 |
文字数を返します。文字エンコーディングを変換したければ、 |
| 1810 |
@ref{Character code conversion}を参照してください。 |
| 1811 |
@c COMMON |
| 1812 |
@item write |
| 1813 |
@c EN |
| 1814 |
R7RS @code{display} (@pxref{Output}). |
| 1815 |
Or @code{write-uvector} (@pxref{Uvector block I/O}). |
| 1816 |
@c JP |
| 1817 |
R7RS の @code{display} (@pxref{Output})。 |
| 1818 |
あるいは @code{write-uvector} (@ref{Uvector block I/O}参照)。 |
| 1819 |
@c COMMON |
| 1820 |
@end table |
| 1821 |
|
| 1822 |
@c Appendix : Common Lisp to Scheme mapping |
| 1823 |
@c Appendix : Perl to Scheme mapping |
| 1824 |
@c Appendix : Python to Scheme mapping? |
| 1825 |
|
| 1826 |
@c Local variables: |
| 1827 |
@c mode: texinfo |
| 1828 |
@c coding: utf-8 |
| 1829 |
@c end: |