int serrno = errno;
/* make sure stdio is set up */
- if (!__sdidinit)
- __sinit();
+ pthread_once(&__sdidinit, __sinit);
FLOCKFILE(fp);
ret = _fseeko(fp, (off_t)offset, whence, 1);
int serrno = errno;
/* make sure stdio is set up */
- if (!__sdidinit)
- __sinit();
+ pthread_once(&__sdidinit, __sinit);
FLOCKFILE(fp);
ret = _fseeko(fp, offset, whence, 0);