No matter what I try, I get a BADFILENAME result.
This is what I have so far:
Code: Select all
memset(&fib, 0, FIB$K_LENGTH);
fib.fib$w_did_num = 4;
fib.fib$w_did_seq = 4;
fib.fib$w_did_rvn = 1;
fib.fib$v_diracl = 1;
fib.fib$w_nmctl = FIB$M_NAMES_8BIT | FIB$M_NAMES_16BIT;
ILE2 fib_desc = { FIB$K_LENGTH, 0, &fib };
ILE2 dir_name = { sizeof(dirname), 0, dirname };
status = SYS$QIOW( EFN$C_ENF, chan, IO$_CREATE | IO$M_CREATE | IO$M_SETDIR, &iosb, 0, 0,
&fib_desc,
(__int64)&dir_name,
(__int64)&name_len,
(__int64)&fn_desc,
0,
0
);
3D IOSB status: 2072
3D.DIR IOSB status: 2072
3D.DIR;1 IOSB status: 2080
[3D] IOSB status: 2072
[.3D] IOSB status: 2072
What am I missing/doing wrong?