(Related to a thread on MVS-OE, but perhaps a reader here
knows more)
In:
Title: z/OS V1R10.0 XL C/C++ Run-Time Library Reference
Document Number: SA22-7821-10
Linkname: fcntl() -- Control Open File Descriptors
URL:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/EDCLB190/3.245
I see:
#define _POSIX_SOURCE
#include <fcntl.h>
int fcntl(int fildes, int action, ...);
However:
MVS:147$ uname -a
OS/390 ECC8 20.00 03 2094
MVS:148$ cat test.c
#define _POSIX_SOURCE
#include <fcntl.h>
int test(void) {
int I; I = QUERYCVT; }
MVS:149$ c89 test.c
ERROR CCN3045 ./test.c:5 Undeclared identifier QUERYCVT.
There are a couple other #defines on the page; neither of
them works. QUERYCVT is defined in /usr/include/fcntl.h,
in the usual nest of #ifdefs. What do I need to define or
supply as a compiler option to get to this structure?
Thanks,
gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html