Changeset 34490 in project


Ignore:
Timestamp:
09/02/17 13:53:23 (3 weeks ago)
Author:
sjamaan
Message:

man/5: Move change-directory[*] from TODO to Module (chicken process-context)

Location:
wiki/man/5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wiki/man/5/Module (chicken process-context)

    r34074 r34490  
    131131=== Process filesystem context
    132132
    133 Please note that the majority of the procedures in this section are
    134 pretty POSIX-specific, and not available on native Windows builds.  If
    135 that's the case, the description contains a note.
    136 
     133==== change-directory
     134
     135<procedure>(change-directory NAME)</procedure>
     136<procedure>(set! (current-directory) NAME)</procedure>
     137
     138Changes the current working directory to {{NAME}}.
     139
     140==== change-directory*
     141
     142<procedure>(change-directory* FD)</procedure>
     143<procedure>(set! (current-directory) FD)</procedure>
     144
     145Changes the current working directory to the one represented by the
     146file-descriptor {{FD}}, which should be an exact integer.
     147
     148'''NOTE''': Windows does not allow {{{open}}} on directories, so while
     149technically it is supported, in practice you cannot use this procedure
     150on Windows.
    137151
    138152==== current-directory
     
    149163<procedure>(set-root-directory! STRING)</procedure>
    150164
    151 Sets the root directory for the current process to the path given in {{STRING}}
    152 (using the {{chroot}} function).
    153 If the current process has no root permissions, the operation will fail.
     165Sets the root directory for the current process to the path given in
     166{{STRING}} (using the {{chroot}} function).  If the current process
     167has no root permissions, the operation will fail.
    154168
    155169'''NOTE''': On native Windows builds (all except cygwin), this
  • wiki/man/5/TODO/Unit posix

    r34291 r34490  
    1212All errors related to failing file-operations will signal a condition
    1313of kind {{(exn i/o file)}}.
    14 
    15 
    16 
    17 === Directories
    18 
    19 ==== change-directory
    20 
    21 <procedure>(change-directory NAME)</procedure>
    22 
    23 Changes the current working directory to {{NAME}}.
    24 
    25 ==== change-directory*
    26 
    27 <procedure>(change-directory* FD)</procedure>
    28 
    29 Changes the current working directory to the one represented by the
    30 file-descriptor {{FD}}, which should be an exact integer.
    3114
    3215
Note: See TracChangeset for help on using the changeset viewer.