Changeset 19


Ignore:
Timestamp:
Sep 25, 2014, 4:11:17 PM (11 years ago)
Author:
Alex Taylor
Message:

Updates to function documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rxutilex/trunk/FUNCTIONS

    r17 r19  
    33(See file 'TODO' for functions which are under consideration to be added.)
    44
    5 Sys2CheckNamedPipe          - Check the status of a named pipe
     5Sys2CheckNamedPipe          - Check the status of a named pipe (server side)
    66Sys2Close                   - Close a file or named pipe
    77Sys2ConnectNamedPipe        - Enable client sessions on a named pipe
     
    3737Sys2CheckNamedPipe
    3838
    39 Check the status of a named pipe.
     39Checks the status of a named pipe that was previously created using
     40Sys2CreateNamedPipe. 
     41
     42This function is designed for use by the process that created the pipe
     43(i.e. the server side).  Clients which are accessing a named pipe should
     44use the standard REXX STREAM and/or CHARS functions to determine the
     45pipe's status.
    4046
    4147REXX ARGUMENTS:
     
    8187Note that the standard REXX functions such as CHARIN/OUT, which operate
    8288directly on file names, are not capable of using the pipe handle returned
    83 from this function. While the client end can use such functions after
     89from this function.  While the client end can use such functions after
    8490using STREAM to issue an OPEN WRITE or OPEN READ command, the server end
    8591needs to use the pipe handle from this function, and must therefore use
     
    94100the amount of data currently in the pipe, use Sys2CheckNamedPipe.  To
    95101unlock a named pipe after a client has closed the connection, use
    96 Sys2DisconnectNamedPipe.  Finally, the pipe should be destroyed using
    97 Sys2Close when no longer needed.
     102Sys2DisconnectNamedPipe.  Finally, the pipe can be destroyed using
     103Sys2Close.
    98104
    99105REXX ARGUMENTS:
     
    195201configured via the LANG and LC_* environment variables.
    196202
     203NOTE: Any date prior to 1 January 1970, or later than 19 January 2038,
     204      cannot be supported due to the limitations in how the C library
     205      calculates epoch time.  Specifying any date before 1970 will generate
     206      a REXX error.  Any time/date later than 12:14:07 on 19 January 2038
     207      will return the latter value.
     208
    197209REXX ARGUMENTS:
    198210  1. The year (1970-2037)
    199      Years prior to 1970 or later than 2037 cannot be supported due to the
    200      limitations in how the C library calculates epoch time.  Specifying
    201      1969 or earlier will generate a REXX error.  Any date later than 2037
    202      will return a value of 0 (and SYS2ERR will report an error in 'mktime').
    203      NOTE: A 2-digit year can be specified, in which case the number will be
    204            added to 1900 if it is 70 or higher, or to 2000 otherwise.
    205            e.g. '20' ==> 2020
    206                 '75' ==> 1975
    207            This is subject to the limitation noted above, such that values
    208            from 38 to 69 will result in a return value of 0.
     211     A 2-digit year can be specified, in which case the number will be
     212     added to 1900 if it is 70 or higher, or to 2000 otherwise.
     213     e.g. '20' ==> 2020
     214          '75' ==> 1975
     215     (This is subject to the limitation noted above.)
    209216  2. The month (1-12)
    210217  3. The day (1-31)
Note: See TracChangeset for help on using the changeset viewer.