Lines Matching refs:buf

160 	char buf[800];  in lock_error()  local
190 (void) strcpy(buf, in lock_error()
192 (void) strcat(buf, who); in lock_error()
193 (void) strcat(buf, "("); in lock_error()
195 ultos((uint64_t)(uintptr_t)cv, 16, buf + strlen(buf)); in lock_error()
196 (void) strcat(buf, ", "); in lock_error()
198 ultos((uint64_t)(uintptr_t)mp, 16, buf + strlen(buf)); in lock_error()
199 (void) strcat(buf, ")"); in lock_error()
201 (void) strcat(buf, ": "); in lock_error()
202 (void) strcat(buf, msg); in lock_error()
204 (void) strcat(buf, ": calling thread does not own the lock"); in lock_error()
206 (void) strcat(buf, ": mutex rcount = "); in lock_error()
207 ultos((uint64_t)mcopy.mutex_rcount, 10, buf + strlen(buf)); in lock_error()
209 (void) strcat(buf, ": calling thread already owns the lock"); in lock_error()
211 (void) strcat(buf, "\ncalling thread is "); in lock_error()
212 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in lock_error()
213 (void) strcat(buf, " thread-id "); in lock_error()
214 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in lock_error()
218 (void) strcat(buf, "\nthe lock is unowned"); in lock_error()
220 (void) strcat(buf, "\nthe lock owner is "); in lock_error()
221 ultos((uint64_t)mcopy.mutex_owner, 16, buf + strlen(buf)); in lock_error()
223 (void) strcat(buf, " in process "); in lock_error()
224 ultos((uint64_t)pid, 10, buf + strlen(buf)); in lock_error()
225 (void) strcat(buf, "\nthe lock owner is "); in lock_error()
226 ultos((uint64_t)mcopy.mutex_owner, 16, buf + strlen(buf)); in lock_error()
227 (void) strcat(buf, " in process "); in lock_error()
228 ultos((uint64_t)mcopy.mutex_ownerpid, 10, buf + strlen(buf)); in lock_error()
230 (void) strcat(buf, "\n\n"); in lock_error()
231 (void) __write(2, buf, strlen(buf)); in lock_error()
233 Abort(buf, sizeof (buf)); in lock_error()
251 char buf[800]; in rwlock_error() local
285 (void) strcpy(buf, in rwlock_error()
287 (void) strcat(buf, who); in rwlock_error()
288 (void) strcat(buf, "("); in rwlock_error()
289 ultos((uint64_t)(uintptr_t)rp, 16, buf + strlen(buf)); in rwlock_error()
290 (void) strcat(buf, "): "); in rwlock_error()
291 (void) strcat(buf, msg); in rwlock_error()
292 (void) strcat(buf, "\ncalling thread is "); in rwlock_error()
293 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in rwlock_error()
294 (void) strcat(buf, " thread-id "); in rwlock_error()
295 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in rwlock_error()
297 (void) strcat(buf, " in process "); in rwlock_error()
298 ultos((uint64_t)pid, 10, buf + strlen(buf)); in rwlock_error()
301 (void) strcat(buf, "\nthe writer lock owner is "); in rwlock_error()
303 buf + strlen(buf)); in rwlock_error()
305 (void) strcat(buf, " in process "); in rwlock_error()
307 buf + strlen(buf)); in rwlock_error()
310 (void) strcat(buf, "\nthe reader lock is held by "); in rwlock_error()
312 buf + strlen(buf)); in rwlock_error()
313 (void) strcat(buf, " readers"); in rwlock_error()
315 (void) strcat(buf, "\nthe lock is unowned"); in rwlock_error()
318 (void) strcat(buf, "\nand the lock appears to have waiters"); in rwlock_error()
319 (void) strcat(buf, "\n\n"); in rwlock_error()
320 (void) __write(2, buf, strlen(buf)); in rwlock_error()
322 Abort(buf, sizeof (buf)); in rwlock_error()
338 char buf[800]; in thread_error() local
359 (void) strcpy(buf, "\n*** _THREAD_ERROR_DETECTION: " in thread_error()
361 (void) strcat(buf, msg); in thread_error()
363 (void) strcat(buf, "\n*** calling thread is "); in thread_error()
364 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in thread_error()
365 (void) strcat(buf, " thread-id "); in thread_error()
366 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in thread_error()
367 (void) strcat(buf, "\n\n"); in thread_error()
368 (void) __write(2, buf, strlen(buf)); in thread_error()
370 Abort(buf, sizeof (buf)); in thread_error()
388 char buf[800]; /* no assert() message in the library is this long */ in __assfail() local
414 (void) strcpy(buf, "failure for thread "); in __assfail()
416 (void) strcpy(buf, "assertion failed for thread "); in __assfail()
419 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in __assfail()
420 (void) strcat(buf, ", thread-id "); in __assfail()
421 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in __assfail()
422 (void) strcat(buf, ": "); in __assfail()
423 (void) strcat(buf, assertion); in __assfail()
426 (void) strcat(buf, ", file "); in __assfail()
427 (void) strcat(buf, filename); in __assfail()
428 (void) strcat(buf, ", line "); in __assfail()
429 ultos((uint64_t)line_num, 10, buf + strlen(buf)); in __assfail()
432 (void) strcat(buf, "\n"); in __assfail()
433 (void) __write(2, buf, strlen(buf)); in __assfail()
442 Abort(buf, sizeof (buf)); in __assfail()
463 char buf[1000]; in assfail3() local
464 (void) strcpy(buf, assertion); in assfail3()
465 (void) strcat(buf, " ("); in assfail3()
466 ultos((uint64_t)lv, 16, buf + strlen(buf)); in assfail3()
467 (void) strcat(buf, " "); in assfail3()
468 (void) strcat(buf, op); in assfail3()
469 (void) strcat(buf, " "); in assfail3()
470 ultos((uint64_t)rv, 16, buf + strlen(buf)); in assfail3()
471 (void) strcat(buf, ")"); in assfail3()
472 __assfail(buf, filename, line_num); in assfail3()