Searched refs:errbuf (Results 1 – 1 of 1) sorted by relevance
566 char *errbuf; in xc_strerror() local572 errbuf = pthread_getspecific(errbuf_pkey); in xc_strerror()573 if (errbuf == NULL) { in xc_strerror()574 errbuf = malloc(XS_BUFSIZE); in xc_strerror()575 if ( errbuf == NULL ) in xc_strerror()577 pthread_setspecific(errbuf_pkey, errbuf); in xc_strerror()586 strncpy(errbuf, strerror_str, XS_BUFSIZE); in xc_strerror()587 errbuf[XS_BUFSIZE-1] = '\0'; in xc_strerror()590 return errbuf; in xc_strerror()
Completed in 4 milliseconds