/illumos-gate/usr/src/lib/libadm/common/ |
H A D | ckgid.c | 150 char *defmesg, in ckgid() local 153 defmesg = NULL; in ckgid() 160 if (disp && defmesg) in ckgid() 161 free(defmesg); in ckgid() 167 if (disp && defmesg) in ckgid() 168 free(defmesg); in ckgid() 172 if (!defmesg) in ckgid() 173 defmesg = setmsg(disp); in ckgid() 174 puterror(stderr, defmesg, error); in ckgid() 177 if (!defmesg) in ckgid() [all …]
|
H A D | ckuid.c | 150 char *defmesg, in ckuid() local 153 defmesg = NULL; in ckuid() 160 if (disp && defmesg) in ckuid() 161 free(defmesg); in ckuid() 167 if (disp && defmesg) in ckuid() 168 free(defmesg); in ckuid() 172 if (!defmesg) in ckuid() 173 defmesg = setmsg(disp); in ckuid() 174 puterror(stderr, defmesg, error); in ckuid() 177 if (!defmesg) in ckuid() [all …]
|
H A D | ckint.c | 72 char defmesg[64]; in ckint_err() local 74 setmsg(defmesg, base); in ckint_err() 75 puterror(stdout, defmesg, error); in ckint_err() 81 char defmesg[64]; in ckint_hlp() local 83 setmsg(defmesg, base); in ckint_hlp() 84 puthelp(stdout, defmesg, help); in ckint_hlp() 94 defmesg[64], in ckint() local 101 setmsg(defmesg, base); in ckint() 113 puterror(stderr, defmesg, error); in ckint() 116 puthelp(stderr, defmesg, help); in ckint() [all …]
|
H A D | puterror.c | 45 puterror(FILE *fp, char *defmesg, char *error) in puterror() argument 52 n = (defmesg ? strlen(defmesg) : strlen(INVINP)); in puterror() 55 (void) strcat(tmp, defmesg ? defmesg : INVINP); in puterror() 57 } else if (defmesg != NULL) { in puterror() 61 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() 63 (void) strcat(tmp, defmesg); in puterror() 69 tmp = calloc(MS+n+strlen(defmesg)+2, sizeof (char)); in puterror() 75 (void) strcat(tmp, defmesg); in puterror()
|
H A D | ckrange.c | 58 char defmesg[MSGSIZ]; in ckrange_err() local 60 setmsg(defmesg, lower, upper, base); in ckrange_err() 61 puterror(stdout, defmesg, error); in ckrange_err() 67 char defmesg[MSGSIZ]; in ckrange_hlp() local 69 setmsg(defmesg, lower, upper, base); in ckrange_hlp() 70 puthelp(stdout, defmesg, help); in ckrange_hlp() 93 char defmesg[MSGSIZ]; in ckrange() local 114 setmsg(defmesg, lower, upper, base); in ckrange() 129 puterror(stderr, defmesg, error); in ckrange() 133 puthelp(stderr, defmesg, help); in ckrange() [all …]
|
H A D | puthelp.c | 41 puthelp(FILE *fp, char *defmesg, char *help) in puthelp() argument 49 help = defmesg ? defmesg : "No help available."; in puthelp() 50 } else if (defmesg != NULL) { in puthelp() 54 tmp = calloc(n+strlen(defmesg)+1, sizeof (char)); in puthelp() 55 (void) strcpy(tmp, defmesg); in puthelp() 62 tmp = calloc(n+strlen(defmesg)+2, sizeof (char)); in puthelp() 66 (void) strcat(tmp, defmesg); in puthelp()
|
H A D | cktime.c | 282 char defmesg[128]; in cktime_err() local 286 setmsg(defmesg, fmt, sizeof (defmesg)); in cktime_err() 287 puterror(stdout, defmesg, error); in cktime_err() 294 char defmesg[128]; in cktime_hlp() local 298 setmsg(defmesg, fmt, sizeof (defmesg)); in cktime_hlp() 299 puthelp(stdout, defmesg, help); in cktime_hlp() 353 defmesg[128]; in cktime() local 360 setmsg(defmesg, fmt, sizeof (defmesg)); in cktime() 374 puterror(stderr, defmesg, error); in cktime() 378 puthelp(stderr, defmesg, help); in cktime() [all …]
|
H A D | ckkeywd.c | 69 char defmesg[512]; in ckkeywd() local 72 (void) sprintf(defmesg, "Please enter one of the following keywords: "); in ckkeywd() 73 ept = defmesg + strlen(defmesg); in ckkeywd() 95 puterror(stderr, defmesg, error); in ckkeywd() 99 puthelp(stderr, defmesg, help); in ckkeywd() 112 puterror(stderr, defmesg, error); in ckkeywd()
|
H A D | ckdate.c | 230 char defmesg[MSGSIZ]; in ckdate_err() local 234 setmsg(defmesg, fmt, MSGSIZ); in ckdate_err() 235 puterror(stdout, defmesg, error); in ckdate_err() 242 char defmesg[MSGSIZ]; in ckdate_hlp() local 246 setmsg(defmesg, fmt, MSGSIZ); in ckdate_hlp() 247 puthelp(stdout, defmesg, help); in ckdate_hlp() 405 char defmesg[MSGSIZ]; in ckdate() local 415 setmsg(defmesg, fmt, MSGSIZ); in ckdate() 431 puterror(stderr, defmesg, error); in ckdate() 434 puthelp(stderr, defmesg, help); in ckdate() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/hdrs/ |
H A D | libadm.h | 290 extern void puterror __P((FILE *fp, char *defmesg, char *error)); 295 extern void puthelp __P((FILE *fp, char *defmesg, char *help));
|