/titanic_44/usr/src/lib/libc/port/gen/ |
H A D | getlogin.c | 83 getl_r_common(char *answer, size_t namelen, size_t maxlen) in getl_r_common() argument 105 if (namelen <= ulen) { in getl_r_common() 127 getlogint_r(char *answer, int namelen) in getlogint_r() argument 129 return (getl_r_common(answer, (size_t)namelen, LOGNAME_MAX_TRAD)); in getlogint_r() 137 __posix_getlogint_r(char *name, int namelen) in __posix_getlogint_r() argument 143 if (getl_r_common(name, (size_t)namelen, LOGNAME_MAX_TRAD) == NULL) { in __posix_getlogint_r() 169 getloginx_r(char *answer, int namelen) in getloginx_r() argument 171 return (getl_r_common(answer, (size_t)namelen, NMAX)); in getloginx_r() 180 __posix_getloginx_r(char *name, int namelen) in __posix_getloginx_r() argument 186 if (getl_r_common(name, (size_t)namelen, NMAX) == NULL) { in __posix_getloginx_r()
|
H A D | gethostname.c | 42 gethostname(char *name, int namelen) in gethostname() argument 44 return (sysinfo(SI_HOSTNAME, name, namelen) == -1 ? -1 : 0); in gethostname() 48 sethostname(char *name, int namelen) in sethostname() argument 50 return (sysinfo(SI_SET_HOSTNAME, name, namelen) == -1 ? -1 : 0); in sethostname()
|
/titanic_44/usr/src/lib/libproc/common/ |
H A D | pr_getsockname.c | 41 int syscall, int sock, struct sockaddr *name, socklen_t *namelen) in get_sock_peer_name() argument 60 adp->arg_size = *namelen; in get_sock_peer_name() 64 adp->arg_object = namelen; in get_sock_peer_name() 67 adp->arg_size = sizeof (*namelen); in get_sock_peer_name() 95 int sock, struct sockaddr *name, socklen_t *namelen) in pr_getsockname() argument 98 return (_so_getsockname(sock, name, namelen, SOV_DEFAULT)); in pr_getsockname() 100 return (get_sock_peer_name(Pr, SYS_getsockname, sock, name, namelen)); in pr_getsockname() 108 int sock, struct sockaddr *name, socklen_t *namelen) in pr_getpeername() argument 111 return (_so_getpeername(sock, name, namelen, SOV_DEFAULT)); in pr_getpeername() 113 return (get_sock_peer_name(Pr, SYS_getpeername, sock, name, namelen)); in pr_getpeername()
|
/titanic_44/usr/src/uts/common/rpc/sec/ |
H A D | auth_kern.c | 124 uint32_t gidlen, credsize, namelen, rounded_namelen; in authkern_marshal() local 138 namelen = (uint32_t)strlen(nodename); in authkern_marshal() 139 if (namelen > MAX_MACHINE_NAME) in authkern_marshal() 141 rounded_namelen = RNDUP(namelen); in authkern_marshal() 183 IXDR_PUT_U_INT32(ptr, namelen); in authkern_marshal() 184 bcopy(nodename, ptr, namelen); in authkern_marshal() 185 if ((rounded_namelen - namelen) > 0) in authkern_marshal() 186 bzero((char *)ptr + namelen, rounded_namelen - namelen); in authkern_marshal()
|
H A D | auth_loopb.c | 126 uint32_t gidlen, credsize, namelen, rounded_namelen; in authloopback_marshal() local 141 namelen = (uint32_t)strlen(nodename); in authloopback_marshal() 142 if (namelen > MAX_MACHINE_NAME) in authloopback_marshal() 144 rounded_namelen = RNDUP(namelen); in authloopback_marshal() 188 IXDR_PUT_U_INT32(ptr, namelen); in authloopback_marshal() 189 bcopy(nodename, ptr, namelen); in authloopback_marshal() 190 if ((rounded_namelen - namelen) > 0) in authloopback_marshal() 191 bzero((char *)ptr + namelen, rounded_namelen - namelen); in authloopback_marshal()
|
/titanic_44/usr/src/ucblib/libucb/port/sys/ |
H A D | gethostname.c | 51 gethostname(char *name, int namelen) in gethostname() argument 55 error = sysinfo(SI_HOSTNAME, name, namelen); in gethostname() 65 sethostname(char *name, int namelen) in sethostname() argument 76 error = sysinfo(SI_SET_HOSTNAME, name, namelen); in sethostname()
|
/titanic_44/usr/src/lib/libnsl/nss/ |
H A D | getrpcent_r.c | 123 ssize_t numlen, namelen = 0; in str2rpcent() local 141 namelen = p - namestart; in str2rpcent() 143 if (buflen <= namelen) /* not enough buffer */ in str2rpcent() 145 (void) memcpy(buffer, namestart, namelen); in str2rpcent() 146 buffer[namelen] = '\0'; in str2rpcent() 180 ptr = (char **)ROUND_UP(buffer + namelen + 1, in str2rpcent() 191 buffer + namelen + 1, (int)(buflen - namelen - 1)); in str2rpcent()
|
/titanic_44/usr/src/lib/libsocket/inet/ |
H A D | getprotoent_r.c | 135 int numlen, namelen = 0; in str2protoent() local 154 namelen = (int)(p - namestart); in str2protoent() 156 if (buflen <= namelen) { /* not enough buffer */ in str2protoent() 159 (void) memcpy(buffer, namestart, namelen); in str2protoent() 160 buffer[namelen] = '\0'; in str2protoent() 198 ptr = (char **)ROUND_UP(buffer + namelen + 1, in str2protoent() 211 buffer + namelen + 1, buflen - namelen - 1); in str2protoent()
|
H A D | getnetent_r.c | 139 int namelen = 0; in str2netent() local 158 namelen = (int)(p - namestart); in str2netent() 160 if (buflen <= namelen) { /* not enough buffer */ in str2netent() 163 (void) memcpy(buffer, namestart, namelen); in str2netent() 164 buffer[namelen] = '\0'; in str2netent() 204 ptr = (char **)ROUND_UP(buffer + namelen + 1, in str2netent() 216 buffer + namelen + 1, buflen - namelen - 1); in str2netent()
|
/titanic_44/usr/src/uts/common/fs/sockfs/ |
H A D | socksyscalls.c | 227 size_t namelen = (size_t)*namelenp; in copyin_name() local 229 ASSERT(namelen != 0); in copyin_name() 230 if (namelen > SO_MAXARGSIZE) { in copyin_name() 236 faddr = (char *)kmem_alloc(namelen, KM_SLEEP); in copyin_name() 237 if (copyin(name, faddr, namelen)) { in copyin_name() 238 kmem_free(faddr, namelen); in copyin_name() 248 if (so->so_family == AF_UNIX && faddr[namelen - 1] != '\0') { in copyin_name() 253 for (i = sizeof (name->sa_family); i < namelen; i++) { in copyin_name() 263 nfaddr = (char *)kmem_alloc(namelen + 1, KM_SLEEP); in copyin_name() 264 bcopy(faddr, nfaddr, namelen); in copyin_name() [all …]
|
/titanic_44/usr/src/stand/lib/sa/ |
H A D | unistd.c | 42 gethostname(char *name, int namelen) in gethostname() argument 44 (void) strlcpy(name, hostname, MIN(namelen, MAXHOSTNAMELEN)); in gethostname() 52 sethostname(char *name, int namelen) in sethostname() argument 54 (void) strlcpy(hostname, name, MIN(namelen + 1, MAXHOSTNAMELEN)); in sethostname()
|
/titanic_44/usr/src/lib/gss_mechs/mech_dh/backend/mech/ |
H A D | name.c | 345 OM_uint32 namelen; in do_exported_netname() local 381 namelen = (*p++ << 24) & 0xff000000; in do_exported_netname() 382 namelen |= (*p++ << 16) & 0xff0000; in do_exported_netname() 383 namelen |= (*p++ << 8) & 0xff00; in do_exported_netname() 384 namelen |= *p++ & 0xff; in do_exported_netname() 387 if (len < tokid_len + OIDlen_len + oidlen + namelen_len + namelen) in do_exported_netname() 391 if (namelen < OIDlen_len) in do_exported_netname() 399 if (namelen < OIDlen_len + oidlen) in do_exported_netname() 417 if (namelen != OIDlen_len + oidlen + strlen((char *)p) + 1) in do_exported_netname() 650 OM_uint32 namelen; in __dh_gss_export_name() local [all …]
|
/titanic_44/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_trans2_find.c | 708 int namelen, shortlen; in smb_trans2_find_mbc_encode() local 716 namelen = smb_ascii_or_unicode_strlen(sr, fileinfo->fi_name); in smb_trans2_find_mbc_encode() 717 if (namelen == -1) in smb_trans2_find_mbc_encode() 728 namelen += 1; in smb_trans2_find_mbc_encode() 731 next_entry_offset = args->fa_maxdata + namelen; in smb_trans2_find_mbc_encode() 733 if (MBC_ROOM_FOR(&xa->rep_data_mb, (args->fa_maxdata + namelen)) == 0) in smb_trans2_find_mbc_encode() 765 namelen); in smb_trans2_find_mbc_encode() 781 namelen); in smb_trans2_find_mbc_encode() 795 namelen); in smb_trans2_find_mbc_encode() 809 namelen, in smb_trans2_find_mbc_encode() [all …]
|
/titanic_44/usr/src/lib/nsswitch/files/common/ |
H A D | getprojent.c | 39 int namelen, i; in hash_projname() local 44 namelen = strlen(name); in hash_projname() 47 namelen = 0; in hash_projname() 49 namelen++; in hash_projname() 52 for (i = 0; i < namelen; i++) in hash_projname()
|
H A D | gethostent.c | 49 int type, const char **namep, int *namelen, in check_name() argument 82 *namelen = linep - *namep; in check_name() 88 *namelen = linep - *namep; in check_name() 350 int h_namelen, namelen; local 434 type, &namep, &namelen, 489 ap = (char *)namep + namelen; 549 h_name = malloc(namelen + 1); 555 (void) memcpy(h_name, namep, namelen); 556 h_name[namelen] = '\0'; 557 h_namelen = namelen; [all …]
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | dirent.h | 80 #define DIRENT64_RECLEN(namelen) \ argument 81 ((offsetof(dirent64_t, d_name[0]) + 1 + (namelen) + 7) & ~ 7) 84 #define DIRENT32_RECLEN(namelen) \ argument 85 ((offsetof(dirent32_t, d_name[0]) + 1 + (namelen) + 3) & ~ 3)
|
/titanic_44/usr/src/stand/lib/fs/nfs/ |
H A D | bootparams.c | 87 int namelen; in whoami() local 160 namelen = strlen(bp.client_name); in whoami() 161 if (namelen > SYS_NMLN) { in whoami() 166 if (namelen > 0) { in whoami() 169 sethostname(bp.client_name, namelen); in whoami() 176 namelen = strlen(bp.domain_name); in whoami() 177 if (namelen > SYS_NMLN) { in whoami() 182 if (namelen > 0) in whoami()
|
/titanic_44/usr/src/cmd/ypcmd/mknetid/ |
H A D | getname.c | 85 getname(name, namelen, ignore, sep, linep, com) in getname() argument 87 int namelen; 106 while (! issep(c) && ! iseol(c) && np - name < namelen) { 111 if (np - name < namelen) {
|
/titanic_44/usr/src/uts/sun4v/io/ |
H A D | mach_rootnex.c | 46 extern int rootnex_name_child(dev_info_t *child, char *name, int namelen); 146 rootnex_name_child_impl(dev_info_t *child, char *name, int namelen) in rootnex_name_child_impl() argument 180 (void) snprintf(name, namelen, "%x,%x", in rootnex_name_child_impl() 217 (void) snprintf(name, namelen, "%s%x", in rootnex_name_child_impl() 221 (void) snprintf(name, namelen, "%s%x,%x", in rootnex_name_child_impl()
|
/titanic_44/usr/src/cmd/ypcmd/ |
H A D | stdhosts.c | 243 int namelen; /* Length of the name */ in verify_and_output() local 290 namelen = p - namep; in verify_and_output() 291 n += namelen + 1; /* single white space + name */ in verify_and_output() 307 memcpy(tmpbufp, namep, namelen+1); /* Plus the '\0' */ in verify_and_output() 308 tmpbufp += namelen; in verify_and_output()
|
/titanic_44/usr/src/cmd/zonestat/zonestat/ |
H A D | zonestat.c | 924 zonestat_print_resource__header(size_t namelen, char *restype, char *size) in zonestat_print_resource__header() argument 931 (void) snprintf(name_format, sizeof (name_format), "%%-%ds ", namelen); in zonestat_print_resource__header() 938 zonestat_print_resource_zone_header(size_t namelen) in zonestat_print_resource_zone_header() argument 945 (void) snprintf(name_format, sizeof (name_format), "%%%ds ", namelen); in zonestat_print_resource_zone_header() 1033 zonestat_print_resource_(size_t namelen, int report_fmt, char *res, in zonestat_print_resource_() argument 1052 (void) snprintf(name_format, sizeof (name_format), "%%-%ds ", namelen); in zonestat_print_resource_() 1059 zonestat_print_resource_zone(size_t namelen, int report_fmt, char *restype, in zonestat_print_resource_zone() argument 1094 (void) snprintf(name_format, sizeof (name_format), "%%%ds ", namelen); in zonestat_print_resource_zone() 1452 size_t namelen, len; in zonestat_print_res() local 1460 namelen = strlen(resname); in zonestat_print_res() [all …]
|
/titanic_44/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_minix.c | 34 static int mapblock1, mapblock2, namelen; variable 179 namelen = 14; in minix_mount() 182 namelen = 30; in minix_mount() 494 loc += sizeof (dp->inode) + namelen; in minix_dir() 507 int saved_c = dp->name[namelen]; in minix_dir() 509 dp->name[namelen] = 0; in minix_dir() 522 dp->name[namelen] = saved_c; in minix_dir()
|
H A D | fsys_xfs.c | 310 sf_ino (char *sfe, int namelen) in sf_ino() argument 312 void *p = sfe + namelen + 3; in sf_ino() 335 int namelen = 1; in next_dentry() local 362 ++namelen; in next_dentry() 369 namelen = sfe->namelen; in next_dentry() 370 *ino = sf_ino ((char *)sfe, namelen); in next_dentry() 373 ((char *)sfe + namelen + 11 - xfs.i8param); in next_dentry() 397 namelen = dau->entry.namelen; in next_dentry() 399 toread = roundup8 (namelen + 11) - 9; in next_dentry() 405 name[namelen] = 0; in next_dentry()
|
/titanic_44/usr/src/lib/nsswitch/user/common/ |
H A D | getprinter.c | 110 int namelen; local 119 namelen = strlen(args->key.name); 153 if ((strncmp(p, args->key.name, namelen) == 0) && 154 ((*(p+namelen) == '|') || 155 (isspace(*(p+namelen)) != 0)))
|
/titanic_44/usr/src/lib/libzonecfg/common/ |
H A D | scratchops.c | 148 zonecfg_get_scratch(FILE *fp, char *zonename, size_t namelen, char *kernname, in zonecfg_get_scratch() argument 166 strlcpy(zonename, line, namelen) >= namelen) in zonecfg_get_scratch() 200 size_t namelen, char *altroot, size_t altlen) in zonecfg_reverse_scratch() argument 205 while (zonecfg_get_scratch(fp, zonename, namelen, kzone, in zonecfg_reverse_scratch()
|