You need to sign in or sign up before continuing.
  • R
    make dlerror produce informative results · a5d10eb1
    Rich Felker 提交于
    note that dlerror is specified to be non-thread-safe, so no locking is
    performed on the error flag or message aside from the rwlock already
    held by dlopen or dlsym. if 2 invocations of dlsym are generating
    errors at the same time, they could clobber each other's results, but
    the resulting string, albeit corrupt, will still be null-terminated.
    any use of dlerror in such a situation could not be expected to give
    meaningful results anyway.
    a5d10eb1
dynlink.c 18.6 KB