Changeset 19
- Timestamp:
- Sep 25, 2014, 4:11:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rxutilex/trunk/FUNCTIONS
r17 r19 3 3 (See file 'TODO' for functions which are under consideration to be added.) 4 4 5 Sys2CheckNamedPipe - Check the status of a named pipe 5 Sys2CheckNamedPipe - Check the status of a named pipe (server side) 6 6 Sys2Close - Close a file or named pipe 7 7 Sys2ConnectNamedPipe - Enable client sessions on a named pipe … … 37 37 Sys2CheckNamedPipe 38 38 39 Check the status of a named pipe. 39 Checks the status of a named pipe that was previously created using 40 Sys2CreateNamedPipe. 41 42 This 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 44 use the standard REXX STREAM and/or CHARS functions to determine the 45 pipe's status. 40 46 41 47 REXX ARGUMENTS: … … 81 87 Note that the standard REXX functions such as CHARIN/OUT, which operate 82 88 directly on file names, are not capable of using the pipe handle returned 83 from this function. While the client end can use such functions after89 from this function. While the client end can use such functions after 84 90 using STREAM to issue an OPEN WRITE or OPEN READ command, the server end 85 91 needs to use the pipe handle from this function, and must therefore use … … 94 100 the amount of data currently in the pipe, use Sys2CheckNamedPipe. To 95 101 unlock a named pipe after a client has closed the connection, use 96 Sys2DisconnectNamedPipe. Finally, the pipe shouldbe destroyed using97 Sys2Close when no longer needed.102 Sys2DisconnectNamedPipe. Finally, the pipe can be destroyed using 103 Sys2Close. 98 104 99 105 REXX ARGUMENTS: … … 195 201 configured via the LANG and LC_* environment variables. 196 202 203 NOTE: 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 197 209 REXX ARGUMENTS: 198 210 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.) 209 216 2. The month (1-12) 210 217 3. The day (1-31)
Note:
See TracChangeset
for help on using the changeset viewer.