HP OpenVMS Systems

ask the wizard
Content starts here

Questions on DECthreads documentation?

» close window

The Question is:

I have two comments and one question relating to example program 6-2 of the
"Guide to DECthreads" manual.
1. line 17 reads:
fprintf (stderr, "%s status %d: %s\n", status, string, strerror (status));
but should read:
fprintf (stderr, "%s status %d: %s\n", string, status, strerror (status));
2. line 16 reads: errno = status;
and is superfluous
1. the program compiles properly under DECC 6.0 for VAX but the linker can't
find symbols "flockfile" and "funlockfile". What's up?

The Answer is :

  Your pointers to the documentation have been passed along to the
  technical writer -- the "flockfile" and "funlockfile" routine
  reference is carried over from the UNIX documentation -- these
  functions are not part of the ANSI C standard, and are not among
  the extensions implemented by Compaq C.

answer written or last revised on ( 21-DEC-1999 )

» close window