Debian Codegraph @

info/gcl-si/System-Definitions.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>System Definitions (GCL SI Manual)</title>
7
8 <meta name="description" content="System Definitions (GCL SI Manual)">
9 <meta name="keywords" content="System Definitions (GCL SI Manual)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="Function-and-Variable-Index.html" rel="index" title="Function and Variable Index">
15 <link href="Function-and-Variable-Index.html#SEC_Contents" rel="contents" title="Table of Contents">
16 <link href="index.html" rel="up" title="Top">
17 <link href="Regular-Expressions.html" rel="next" title="Regular Expressions">
18 <link href="Available-Symbols.html" rel="prev" title="Available Symbols">
19 <style type="text/css">
20 <!--
21 a.summary-letter {text-decoration: none}
22 blockquote.indentedblock {margin-right: 0em}
23 div.display {margin-left: 3.2em}
24 div.example {margin-left: 3.2em}
25 div.lisp {margin-left: 3.2em}
26 kbd {font-style: oblique}
27 pre.display {font-family: inherit}
28 pre.format {font-family: inherit}
29 pre.menu-comment {font-family: serif}
30 pre.menu-preformatted {font-family: serif}
31 span.nolinebreak {white-space: nowrap}
32 span.roman {font-family: initial; font-weight: normal}
33 span.sansserif {font-family: sans-serif; font-weight: normal}
34 ul.no-bullet {list-style: none}
35 -->
36 </style>
37
38
39 </head>
40
41 <body lang="en">
42 <span id="System-Definitions"></span><div class="header">
43 <p>
44 Next: <a href="Debugging.html" accesskey="n" rel="next">Debugging</a>, Previous: <a href="C-Interface.html" accesskey="p" rel="prev">C Interface</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> &nbsp; [<a href="Function-and-Variable-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p>
45 </div>
46 <hr>
47 <span id="System-Definitions-1"></span><h2 class="chapter">17 System Definitions</h2>
48
49
50 <dl>
51 <dt id="index-ALLOCATE_002dCONTIGUOUS_002dPAGES">Function: <strong>ALLOCATE-CONTIGUOUS-PAGES</strong> <em>(number &amp;optional (really-allocate nil))</em></dt>
52 <dd><p>Package:SI
53 </p>
54 <p>GCL specific: Sets the maximum number of pages for contiguous blocks to
55 NUMBER. If REALLY-ALLOCATE is non-NIL, then the specified
56 number of pages will be allocated immediately.
57 </p>
58
59 </dd></dl>
60 <dl>
61 <dt id="index-FREEZE_002dDEFSTRUCT">Function: <strong>FREEZE-DEFSTRUCT</strong> <em>(name)</em></dt>
62 <dd><p>Package:SI
63 </p>
64 <p>The inline defstruct type checker will be made more efficient, in that
65 it will only check for types which currently include NAME. After
66 calling this the defstruct should not be altered.
67 </p>
68
69 </dd></dl>
70 <dl>
71 <dt id="index-MAXIMUM_002dALLOCATABLE_002dPAGES">Function: <strong>MAXIMUM-ALLOCATABLE-PAGES</strong> <em>(type)</em></dt>
72 <dd><p>Package:SI
73 </p>
74 <p>GCL specific: Returns the current maximum number of pages for the type class
75 of the GCL implementation type TYPE.
76 </p>
77
78 </dd></dl>
79 <dl>
80 <dt id="index-ALLOCATED_002dRELOCATABLE_002dPAGES">Function: <strong>ALLOCATED-RELOCATABLE-PAGES</strong> <em>()</em></dt>
81 <dd><p>Package:SI
82 </p>
83 <p>GCL specific: Returns the number of pages currently allocated for relocatable
84 blocks.
85 </p>
86
87 </dd></dl>
88 <dl>
89 <dt id="index-PUTPROP">Function: <strong>PUTPROP</strong> <em>(symbol value indicator)</em></dt>
90 <dd><p>Package:SI
91 </p>
92 <p>Give SYMBOL the VALUE on INDICATOR property.
93 </p>
94
95 </dd></dl>
96 <dl>
97 <dt id="index-ALLOCATED_002dPAGES">Function: <strong>ALLOCATED-PAGES</strong> <em>(type)</em></dt>
98 <dd><p>Package:SI
99 </p>
100 <p>GCL specific: Returns the number of pages currently allocated for the type
101 class of the GCL implementation type TYPE.
102 </p>
103
104 </dd></dl>
105 <dl>
106 <dt id="index-ALLOCATE_002dRELOCATABLE_002dPAGES">Function: <strong>ALLOCATE-RELOCATABLE-PAGES</strong> <em>(number)</em></dt>
107 <dd><p>Package:SI
108 </p>
109 <p>GCL specific: Sets the maximum number of pages for relocatable blocks to
110 NUMBER.
111 </p>
112
113 </dd></dl>
114 <dl>
115 <dt id="index-ALLOCATED_002dCONTIGUOUS_002dPAGES">Function: <strong>ALLOCATED-CONTIGUOUS-PAGES</strong> <em>()</em></dt>
116 <dd><p>Package:SI
117 </p>
118 <p>GCL specific: Returns the number of pages currently allocated for contiguous
119 blocks.
120 </p>
121
122 </dd></dl>
123 <dl>
124 <dt id="index-MAXIMUM_002dCONTIGUOUS_002dPAGES">Function: <strong>MAXIMUM-CONTIGUOUS-PAGES</strong> <em>()</em></dt>
125 <dd><p>Package:SI
126 </p>
127 <p>GCL specific: Returns the current maximum number of pages for contiguous
128 blocks.
129 </p>
130
131 </dd></dl>
132 <dl>
133 <dt id="index-GET_002dHOLE_002dSIZE">Function: <strong>GET-HOLE-SIZE</strong> <em>()</em></dt>
134 <dd><p>Package:SI
135 </p>
136 <p>GCL specific: Returns as a fixnum the size of the memory hole (in pages).
137 </p>
138
139 </dd></dl>
140 <dl>
141 <dt id="index-SPECIALP">Function: <strong>SPECIALP</strong> <em>(symbol)</em></dt>
142 <dd><p>Package:SI
143 </p>
144 <p>GCL specific: Returns T if the SYMBOL is a globally special variable; NIL
145 otherwise.
146 </p>
147
148 </dd></dl>
149 <dl>
150 <dt id="index-OUTPUT_002dSTREAM_002dSTRING">Function: <strong>OUTPUT-STREAM-STRING</strong> <em>(string-output-stream)</em></dt>
151 <dd><p>Package:SI
152 </p>
153 <p>GCL specific: Returns the string corresponding to the STRING-OUTPUT-STREAM.
154 </p>
155
156 </dd></dl>
157 <dl>
158 <dt id="index-GET_002dSTRING_002dINPUT_002dSTREAM_002dINDEX">Function: <strong>GET-STRING-INPUT-STREAM-INDEX</strong> <em>(string-input-stream)</em></dt>
159 <dd><p>Package:SI
160 </p>
161 <p>GCL specific: Returns the current index of the STRING-INPUT-STREAM.
162 </p>
163
164 </dd></dl>
165 <dl>
166 <dt id="index-STRING_002dCONCATENATE">Function: <strong>STRING-CONCATENATE</strong> <em>(&amp;rest strings)</em></dt>
167 <dd><p>Package:SI
168 </p>
169 <p>GCL specific: Returns the result of concatenating the given STRINGS.
170 </p>
171
172 </dd></dl>
173 <dl>
174 <dt id="index-BDS_002dVAR">Function: <strong>BDS-VAR</strong> <em>(i)</em></dt>
175 <dd><p>Package:SI
176 </p>
177 <p>GCL specific: Returns the symbol of the i-th entity in the bind stack.
178 </p>
179
180 </dd></dl>
181 <dl>
182 <dt id="index-ERROR_002dSET">Function: <strong>ERROR-SET</strong> <em>(form)</em></dt>
183 <dd><p>Package:SI
184 </p>
185 <p>GCL specific: Evaluates the FORM in the null environment. If the evaluation
186 of the FORM has successfully completed, SI:ERROR-SET returns NIL as the first
187 value and the result of the evaluation as the rest of the values. If, in the
188 course of the evaluation, a non-local jump from the FORM is atempted,
189 SI:ERROR-SET traps the jump and returns the corresponding jump tag as its
190 value.
191 </p>
192
193 </dd></dl>
194 <dl>
195 <dt id="index-COMPILED_002dFUNCTION_002dNAME">Function: <strong>COMPILED-FUNCTION-NAME</strong> <em>(compiled-function-object)</em></dt>
196 <dd><p>Package:SI
197 </p>
198 <p>GCL specific: Returns the name of the COMPILED-FUNCTION-OBJECT.
199 </p>
200
201 </dd></dl>
202 <dl>
203 <dt id="index-STRUCTUREP">Function: <strong>STRUCTUREP</strong> <em>(object)</em></dt>
204 <dd><p>Package:SI
205 </p>
206 <p>GCL specific: Returns T if the OBJECT is a structure; NIL otherwise.
207 </p>
208
209 </dd></dl>
210 <dl>
211 <dt id="index-IHS_002dVS">Function: <strong>IHS-VS</strong> <em>(i)</em></dt>
212 <dd><p>Package:SI
213 </p>
214 <p>GCL specific: Returns the value stack index of the i-th entity in the
215 invocation history stack.
216 </p>
217
218 </dd></dl>
219 <dl>
220 <dt id="index-UNIVERSAL_002dERROR_002dHANDLER">Function: <strong>UNIVERSAL-ERROR-HANDLER</strong> <em>(error-name correctable function-name continue-format-string error-format-string &amp;rest args)</em></dt>
221 <dd><p>Package:SI
222 </p>
223 <p>GCL specific: Starts the error handler of GCL. When an error is detected,
224 GCL calls SI:UNIVERSAL-ERROR-HANDLER with the specified arguments.
225 ERROR-NAME is the name of the error. CORRECTABLE is T for a correctable
226 error and NIL for a fatal error. FUNCTION-NAME is the name of the function
227 that caused the error. CONTINUE-FORMAT-STRING and ERROR-FORMAT-STRING are
228 the format strings of the error message. ARGS are the arguments to the
229 format strings.
230 To change the error handler of GCL, redefine SI:UNIVERSAL-ERROR-
231 HANDLER.
232 </p>
233
234 </dd></dl>
235 <dl>
236 <dt id="index-_002aINTERRUPT_002dENABLE_002a">Variable: <strong>*INTERRUPT-ENABLE*</strong></dt>
237 <dd><p>Package:SI
238 GCL specific: If the value of SI:*INTERRUPT-ENABLE* is non-NIL, GCL signals
239 an error on the terminal interrupt (this is the default case). If it is NIL,
240 GCL ignores the interrupt and assigns T to SI:*INTERRUPT-ENABLE*.
241 </p>
242
243 </dd></dl>
244 <dl>
245 <dt id="index-CHDIR">Function: <strong>CHDIR</strong> <em>(pathname)</em></dt>
246 <dd><p>Package:SI
247 </p>
248 <p>GCL/UNIX specific: Changes the current working directory to the specified
249 pathname.
250 </p>
251
252 </dd></dl>
253 <dl>
254 <dt id="index-COPY_002dSTREAM">Function: <strong>COPY-STREAM</strong> <em>(in-stream out-stream)</em></dt>
255 <dd><p>Package:SI
256 </p>
257 <p>GCL specific: Copies IN-STREAM to OUT-STREAM until the end-of-file on IN-
258 STREAM.
259 </p>
260
261 </dd></dl>
262 <dl>
263 <dt id="index-INIT_002dSYSTEM">Function: <strong>INIT-SYSTEM</strong> <em>()</em></dt>
264 <dd><p>Package:SI
265 </p>
266 <p>GCL specific: Initializes the library and the compiler of GCL. Since they
267 have already been initialized in the standard image of GCL, calling SI:INIT-
268 SYSTEM will cause an error.
269 </p>
270
271 </dd></dl>
272 <dl>
273 <dt id="index-_002aINDENT_002dFORMATTED_002dOUTPUT_002a">Variable: <strong>*INDENT-FORMATTED-OUTPUT*</strong></dt>
274 <dd><p>Package:SI
275 GCL specific: The FORMAT directive ~% indents the next line if the value of
276 this variable is non-NIL. If NIL, ~% simply does Newline.
277 </p>
278
279 </dd></dl>
280 <dl>
281 <dt id="index-SET_002dHOLE_002dSIZE">Function: <strong>SET-HOLE-SIZE</strong> <em>(fixnum)</em></dt>
282 <dd><p>Package:SI
283 </p>
284 <p>GCL specific: Sets the size of the memory hole (in pages).
285 </p>
286
287 </dd></dl>
288 <dl>
289 <dt id="index-FRS_002dBDS">Function: <strong>FRS-BDS</strong> <em>(i)</em></dt>
290 <dd><p>Package:SI
291 </p>
292 <p>GCL specific: Returns the bind stack index of the i-th entity in the frame
293 stack.
294 </p>
295
296 </dd></dl>
297 <dl>
298 <dt id="index-IHS_002dFUN">Function: <strong>IHS-FUN</strong> <em>(i)</em></dt>
299 <dd><p>Package:SI
300 </p>
301 <p>GCL specific: Returns the function value of the i-th entity in the invocation
302 history stack.
303 </p>
304
305 </dd></dl>
306 <dl>
307 <dt id="index-_002aMAKE_002dCONSTANT">Function: <strong>*MAKE-CONSTANT</strong> <em>(symbol value)</em></dt>
308 <dd><p>Package:SI
309 </p>
310 <p>GCL specific: Makes the SYMBOL a constant with the specified VALUE.
311 </p>
312
313 </dd></dl>
314 <dl>
315 <dt id="index-FIXNUMP">Function: <strong>FIXNUMP</strong> <em>(object)</em></dt>
316 <dd><p>Package:SI
317 </p>
318 <p>GCL specific: Returns T if the OBJECT is a fixnum; NIL otherwise.
319 </p>
320
321 </dd></dl>
322 <dl>
323 <dt id="index-BDS_002dVAL">Function: <strong>BDS-VAL</strong> <em>(i)</em></dt>
324 <dd><p>Package:SI
325 </p>
326 <p>GCL specific: Returns the value of the i-th entity in the bind stack.
327 </p>
328
329 </dd></dl>
330 <dl>
331 <dt id="index-STRING_002dTO_002dOBJECT">Function: <strong>STRING-TO-OBJECT</strong> <em>(string)</em></dt>
332 <dd><p>Package:SI
333 </p>
334 <p>GCL specific: (SI:STRING-TO-OBJECT STRING) is equivalent to
335 (READ-FROM-STRING STRING), but much faster.
336 </p>
337
338 </dd></dl>
339 <dl>
340 <dt id="index-_002aSYSTEM_002dDIRECTORY_002a">Variable: <strong>*SYSTEM-DIRECTORY*</strong></dt>
341 <dd><p>Package:SI
342 GCL specific: Holds the name of the system directory of GCL.
343 </p>
344
345 </dd></dl>
346 <dl>
347 <dt id="index-FRS_002dIHS">Function: <strong>FRS-IHS</strong> <em>(i)</em></dt>
348 <dd><p>Package:SI
349 </p>
350 <p>GCL specific: Returns the invocation history stack index of the i-th entity
351 in the frame stack.
352 </p>
353
354 </dd></dl>
355 <dl>
356 <dt id="index-RESET_002dGBC_002dCOUNT">Function: <strong>RESET-GBC-COUNT</strong> <em>()</em></dt>
357 <dd><p>Package:SI
358 </p>
359 <p>GCL specific: Resets the counter of the garbage collector that records how
360 many times the garbage collector has been called for each implementation
361 type.
362 </p>
363
364 </dd></dl>
365 <dl>
366 <dt id="index-CATCH_002dBAD_002dSIGNALS">Function: <strong>CATCH-BAD-SIGNALS</strong> <em>()</em></dt>
367 <dd><p>Package:SI
368 </p>
369 <p>GCL/BSD specific: Installs a signal catcher for bad signals:
370 SIGILL, SIGIOT, SIGEMT, SIGBUS, SIGSEGV, SIGSYS.
371 The signal catcher, upon catching the signal, signals an error (and enter
372 the break-level). Since the internal memory of GCL may be broken, the user
373 should check the signal and exit from GCL if necessary. When the signal
374 is caught during garbage collection, GCL terminates immediately.
375 </p>
376
377 </dd></dl>
378 <dl>
379 <dt id="index-RESET_002dSTACK_002dLIMITS">Function: <strong>RESET-STACK-LIMITS</strong> <em>()</em></dt>
380 <dd><p>Package:SI
381 </p>
382 <p>GCL specific: Resets the stack limits to the normal state. When a stack has
383 overflowed, GCL extends the limit for the stack in order to execute the error
384 handler. After processing the error, GCL resets the stack limit by calling
385 SI:RESET-STACK-LIMITS.
386 </p>
387
388 </dd></dl>
389 <dl>
390 <dt id="index-_002aGBC_002dMESSAGE_002a">Variable: <strong>*GBC-MESSAGE*</strong></dt>
391 <dd><p>Package:SI
392 GCL specific: If the value of SI:*GBC-MESSAGE* is non-NIL, the garbage
393 collector prints some information on the terminal. Usually SI:*GBC-MESSAGE*
394 should be set NIL.
395 </p>
396
397 </dd></dl>
398 <dl>
399 <dt id="index-_002aGBC_002dNOTIFY_002a">Variable: <strong>*GBC-NOTIFY*</strong></dt>
400 <dd><p>Package:SI
401 GCL specific: If the value is non-NIL, the garbage
402 collector prints a very brief one line message about the area causing the collection,
403 and the time spent in internal time units.
404 </p>
405
406 </dd></dl>
407 <dl>
408 <dt id="index-_002aAFTER_002dGBC_002dHOOK_002a">Variable: <strong>*AFTER-GBC-HOOK*</strong></dt>
409 <dd><p>Package:SI
410 Defaults to nil, but may be set to a function of one argument TYPE which is
411 a lisp variable indicating the TYPE which caused the current collection.
412 </p>
413
414 </dd></dl>
415 <dl>
416 <dt id="index-ALLOCATED">Funcition: <strong>ALLOCATED</strong> <em>(type)</em></dt>
417 <dd><p>Package:SI
418 </p>
419 <p>Returns 6 values:
420 </p><dl compact="compact">
421 <dt>nfree</dt>
422 <dd><p>number free
423 </p></dd>
424 <dt>npages</dt>
425 <dd><p>number of pages
426 </p></dd>
427 <dt>maxpage</dt>
428 <dd><p>number of pages to grow to
429 </p></dd>
430 <dt>nppage</dt>
431 <dd><p>number per page
432 </p></dd>
433 <dt>gbccount</dt>
434 <dd><p>number of gc&rsquo;s due to running out of items of this size
435 </p></dd>
436 <dt>nused</dt>
437 <dd><p>number of items used
438 </p></dd>
439 </dl>
440
441 <p>Note that all items of the same size are stored on similar pages.
442 Thus for example on a 486 under linux the following basic types are
443 all the same size and so will share the same allocated information:
444 CONS BIGNUM RATIO COMPLEX STRUCTURE.
445 </p>
446
447
448 </dd></dl>
449
450 <dl>
451 <dt id="index-_002aMAKE_002dSPECIAL">Function: <strong>*MAKE-SPECIAL</strong> <em>(symbol)</em></dt>
452 <dd><p>Package:SI
453 </p>
454 <p>GCL specific: Makes the SYMBOL globally special.
455 </p>
456
457 </dd></dl>
458 <dl>
459 <dt id="index-MAKE_002dSTRING_002dOUTPUT_002dSTREAM_002dFROM_002dSTRING">Function: <strong>MAKE-STRING-OUTPUT-STREAM-FROM-STRING</strong> <em>(string)</em></dt>
460 <dd><p>Package:SI
461 </p>
462 <p>GCL specific: Creates a string-output-stream corresponding to the STRING and
463 returns it. The STRING should have a fill-pointer.
464 </p>
465
466 </dd></dl>
467 <dl>
468 <dt id="index-_002aIGNORE_002dEOF_002dON_002dTERMINAL_002dIO_002a">Variable: <strong>*IGNORE-EOF-ON-TERMINAL-IO*</strong></dt>
469 <dd><p>Package:SI
470 GCL specific: If the value of SI:*IGNORE-EOF-ON-TERMINAL-IO* is non-NIL, GCL
471 ignores the eof-character (usually ^D) on the terminal and the terminal never
472 becomes end-of-file. The default value of SI:*IGNORE-EOF-ON-TERMINAL-IO* is
473 NIL.
474 </p>
475
476 </dd></dl>
477 <dl>
478 <dt id="index-ADDRESS">Function: <strong>ADDRESS</strong> <em>(object)</em></dt>
479 <dd><p>Package:SI
480 </p>
481 <p>GCL specific: Returns the address of the OBJECT as a fixnum. The address of
482 an object depends on the version of GCL. E.g. (SI:ADDRESS NIL) returns
483 1879062044 on GCL/AOSVS dated March 14, 1986.
484 </p>
485
486 </dd></dl>
487 <dl>
488 <dt id="index-_002aLISP_002dMAXPAGES_002a">Variable: <strong>*LISP-MAXPAGES*</strong></dt>
489 <dd><p>Package:SI
490 GCL specific: Holds the maximum number of pages (1 page = 2048 bytes) for the
491 GCL process. The result of changing the value of SI:*LISP-MAXPAGES* is
492 unpredictable.
493 </p>
494
495 </dd></dl>
496 <dl>
497 <dt id="index-ARGC">Function: <strong>ARGC</strong> <em>()</em></dt>
498 <dd><p>Package:SI
499 </p>
500 <p>GCL specific: Returns the number of arguments on the command line that invoked
501 the GCL process.
502 </p>
503
504 </dd></dl>
505 <dl>
506 <dt id="index-NANI">Function: <strong>NANI</strong> <em>(fixnum)</em></dt>
507 <dd><p>Package:SI
508 </p>
509 <p>GCL specific: Returns the object in the address FIXNUM. This function is
510 the inverse of SI:ADDRESS. Although SI:ADDRESS is a harmless operation,
511 SI:NANI is quite dangerous and should be used with care.
512 </p>
513
514 </dd></dl>
515 <dl>
516 <dt id="index-_002aNOTIFY_002dGBC_002a">Variable: <strong>*NOTIFY-GBC*</strong></dt>
517 <dd><p>Package:SI
518 GCL specific: If the value of this variable is non-NIL, then the garbage
519 collector notifies that it begins to run whenever it is invoked. Otherwise,
520 garbage collection begins silently.
521 </p>
522
523 </dd></dl>
524 <dl>
525 <dt id="index-SAVE_002dSYSTEM">Function: <strong>SAVE-SYSTEM</strong> <em>(pathname)</em></dt>
526 <dd><p>Package:SI
527 </p>
528 <p>GCL specific: Saves the current GCL core imange into a program file specified
529 by PATHNAME. This function differs from SAVE in that the contiguous and
530 relocatable areas are made permanent in the saved image. Usually the
531 standard image of GCL interpreter/compiler is saved by SI:SAVE-SYSTEM.
532 This function causes an exit from lisp. Various changes are made
533 to the memory of the running system, such as closing files and
534 resetting io streams. It would not be possible to continue normally.
535 </p>
536
537 </dd></dl>
538 <dl>
539 <dt id="index-UNCATCH_002dBAD_002dSIGNALS">Function: <strong>UNCATCH-BAD-SIGNALS</strong> <em>()</em></dt>
540 <dd><p>Package:SI
541 </p>
542 <p>GCL/BSD specific: Undoes the effect of SI:CATCH-BAD-SIGNALS.
543 </p>
544
545 </dd></dl>
546 <dl>
547 <dt id="index-VS">Function: <strong>VS</strong> <em>(i)</em></dt>
548 <dd><p>Package:SI
549 </p>
550 <p>GCL specific: Returns the i-th entity in the value stack.
551 </p>
552
553 </dd></dl>
554 <dl>
555 <dt id="index-DISPLACED_002dARRAY_002dP">Function: <strong>DISPLACED-ARRAY-P</strong> <em>(array)</em></dt>
556 <dd><p>Package:SI
557 </p>
558 <p>GCL specific: Returns T if the ARRAY is a displaced array; NIL otherwise.
559 </p>
560
561 </dd></dl>
562 <dl>
563 <dt id="index-ARGV">Function: <strong>ARGV</strong> <em>(fixnum)</em></dt>
564 <dd><p>Package:SI
565 </p>
566 <p>GCL specific: Returns the FIXNUM-th argument on the command line that invoked
567 the GCL process.
568 </p>
569
570 </dd></dl>
571 <dl>
572 <dt id="index-_002aDEFAULT_002dTIME_002dZONE_002a">Variable: <strong>*DEFAULT-TIME-ZONE*</strong></dt>
573 <dd><p>Package:SI
574 GCL specific: Holds the default time zone. The initial value of SI:*DEFAULT-
575 TIME-ZONE* is 6 (the time zone of Austin, Texas).
576 </p>
577
578 </dd></dl>
579 <dl>
580 <dt id="index-GETENV">Function: <strong>GETENV</strong> <em>(string)</em></dt>
581 <dd><p>Package:SI
582 </p>
583 <p>GCL/UNIX specific: Returns the environment with the name STRING as a string;
584 if the environment specified by STRING is not found, returns NIL.
585 </p>
586
587 </dd></dl>
588 <dl>
589 <dt id="index-FASLINK">Function: <strong>FASLINK</strong> <em>(file string)</em></dt>
590 <dd><p>Package:SI
591 </p>
592 <p>GCL/BSD specific: Loads the FASL file FILE while linking the object files and
593 libraries specified by STRING. For example,
594 (faslink &quot;foo.o&quot; &quot;bar.o boo.o -lpixrect&quot;)
595 loads foo.o while linking two object files (bar.o and boo.o) and the library
596 pixrect. Usually, foo.o consists of the C language interface for the
597 functions defined in the object files or the libraries.
598 </p>
599 <p>A more portable way of making references to C code, is to build it
600 in at the time of the original make. If foo.c references things
601 in -lpixrect, and foo.o is its compilation in the gcl/unixport directory
602 </p>
603 <p>(cd gcl/unixport ; make &quot;EXTRAS= foo.o -lpixrect &quot;)
604 </p>
605 <p>should add them. If EXTRAS was already joe.o in the unixport/makefile
606 you should of course add joe.o to the above &quot;EXTRAS= joe.o foo.o..&quot;
607 </p>
608 <p>Faslink does not work on most UNIX systems which are derived from SYS V or AIX.
609 </p>
610
611
612
613 </dd></dl>
614 <dl>
615 <dt id="index-TOP_002dLEVEL">Function: <strong>TOP-LEVEL</strong> <em>()</em></dt>
616 <dd><p>Package:SI
617 </p>
618 <p>GCL specific: Starts the standard top-level listner of GCL. When the GCL
619 process is invoked, it calls SI:TOP-LEVEL by (FUNCALL &rsquo;SI:TOP-LEVEL).
620 To change the top-level of GCL, redefine SI:TOP-LEVEL and save the core
621 imange in a file. When the saved imange is invoked, it will start the
622 redefined top-level.
623 </p>
624
625 </dd></dl>
626 <dl>
627 <dt id="index-FRS_002dVS">Function: <strong>FRS-VS</strong> <em>(i)</em></dt>
628 <dd><p>Package:SI
629 </p>
630 <p>GCL specific: Returns the value stack index of the i-th entity in the frame
631 stack.
632 </p>
633
634 </dd></dl>
635 <dl>
636 <dt id="index-WRITE_002dDEBUG_002dSYMBOLS">Function: <strong>WRITE-DEBUG-SYMBOLS</strong> <em>(start file &amp;key (main-file &quot;/usr/local/schelter/xgcl/unixport/raw_gcl&quot;) (output-file &quot;debug-symbols.o&quot; ))</em></dt>
637 <dd><p>Package:SI
638 </p>
639 <p>Write out a file of debug-symbols using address START as the place
640 where FILE will be loaded into the running executable MAIN-FILE. The
641 last is a keyword argument.
642 </p>
643
644
645
646 </dd></dl>
647 <dl>
648 <dt id="index-PROF">Function: <strong>PROF</strong> <em>(x y)</em></dt>
649 <dd><p>Package:SI
650 </p>
651 <p>These functions in the SI package are GCL specific, and allow monitoring
652 the run time of functions loaded into GCL, as well as the basic functions.
653 Sample Usage:
654 (si::set-up-profile 1000000) (si::prof 0 90)
655 run program
656 (si::prof 0 0) ;; turn off profile
657 (si::display-prof)
658 (si::clear-profile)
659 (si::prof 0 90) ;; start profile again
660 run program
661 ..
662 Profile can be stopped with (si::prof 0 0) and restarted with (si::prof 0 90)
663 The START-ADDRESS will correspond to the beginning of the profile array, and
664 the SCALE will mean that 256 bytes of code correspond to SCALE bytes in the
665 profile array.
666 </p>
667 <p>Thus if the profile array is 1,000,000 bytes long and the code segment is
668 5 megabytes long you can profile the whole thing using a scale of 50
669 Note that long runs may result in overflow, and so an understating of the
670 time in a function.
671 </p>
672 <p>You must run intensively however since, with a scale of 128 it takes
673 6,000,000 times through a loop to overflow the sampling in one part of
674 the code.
675 </p>
676
677 </dd></dl>
678 <dl>
679 <dt id="index-CATCH_002dFATAL">Function: <strong>CATCH-FATAL</strong> <em>(i)</em></dt>
680 <dd><p>Package:SI
681 </p>
682
683 <p>Sets the value of the C variable catch_fatal to I which should be an integer.
684 If catch_fatal is 1, then most unrecoverable fatal errors will be caught.
685 Upon catching such an error catch_fatal becomes -1, to avoid recursive errors.
686 The top level loop automatically sets catch_fatal to 1, if the value is less
687 than zero. Catching can be turned off by making catch_fatal = 0.
688 </p>
689
690
691
692 </dd></dl>
693 <dl>
694 <dt id="index-_002aMULTIPLY_002dSTACKS_002a">Variable: <strong>*MULTIPLY-STACKS*</strong></dt>
695 <dd><p>Package:SI
696 </p>
697 <p>If this variable is set to a positive fixnum, then the next time through the
698 TOP-LEVEL loop, the loop will be exited. The size of the stacks will be
699 multiplied by the value of *multiply-stacks*, and the TOP-LEVEL will be called
700 again. Thus to double the size of the stacks:
701 </p>
702 <p>&gt;(setq si::*multiply-stacks* 2)
703 [exits top level and reinvokes it, with the new stacks in place]
704 &gt;
705 </p>
706 <p>We must exit TOP-LEVEL, because it and any other lisp functions
707 maintain many pointers into the stacks, which would be incorrect when the
708 stacks have been moved. Interrupting the process of growing the stacks,
709 can leave you in an inconsistent state.
710 </p>
711
712 </dd></dl>
713 <dl>
714 <dt id="index-GBC_002dTIME">Function: <strong>GBC-TIME</strong> <em>(&amp;optional x)</em></dt>
715 <dd><p>Package:SI
716 </p>
717 <p>Sets the internal C variable gc_time to X if X is supplied and then
718 returns gc_time. If gc_time is greater or equal to 0, then gc_time is
719 incremented by the garbage collector, according to the number of
720 internal time units spent there. The initial value of gc_time is -1.
721 </p>
722
723
724 </dd></dl>
725 <dl>
726 <dt id="index-FWRITE">Function: <strong>FWRITE</strong> <em>(string start count stream)</em></dt>
727 <dd><p>Package:SI
728 </p>
729 <p>Write from STRING starting at char START (or 0 if it is nil) COUNT characters
730 (or to end if COUNT is nil) to STREAM. STREAM must be a stream such as
731 returned by FP-OUTPUT-STREAM. Returns nil if it fails.
732 </p>
733
734
735 </dd></dl>
736 <dl>
737 <dt id="index-FREAD">Function: <strong>FREAD</strong> <em>(string start count stream)</em></dt>
738 <dd><p>Package:SI
739 </p>
740 <p>Read characters into STRING starting at char START (or 0 if it is nil) COUNT
741 characters (or from start to length of STRING if COUNT is nil). Characters
742 are read from STREAM. STREAM must be a stream such as returned by
743 FP-INPUT-STREAM. Returns nil if it fails. Return number of characters read
744 if it succeeds.
745 </p>
746
747 </dd></dl>
748 <dl>
749 <dt id="index-SGC_002dON">Function: <strong>SGC-ON</strong> <em>(&amp;optional ON)</em></dt>
750 <dd><p>Package:SI
751 </p>
752 <p>If ON is not nil then SGC (stratified garbage collection) is turned
753 on. If ON is supplied and is nil, then SGC is turned off.
754 If ON is not supplied, then it returns T if SGC is on, and NIL if
755 SGC is off.
756 </p>
757 <p>The purpose of SGC is to prevent paging activity during garbage
758 collection. It is efficient if the actual number of pages being
759 written to form a small percentage of the total image size. The image
760 should be built as compactly as possible. This can be accomplished by
761 using a settings such as (si::allocate-growth &rsquo;cons 1 10 50 20) to limit
762 the growth in the cons maxpage to 10 pages per time. Then
763 just before calling si::save-system to save your image you can
764 do something like:
765 </p>
766 <p>(si::set-hole-size 500)(gbc nil) (si::sgc-on t) (si::save-system ..)
767 </p>
768 <p>This makes the saved image come up with SGC on. We have set a
769 reasonably large hole size. This is so that allocation of pages
770 either because they fill up, or through specific calls to
771 si::allocate, will not need to move all the relocatable data. Moving
772 relocatable data requires turning SGC off, performing a full gc, and
773 then turning it back on. New relocatable data is collected by SGC,
774 but moving the old requires going through all pages of memory to
775 change pointers into it.
776 </p>
777 <p>Using si::*notify-gbc* gives information about the number of pages
778 used by SGC.
779 </p>
780 <p>Note that SGC is only available on operating systems which provide
781 the mprotect system call, to write protect pages. Otherwise we
782 cannot tell which pages have been written too.
783 </p>
784
785
786 </dd></dl>
787 <dl>
788 <dt id="index-ALLOCATE_002dSGC">Function: <strong>ALLOCATE-SGC</strong> <em>(type min-pages max-pages percent-free)</em></dt>
789 <dd><p>Package:SI
790 </p>
791 <p>If MIN-PAGES is 0, then this type will not be swept by SGC. Otherwise
792 this is the minimum number of pages to make available to SGC. MAX-PAGES
793 is the upper limit of such pages. Only pages with PERCENT-FREE objects
794 on them, will be assigned to SGC.
795 A list of the previous values for min, max and percent are returned.
796 </p>
797
798 </dd></dl>
799 <dl>
800 <dt id="index-ALLOCATE_002dGROWTH">Function: <strong>ALLOCATE-GROWTH</strong> <em>(type min max percent percent-free)</em></dt>
801 <dd><p>Package:SI
802 </p>
803
804 <p>The next time after a garbage collection for TYPE, if PERCENT-FREE of
805 the objects of this TYPE are not actually free, and if the maximum
806 number of pages for this type has already been allocated, then the
807 maximum number will be increased by PERCENT of the old maximum,
808 subject to the condition that this increment be at least MIN pages and
809 at most MAX pages. A list of the previous values for min, max,
810 percent, and percent-free for the type TYPE is returned. A value
811 of 0 means use the system default, and if an argument is out of range
812 then the current values are returned with no change made.
813 </p>
814 <p>Examples:
815 (si::allocate-growth &rsquo;cons 1 10 50 10)
816 would insist that after a garbage collection for cons, there be at least
817 10% cons&rsquo;s free. If not the number of cons pages would be grown by
818 50% or 10 pages which ever was smaller. This might be reasonable if you
819 were trying to build an image which was &lsquo;full&rsquo;, ie had few free objects
820 of this type.
821 </p>
822 <p>(si::allocate-growth &rsquo;fixnum 0 10000 30 40)
823 would grow space till there were normally 40% free fixnums, usually
824 growing by 30% per time.
825 </p>
826 <p>(si::allocate-growth &rsquo;cons 0 0 0 40) would require 40% free conses after
827 garbage collection for conses, and would use system defaults for the the rate
828 to grow towards this goal.
829 </p>
830 <p>(si::allocate-growth &rsquo;cons -1 0 0 0)
831 would return the current values, but not make any changes.
832 </p>
833
834 </dd></dl>
835 <dl>
836 <dt id="index-OPEN_002dFASD">Function: <strong>OPEN-FASD</strong> <em>(stream direction eof-value table)</em></dt>
837 <dd><p>Package:SI
838 </p>
839 <p>Given file STREAM open for input or output in DIRECTION,
840 set it up to start writing or reading in fasd format. When
841 reading from this stream the EOF-VALUE will be returned when
842 the end a fasd end of dump marker is encountered. TABLE should
843 be an eq hashtable on output, a vector on input, or nil. In this
844 last case a default one will be constructed.
845 </p>
846 <p>We shall refer to the result as a &lsquo;fasd stream&rsquo;. It is
847 suitable as the arg to CLOSE-FASD, READ-FASD-TOP, and as the second
848 second arg to WRITE-FASD. As a lisp object it is actually a vector,
849 whose body coincides with:
850 </p>
851 <p>struct fasd {
852 object stream; /* lisp object of type stream */
853 object table; /* hash table used in dumping or vector on input*/
854 object eof; /* lisp object to be returned on coming to eof mark */
855 object direction; /* holds Cnil or Kinput or Koutput */
856 object package; /* the package symbols are in by default */
857 object index; /* integer. The current_dump index on write */
858 object filepos; /* nil or the position of the start */
859 object table_length; /* On read it is set to the size dump array needed
860 or 0
861 */
862 object macro ; }
863 </p>
864 <p>We did not use a defstruct for this, because we want the compiler to use this
865 and it makes bootstrapping more difficult. It is in &quot;cmpnew/fasdmacros.lsp&quot;
866 </p>
867
868
869 </dd></dl>
870 <dl>
871 <dt id="index-WRITE_002dFASD_002dTOP">Function: <strong>WRITE-FASD-TOP</strong> <em>(X FASD-STREAM)</em></dt>
872 <dd><p>Package:SI
873 </p>
874 <p>Write X to FASD-STREAM.
875 </p>
876
877 </dd></dl>
878 <dl>
879 <dt id="index-READ_002dFASD_002dTOP">Function: <strong>READ-FASD-TOP</strong> <em>(FASD-STREAM)</em></dt>
880 <dd><p>Package:SI
881 </p>
882 <p>Read the next object from FASD-STREAM. Return the eof-value of FASD-STREAM if we
883 encounter an eof marker put out by CLOSE-FASD. Encountering end of actual file
884 stream causes an error.
885 </p>
886
887 </dd></dl>
888 <dl>
889 <dt id="index-CLOSE_002dFASD">Function: <strong>CLOSE-FASD</strong> <em>(FASD-STREAM)</em></dt>
890 <dd><p>Package:SI
891 </p>
892 <p>On output write an eof marker to the associated file stream, and then
893 make FASD-STREAM invalid for further output. It also attempts to write
894 information to the stream on the size of the index table needed to read from the
895 stream from the last open. This is useful in growing the array.
896 It does not alter the file stream, other than for writing this information to it.
897 The file stream may be reopened for further use. It is an error
898 to OPEN-FASD the same file or file stream again with out first calling CLOSE-FASD.
899 </p>
900
901
902
903
904 </dd></dl>
905 <dl>
906 <dt id="index-FIND_002dSHARING_002dTOP">Function: <strong>FIND-SHARING-TOP</strong> <em>(x table)</em></dt>
907 <dd><p>Package:SI
908 </p>
909 <p>X is any lisp object and TABLE is an eq hash table. This walks through X
910 making entries to indicate the frequency of symbols,lists, and arrays.
911 Initially items get -1 when they are first met, and this is decremented by 1
912 each time the object occurs. Call this function on all the objects in a fasd
913 file, which you wish to share structure.
914 </p>
915
916 </dd></dl>
917 <dl>
918 <dt id="index-_002aLOAD_002dPATHNAME_002a">Variable: <strong>*LOAD-PATHNAME*</strong></dt>
919 <dd><p>Package:SI
920 Load binds this to the pathname of the file being loaded.
921 </p>
922
923 </dd></dl>
924 <dl>
925 <dt id="index-DEFINE_002dINLINE_002dFUNCTION">Macro: <strong>DEFINE-INLINE-FUNCTION</strong> <em>(fname vars &amp;body body)</em></dt>
926 <dd><p>Package:SI
927 </p>
928 <p>This is equivalent to defun except that VARS may not contain
929 &amp;optional, &amp;rest, &amp;key or &amp;aux. Also a compiler property is
930 added, which essentially saves the body and turns this into
931 a let of the VARS and then execution of the body. This
932 last is done using si::DEFINE-COMPILER-MACRO
933 Example:
934 (si::define-inline-function myplus (a b c) (+ a b c))
935 </p>
936
937 </dd></dl>
938 <dl>
939 <dt id="index-DEFINE_002dCOMPILER_002dMACRO">Macro: <strong>DEFINE-COMPILER-MACRO</strong> <em>(fname vars &amp;body body)</em></dt>
940 <dd><p>Package:SI
941 </p>
942 <p>FNAME may be the name of a function, but at compile time the macro
943 expansion given by this is used.
944 </p>
945 <p>(si::define-compiler-macro mycar (a) &lsquo;(car ,a))
946 </p>
947
948 </dd></dl>
949 <dl>
950 <dt id="index-DBL">Function: <strong>DBL</strong> <em>()</em></dt>
951 <dd><p>Package:SI
952 </p>
953 <p>Invoke a top level loop, in which debug commands may be entered.
954 These commands may also be entered at breaks, or in the error
955 handler.
956 See SOURCE-LEVEL-DEBUG
957 </p>
958
959 </dd></dl>
960 <dl>
961 <dt id="index-NLOAD">Function: <strong>NLOAD</strong> <em>(file)</em></dt>
962 <dd><p>Package:SI
963 </p>
964 <p>Load a file with the readtable bound to a special readtable, which
965 permits tracking of source line information as the file is loaded.
966 see SOURCE-LEVEL-DEBUG
967 </p>
968
969 </dd></dl>
970 <dl>
971 <dt id="index-BREAK_002dFUNCTION">Function: <strong>BREAK-FUNCTION</strong> <em>(function &amp;optional line absolute)</em></dt>
972 <dd><p>Package:SI
973 </p>
974 <p>Set a breakpoint for a FUNCTION at LINE if the function has source
975 information loaded. If ABSOLUTE is not nil, then the line is understood to be
976 relative to the beginning of the buffer. See also dbl-break-function, the
977 emacs command.
978 </p>
979
980 </dd></dl>
981 <dl>
982 <dt id="index-XDR_002dOPEN">Function: <strong>XDR-OPEN</strong> <em>(stream)</em></dt>
983 <dd><p>Package:SI
984 </p>
985 <p>Returns an object suitable for passing to XDR-READ if the stream
986 is an input stream, and XDR-WRITE if it was an output stream.
987 Note the stream must be a unix stream, on which si::fp-input-stream
988 or si::fp-output-stream would act as the identity.
989 </p>
990
991
992 </dd></dl>
993 <dl>
994 <dt id="index-FP_002dINPUT_002dSTREAM">Function: <strong>FP-INPUT-STREAM</strong> <em>(stream)</em></dt>
995 <dd><p>Package:SI
996 </p>
997 <p>Return a unix stream for input associated to STREAM if possible,
998 otherwise return nil.
999 </p>
1000
1001 </dd></dl>
1002 <dl>
1003 <dt id="index-FP_002dOUTPUT_002dSTREAM">Function: <strong>FP-OUTPUT-STREAM</strong> <em>(stream)</em></dt>
1004 <dd><p>Package:SI
1005 </p>
1006 <p>Return a unix stream for output associated to STREAM if possible,
1007 otherwise return nil.
1008 </p>
1009
1010
1011 </dd></dl>
1012 <dl>
1013 <dt id="index-XDR_002dREAD">Function: <strong>XDR-READ</strong> <em>(stream element)</em></dt>
1014 <dd><p>Package:SI
1015 </p>
1016 <p>Read one item from STREAM of type the type of ELEMENT. The representation
1017 of the elements is machine independent. The xdr routines are what is
1018 used by the basic unix rpc calls.
1019 </p>
1020
1021 </dd></dl>
1022 <dl>
1023 <dt id="index-XDR_002dWRITE">Function: <strong>XDR-WRITE</strong> <em>(stream element)</em></dt>
1024 <dd><p>Package:SI
1025 </p>
1026 <p>Write to STREAM the given ELEMENT.
1027 </p>
1028
1029
1030
1031 </dd></dl>
1032 <dl>
1033 <dt id="index-_002aTOP_002dLEVEL_002dHOOK_002a">Variable: <strong>*TOP-LEVEL-HOOK*</strong></dt>
1034 <dd><p>Package:SI
1035 If this variable is has a function as its value at start up time, then
1036 it is run immediately after the init.lsp file is loaded. This is useful
1037 for starting up an alternate top level loop.
1038 </p>
1039
1040 </dd></dl>
1041 <dl>
1042 <dt id="index-RUN_002dPROCESS">Function: <strong>RUN-PROCESS</strong> <em>(string arglist)</em></dt>
1043 <dd><p>Package:SI
1044 </p>
1045
1046 <p>Execute the command STRING in a subshell passing the strings in the
1047 list ARGLIST as arguments to the command. Return a two way stream
1048 associated to this. Use si::fp-output-stream to get an associated
1049 output stream or si::fp-input-stream.
1050 </p>
1051 <p>Bugs: It does not properly deallocate everything, so that it will fail
1052 if you call it too many times.
1053 </p>
1054
1055 </dd></dl>
1056
1057 <dl>
1058 <dt id="index-_002aCASE_002dFOLD_002dSEARCH_002a">Variable: <strong>*CASE-FOLD-SEARCH*</strong></dt>
1059 <dd><p>Package: SI
1060 Non nil means that a string-match should ignore case
1061 </p></dd></dl>
1062
1063 <dl>
1064 <dt id="index-STRING_002dMATCH">Function: <strong>STRING-MATCH</strong> <em>(pattern string &amp;optional start end)</em></dt>
1065 <dd><p>Package: SI
1066 Match regexp PATTERN in STRING starting in string starting at START
1067 and ending at END. Return -1 if match not found, otherwise
1068 return the start index of the first matchs. The variable
1069 *MATCH-DATA* will be set to a fixnum array of sufficient size to hold
1070 the matches, to be obtained with match-beginning and match-end.
1071 If it already contains such an array, then the contents of it will
1072 be over written.
1073 </p>
1074 <p>The form of a regexp pattern is discussed in See <a href="Regular-Expressions.html">Regular Expressions</a>.
1075 </p>
1076 </dd></dl>
1077
1078 <dl>
1079 <dt id="index-MATCH_002dBEGINNING">Function: <strong>MATCH-BEGINNING</strong> <em>(index)</em></dt>
1080 <dd><p>Returns the beginning of the I&rsquo;th match from the previous STRING-MATCH,
1081 where the 0th is for the whole regexp and the subsequent ones match parenthetical expressions. -1 is returned if there is no match, or if the *match-data*
1082 vector is not a fixnum array.
1083 </p></dd></dl>
1084
1085 <dl>
1086 <dt id="index-MATCH_002dEND">Function: <strong>MATCH-END</strong> <em>(index)</em></dt>
1087 <dd><p>Returns the end of the I&rsquo;th match from the previous STRING-MATCH
1088 </p></dd></dl>
1089
1090 <dl>
1091 <dt id="index-SOCKET">Function: <strong>SOCKET</strong> <em>(port &amp;key host server async myaddr myport daemon)</em></dt>
1092 <dd>
1093 <p>Establishes a socket connection to the specified PORT under a variety
1094 of circumstances.
1095 </p>
1096 <p>If HOST is specified, then it is a string designating the IP address
1097 of the server to which we are the client. ASYNC specifies that the
1098 connection should be made asynchronously, and the call return
1099 immediately. MYADDR and MYPORT can specify the IP address and port
1100 respectively of a client connection, for example when the running
1101 machine has several network interfaces.
1102 </p>
1103 <p>If SERVER is specified, then it is a function which will handle
1104 incoming connections to this PORT. DAEMON specifies that the running
1105 process should be forked to handle incoming connections in the
1106 background. If DAEMON is set to the keyword PERSISTENT, then the
1107 backgrounded process will survive when the parent process exits, and
1108 the SOCKET call returns NIL. Any other non-NIL setting of DAEMON
1109 causes the socket call to return the process id of the backgrounded
1110 process. DAEMON currently only works on BSD and Linux based systems.
1111 </p>
1112 <p>If DAEMON is not set or nil, or if the socket is not a SERVER socket,
1113 then the SOCKET call returns a two way stream. In this case, the
1114 running process is responsible for all I/O operations on the stream.
1115 Specifically, if a SERVER socket is created as a non-DAEMON, then the
1116 running process must LISTEN for connections, ACCEPT them when present,
1117 and call the SERVER function on the stream returned by ACCEPT.
1118 </p>
1119 </dd></dl>
1120
1121 <dl>
1122 <dt id="index-ACCEPT">Function: <strong>ACCEPT</strong> <em>(stream)</em></dt>
1123 <dd>
1124 <p>Creates a new two-way stream to handle an individual incoming
1125 connection to STREAM, which must have been created with the SOCKET
1126 function with the SERVER keyword set. ACCEPT should only be invoked
1127 when LISTEN on STREAM returns T. If the STREAM was created with the
1128 DAEMON keyword set in the call to SOCKET, ACCEPT is unnecessary and
1129 will be called automatically as needed.
1130 </p>
1131 </dd></dl>
1132
1133 <table class="menu" border="0" cellspacing="0">
1134 <tr><td align="left" valign="top">&bull; <a href="Regular-Expressions.html" accesskey="1">Regular Expressions</a></td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
1135 </td></tr>
1136 </table>
1137
1138 <hr>
1139 <div class="header">
1140 <p>
1141 Next: <a href="Debugging.html" accesskey="n" rel="next">Debugging</a>, Previous: <a href="C-Interface.html" accesskey="p" rel="prev">C Interface</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> &nbsp; [<a href="Function-and-Variable-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p>
1142 </div>
1143
1144
1145
1146 </body>
1147 </html>