On Mar 12, 2013, at 15:31, Bill Schoen wrote:
> Autoconvert does not depend on C RTL and address syscall is written in C
> but it doesn't use the C RTL (uses SPC).
>
Thanks. f_control_cvt is working great for me in a PoC. Strangely
I need to convert an EBCDIC descriptor to an ASCII buffer because
NFS client performs a superfluous ASCII->EBCDIC conversion on a
binary file. I could override this in the mount command, but there
are also text files in the filesystem that I want converted.
In:
Title: z/OS V1R12.0 Using REXX and z/OS UNIX System Services
Document Number: SA22-7806-13
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/bpxzb6a0/3.36
I read:
3.36 f_control_cvt
...
Parameters
fd
The file descriptor (a number) for the file. It must be a regular
file, FIFO, or character special file.
Does "character special file" include a socket? Apparently
not, because when (just an experiment) I try connecting a
socket to iconv(1), it fails with:
iconv: Could not turn autoconversion off for [standard input]:
EDC5113I Bad file descriptor.
(unless I misunderstand my test case). There's an extreme irony
if this is so -- I can't imagine a situation in OMVS where
ASCII<->EBCDIC conversion is more useful than with a socket.
-- gil