The stream pointer passed to __fsetlocking() is not valid with POSIX(ON).
Pass a valid stream pointer to __fsetlocking().
JrEdcFioeEbadf10