|
Lines 271-277
Link Here
|
| 271 |
struct unpcb *unp; |
271 |
struct unpcb *unp; |
| 272 |
struct sockaddr_un *sa; |
272 |
struct sockaddr_un *sa; |
| 273 |
static int first = 1; |
273 |
static int first = 1; |
| 274 |
char buf1[15]; |
274 |
char buf1[33]; |
| 275 |
static const char *titles[2] = { |
275 |
static const char *titles[2] = { |
| 276 |
"{T:/%-8.8s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%8.8s} " |
276 |
"{T:/%-8.8s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-6.6s} {T:/%8.8s} " |
| 277 |
"{T:/%8.8s} {T:/%8.8s} {T:/%8.8s} {T:Addr}\n", |
277 |
"{T:/%8.8s} {T:/%8.8s} {T:/%8.8s} {T:Addr}\n", |
|
Lines 310-319
Link Here
|
| 310 |
return; |
310 |
return; |
| 311 |
|
311 |
|
| 312 |
if (Lflag) { |
312 |
if (Lflag) { |
| 313 |
snprintf(buf1, 15, "%d/%d/%d", so->so_qlen, |
313 |
snprintf(buf1, sizeof buf1, "%u/%u/%u", so->so_qlen, |
| 314 |
so->so_incqlen, so->so_qlimit); |
314 |
so->so_incqlen, so->so_qlimit); |
| 315 |
xo_emit("unix {d:socket/%-14.14s}{e:queue-length/%d}" |
315 |
xo_emit("unix {d:socket/%-32.32s}{e:queue-length/%u}" |
| 316 |
"{e:incomplete-queue-length/%d}{e:queue-limit/%d}", |
316 |
"{e:incomplete-queue-length/%u}{e:queue-limit/%u}", |
| 317 |
buf1, so->so_qlen, so->so_incqlen, so->so_qlimit); |
317 |
buf1, so->so_qlen, so->so_incqlen, so->so_qlimit); |
| 318 |
} else { |
318 |
} else { |
| 319 |
xo_emit(format[fmt], |
319 |
xo_emit(format[fmt], |