/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | l64a.c | 50 #define NMAX ((BITSUSED + BITSPERCHAR - 1)/BITSPERCHAR) macro 53 #define WORDMASK ((1 << ((NMAX - 1) * BITSPERCHAR)) - 1) 60 char *buf = tsdalloc(_T_L64A, NMAX + 1, NULL); in l64a()
|
H A D | getlogin.c | 77 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) macro 171 return (getl_r_common(answer, (size_t)namelen, NMAX)); in getloginx_r() 186 if (getl_r_common(name, (size_t)namelen, NMAX) == NULL) { in __posix_getloginx_r() 206 return (getl_r_common(answer, LOGIN_NAME_MAX, NMAX)); in getloginx()
|
H A D | ecvt.c | 48 #define NMAX ((DSIGNIF * 3 + 19)/10) /* restrict max precision */ macro 133 if (value == 0 || p >= &buf[NMAX]) in cvt()
|
/illumos-gate/usr/src/cmd/rpcsvc/ |
H A D | rusers.c | 50 #define NMAX 12 /* These are used as field width specifiers */ macro 292 char username[NMAX + 1]; in print_info() 310 NMAX + 1); in print_info() 311 (void) printf(" %.*s", NMAX, username); in print_info() 434 (void) printf(" %.*s", NMAX, in print_info_3() 501 (void) printf(" %.*s", NMAX, in printnames() 538 #define NAMEMAX ((sizeof (up->ut_name) < NMAX) ? NMAX : sizeof (up->ut_name)) in putline_2() 539 #define NAMEMIN ((sizeof (up->ut_name) > NMAX) ? NMAX : sizeof (up->ut_name)) in putline_2() 579 (void) printf("%-*.*s ", NMAX, NMAX, rup->ut_user); in putline_3()
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | adler32.c | 11 #define NMAX 5552 macro 98 while (len >= NMAX) { in adler32_z() 99 len -= NMAX; in adler32_z() 100 n = NMAX / 16; /* NMAX is divisible by 16 */ in adler32_z()
|
/illumos-gate/usr/src/cmd/wall/ |
H A D | wall.c | 67 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) macro 79 static char who[NMAX+1] = "???"; 388 NMAX, p->ut_user, s); in sendmes() 414 NMAX, &p->ut_user[0], s); in sendmes() 426 (void) fprintf(f, "DEBUG: To %.*s on %s\n", NMAX, p->ut_user, s); in sendmes() 468 char user[NMAX + 1]; in chkgrp()
|
/illumos-gate/usr/src/cmd/lastcomm/ |
H A D | lastcomm.h | 71 #define NMAX (_POSIX_LOGIN_NAME_MAX - 1) macro 75 #define NMAX (sizeof (dummy.ut_user))
|
H A D | lc_pacct.c | 95 NMAX, getname(acp->ac_uid), in lc_pacct()
|
H A D | lc_exacct.c | 152 flagbits(flag), NMAX, getname(uid), LMAX, getdev(tty), in disp_group()
|
H A D | lc_utils.c | 278 static char uidname[NMAX]; in getname()
|
/illumos-gate/usr/src/cmd/last/ |
H A D | last.c | 65 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) macro 77 #define nameq(a, b) (strncmp(a, b, NMAX) == 0) 285 ut_user, NMAX+1); in main() 305 LOGIN_WIDTH, NMAX, bp->ut_name, in main() 489 ttnames[i] = (char *)malloc(LMAX + HMAX + NMAX + 3); in memory_alloc()
|
/illumos-gate/usr/src/cmd/login/ |
H A D | login.c | 154 #define NMAX sizeof (((struct utmpx *)0)->ut_name) macro 207 static char user_name[NMAX]; 336 static char rusername[NMAX+1], lusername[NMAX+1]; 751 NMAX, user_name); in log_bad_attempts() 755 ttyn, NMAX, user_name); in log_bad_attempts() 1344 char sflagname[NMAX+1]; in get_options() 1750 remote_host, NMAX, pwd->pw_name); in chdir_to_dir_user() 1754 ttyn, NMAX, pwd->pw_name); in chdir_to_dir_user() 1872 ttyn, HMAX, remote_host, NMAX, in login_authenticate() 1878 ttyn, NMAX, user_name); in login_authenticate()
|
/illumos-gate/usr/src/cmd/power/ |
H A D | sys-suspend.c | 69 #define NMAX (sizeof (utmp.ut_name)) macro 104 static char user[NMAX + 1]; 677 (void) strncpy(user, pw->pw_name, NMAX); in main()
|
/illumos-gate/usr/src/cmd/who/ |
H A D | who.c | 109 #define NMAX (sizeof (utmpp->ut_user)) macro 513 (void) printf("%-*.*s ", LOGIN_WIDTH, NMAX, user); in dump() 569 (void) printf("%-*.*s %c %-12s %s", LOGIN_WIDTH, NMAX, user, in dump()
|
/illumos-gate/usr/src/cmd/whodo/ |
H A D | whodo.c | 79 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) macro 533 if (sel_user && strncmp(ut->ut_name, sel_user, NMAX) != 0) in main() 537 (void) printf("%-*.*s ", LOGIN_WIDTH, (int)NMAX, in main() 557 LOGIN_WIDTH, (int)NMAX, ut->ut_name, tm->tm_hour, in main()
|
/illumos-gate/usr/src/cmd/w/ |
H A D | w.c | 83 #define NMAX (sizeof (dummy.ut_user)) macro 488 strncmp(ut->ut_name, sel_user, NMAX) != 0) in main() 492 PRINTF(("%-*.*s ", LOGIN_WIDTH, NMAX, ut->ut_name)); in main()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | finger.c | 116 #define NMAX sizeof (((struct utmpx *)0)->ut_name) macro 274 char name[NMAX + 1]; in doall() 293 bcopy(u->ut_name, name, NMAX); in doall() 294 name[NMAX] = 0; in doall() 413 u->ut_name, NMAX) != 0) in donames()
|
/illumos-gate/usr/src/ucbcmd/ls/ |
H A D | ls.c | 770 #define NMAX (sizeof (((struct utmpx *)0)->ut_name)) macro 771 #define SCPYN(a, b) strncpy(a, b, NMAX) 779 char name[NMAX+1]; /* the string that val maps to */
|
/illumos-gate/usr/src/cmd/find/ |
H A D | find.c | 1690 #define NMAX (sizeof (utmpx.ut_name)) macro 1691 #define SCPYN(a, b) (void) strncpy(a, b, NMAX) 1698 char name[NMAX+1];
|
/illumos-gate/usr/src/cmd/ls/ |
H A D | ls.c | 2193 #define NMAX 256 /* The maximum size of a SID in string format */ macro 2194 #define SCPYN(a, b) (void) strlcpy(a, b, NMAX) 2201 char name[NMAX]; /* the string that val maps to */
|
/illumos-gate/usr/src/cmd/praudit/ |
H A D | format.c | 83 #define NMAX (sizeof (utmp.ut_name)) macro 84 #define SCPYN(a, b) (void) strncpy(a, b, NMAX) 91 char name[NMAX+1]; /* the string that val maps to */
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | ratz.c | 1116 #define NMAX 5552 macro 1201 while (len >= NMAX) { 1202 len -= NMAX; 1203 n = NMAX / 16; /* NMAX is divisible by 16 */
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | zlib.c | 4593 #define NMAX 5552 macro 4615 k = len < NMAX ? len : NMAX;
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 6232 #define NMAX (sizeof (utmpx.ut_name)) macro 6238 char name[NMAX+1]; /* the string that val maps to */ 6253 for (i = 0; i < NMAX; i++) { in hash_byname() 6300 (void) strncpy(c->name, name, NMAX); in hash_insert()
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | zlib.c | 6071 #define NMAX 5552 macro 6095 k = len < NMAX ? len : NMAX;
|