source: project/wiki/man/5/TODO/Unit posix @ 35117

Last change on this file since 35117 was 35117, checked in by sjamaan, 9 months ago

man/5/TODO: Remove posix C to Scheme mapping, it is not very helpful and in CHICKEN 5 this stuff is scattered around

File size: 1.2 KB
Line 
1[[tags: manual]]
2[[toc:]]
3
4== Unit posix
5
6This unit provides services as used on many UNIX-like systems.  Note that
7the following definitions are not all available on non-UNIX systems like
8Windows. See below for Windows specific notes.
9
10This unit uses the {{irregex}}, {{scheduler}}, and {{extras}} units.
11
12All errors related to failing file-operations will signal a condition
13of kind {{(exn i/o file)}}.
14
15
16=== Terminal ports
17
18==== terminal-name
19
20<procedure>(terminal-name PORT)</procedure>
21
22Returns the name of the terminal that is connected to {{PORT}}.
23
24==== terminal-port?
25
26<procedure>(terminal-port? PORT)</procedure>
27
28Returns {{#t}} if {{PORT}} is connected to a terminal and
29{{#f}} otherwise.
30
31
32==== terminal-size
33
34<procedure>(terminal-size PORT)</procedure>
35
36Returns two values, the number of columns and rows of the terminal
37that is connected to {{PORT}} or {{0}}, {{0}} if the terminal size can
38not be obtained. On Windows, this procedure always returns {{0}},
39{{0}}.
40
41
42
43=== Windows specific notes
44
45==== Unsupported Definitions
46
47The following definitions are not supported for native Windows builds (compiled with the
48Microsoft tools or with MinGW):
49
50 change-directory*
51 terminal-port?  terminal-name
52
53----
54Previous: [[Unit srfi-4]]
55
56Next: [[Unit tcp]]
Note: See TracBrowser for help on using the repository browser.