io/util/lcb_luv_yolog.c
/* other POSIX non-linux systems */
other POSIX non-linux systems
other POSIX non - linux systems
static void
lcb_luv_yolog_fprintf_thread(FILE *f) {
    pthread_t pt = pthread_self();
    unsigned char *ptc = (unsigned char*)(void*)(&pt);
    size_t ii;
    fprintf(f, "0x");
    for (ii = 0; ii < sizeof(pt); ii++) {
        fprintf(f, "%02x", (unsigned)(ptc[ii]));
    }
}
static void lcb_luv_yolog_fprintf_thread ( FILE * f ) { pthread_t pt = pthread_self ( ) ; unsigned char * ptc = ( unsigned char * ) ( void * ) ( & pt ) ; size_t ii ; fprintf ( f , " " ) ; for ( ii = 0 ; ii < sizeof ( pt ) ; ii ++ ) { fprintf ( f , " " , ( unsigned ) ( ptc [ ii ] ) ) ; } }
other POSIX non-linux systems
other POSIX non - linux systems