Lines Matching refs:buf
163 char buf[800]; in lock_error() local
193 (void) strcpy(buf, in lock_error()
195 (void) strcat(buf, who); in lock_error()
196 (void) strcat(buf, "("); in lock_error()
198 ultos((uint64_t)(uintptr_t)cv, 16, buf + strlen(buf)); in lock_error()
199 (void) strcat(buf, ", "); in lock_error()
201 ultos((uint64_t)(uintptr_t)mp, 16, buf + strlen(buf)); in lock_error()
202 (void) strcat(buf, ")"); in lock_error()
204 (void) strcat(buf, ": "); in lock_error()
205 (void) strcat(buf, msg); in lock_error()
207 (void) strcat(buf, ": calling thread does not own the lock"); in lock_error()
209 (void) strcat(buf, ": mutex rcount = "); in lock_error()
210 ultos((uint64_t)mcopy.mutex_rcount, 10, buf + strlen(buf)); in lock_error()
212 (void) strcat(buf, ": calling thread already owns the lock"); in lock_error()
214 (void) strcat(buf, "\ncalling thread is "); in lock_error()
215 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in lock_error()
216 (void) strcat(buf, " thread-id "); in lock_error()
217 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in lock_error()
221 (void) strcat(buf, "\nthe lock is unowned"); in lock_error()
223 (void) strcat(buf, "\nthe lock owner is "); in lock_error()
224 ultos((uint64_t)mcopy.mutex_owner, 16, buf + strlen(buf)); in lock_error()
226 (void) strcat(buf, " in process "); in lock_error()
227 ultos((uint64_t)pid, 10, buf + strlen(buf)); in lock_error()
228 (void) strcat(buf, "\nthe lock owner is "); in lock_error()
229 ultos((uint64_t)mcopy.mutex_owner, 16, buf + strlen(buf)); in lock_error()
230 (void) strcat(buf, " in process "); in lock_error()
231 ultos((uint64_t)mcopy.mutex_ownerpid, 10, buf + strlen(buf)); in lock_error()
233 (void) strcat(buf, "\n\n"); in lock_error()
234 (void) __write(2, buf, strlen(buf)); in lock_error()
236 Abort(buf, sizeof (buf)); in lock_error()
254 char buf[800]; in rwlock_error() local
288 (void) strcpy(buf, in rwlock_error()
290 (void) strcat(buf, who); in rwlock_error()
291 (void) strcat(buf, "("); in rwlock_error()
292 ultos((uint64_t)(uintptr_t)rp, 16, buf + strlen(buf)); in rwlock_error()
293 (void) strcat(buf, "): "); in rwlock_error()
294 (void) strcat(buf, msg); in rwlock_error()
295 (void) strcat(buf, "\ncalling thread is "); in rwlock_error()
296 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in rwlock_error()
297 (void) strcat(buf, " thread-id "); in rwlock_error()
298 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in rwlock_error()
300 (void) strcat(buf, " in process "); in rwlock_error()
301 ultos((uint64_t)pid, 10, buf + strlen(buf)); in rwlock_error()
304 (void) strcat(buf, "\nthe writer lock owner is "); in rwlock_error()
306 buf + strlen(buf)); in rwlock_error()
308 (void) strcat(buf, " in process "); in rwlock_error()
310 buf + strlen(buf)); in rwlock_error()
313 (void) strcat(buf, "\nthe reader lock is held by "); in rwlock_error()
315 buf + strlen(buf)); in rwlock_error()
316 (void) strcat(buf, " readers"); in rwlock_error()
318 (void) strcat(buf, "\nthe lock is unowned"); in rwlock_error()
321 (void) strcat(buf, "\nand the lock appears to have waiters"); in rwlock_error()
322 (void) strcat(buf, "\n\n"); in rwlock_error()
323 (void) __write(2, buf, strlen(buf)); in rwlock_error()
325 Abort(buf, sizeof (buf)); in rwlock_error()
341 char buf[800]; in thread_error() local
362 (void) strcpy(buf, "\n*** _THREAD_ERROR_DETECTION: " in thread_error()
364 (void) strcat(buf, msg); in thread_error()
366 (void) strcat(buf, "\n*** calling thread is "); in thread_error()
367 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in thread_error()
368 (void) strcat(buf, " thread-id "); in thread_error()
369 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in thread_error()
370 (void) strcat(buf, "\n\n"); in thread_error()
371 (void) __write(2, buf, strlen(buf)); in thread_error()
373 Abort(buf, sizeof (buf)); in thread_error()
391 char buf[800]; /* no assert() message in the library is this long */ in __assfail() local
417 (void) strcpy(buf, "failure for thread "); in __assfail()
419 (void) strcpy(buf, "assertion failed for thread "); in __assfail()
422 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in __assfail()
423 (void) strcat(buf, ", thread-id "); in __assfail()
424 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in __assfail()
425 (void) strcat(buf, ": "); in __assfail()
426 (void) strcat(buf, assertion); in __assfail()
429 (void) strcat(buf, ", file "); in __assfail()
430 (void) strcat(buf, filename); in __assfail()
431 (void) strcat(buf, ", line "); in __assfail()
432 ultos((uint64_t)line_num, 10, buf + strlen(buf)); in __assfail()
435 (void) strcat(buf, "\n"); in __assfail()
436 (void) __write(2, buf, strlen(buf)); in __assfail()
445 Abort(buf, sizeof (buf)); in __assfail()
473 char buf[1000]; in assfail3() local
474 (void) strcpy(buf, assertion); in assfail3()
475 (void) strcat(buf, " ("); in assfail3()
476 ultos((uint64_t)lv, 16, buf + strlen(buf)); in assfail3()
477 (void) strcat(buf, " "); in assfail3()
478 (void) strcat(buf, op); in assfail3()
479 (void) strcat(buf, " "); in assfail3()
480 ultos((uint64_t)rv, 16, buf + strlen(buf)); in assfail3()
481 (void) strcat(buf, ")"); in assfail3()
482 __assfail(buf, filename, line_num); in assfail3()