Lines Matching defs:bufsz
62 proc_fltname(int flt, char *buf, size_t bufsz)
67 if (bufsz == 0) /* force a program failure */
72 (void) strncpy(buf, name, bufsz);
74 len = snprintf(buf, bufsz, "FLT#%d", flt);
77 if (len >= bufsz) /* ensure null-termination */
78 buf[bufsz-1] = '\0';
88 proc_signame(int sig, char *buf, size_t bufsz)
93 if (bufsz == 0) /* force a program failure */
101 (void) strncpy(buf, name, bufsz);
103 len = snprintf(buf, bufsz, "SIG#%d", sig);
106 if (len >= bufsz) /* ensure null-termination */
107 buf[bufsz-1] = '\0';
379 proc_sysname(int sys, char *buf, size_t bufsz)
384 if (bufsz == 0) /* force a program failure */
394 (void) strncpy(buf, name, bufsz);
396 len = snprintf(buf, bufsz, "SYS#%d", sys);
399 if (len >= bufsz) /* ensure null-termination */
400 buf[bufsz-1] = '\0';