Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 25 of 216) sorted by relevance

123456789

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetlogin.c83 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 Dgethostname.c42 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()
/illumos-gate/usr/src/lib/libproc/common/
H A Dpr_getsockname.c41 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()
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dauth_kern.c124 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 Dauth_loopb.c126 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()
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_setinfo_file.c118 uint32_t namelen; in smb2_setf_rename() local
123 &flags, &rootdir, &namelen); in smb2_setf_rename()
126 sr, namelen, &fname); in smb2_setf_rename()
131 if ((rootdir != 0) || (namelen == 0) || (namelen >= SMB_MAXPATHLEN)) { in smb2_setf_rename()
149 uint32_t namelen; in smb2_setf_link() local
154 &flags, &rootdir, &namelen); in smb2_setf_link()
157 sr, namelen, &fname); in smb2_setf_link()
162 if ((rootdir != 0) || (namelen == 0) || (namelen >= SMB_MAXPATHLEN)) { in smb2_setf_link()
H A Dsmb_trans2_find.c753 if (namelen == -1) in smb_trans2_find_mbc_encode()
785 namelen += 2; in smb_trans2_find_mbc_encode()
787 namelen += 1; in smb_trans2_find_mbc_encode()
826 namelen); in smb_trans2_find_mbc_encode()
843 namelen); in smb_trans2_find_mbc_encode()
857 namelen); in smb_trans2_find_mbc_encode()
871 namelen, in smb_trans2_find_mbc_encode()
886 namelen, in smb_trans2_find_mbc_encode()
912 namelen, in smb_trans2_find_mbc_encode()
943 namelen, in smb_trans2_find_mbc_encode()
[all …]
H A Dsmb2_query_dir.c440 int namelen; in smb2_find_mbc_encode() local
447 namelen = smb_wcequiv_strlen(fileinfo->fi_name); in smb2_find_mbc_encode()
448 if (namelen == -1) in smb2_find_mbc_encode()
487 namelen); in smb2_find_mbc_encode()
503 namelen, in smb2_find_mbc_encode()
520 namelen, in smb2_find_mbc_encode()
544 namelen, in smb2_find_mbc_encode()
570 namelen, /* l */ in smb2_find_mbc_encode()
599 namelen); /* l */ in smb2_find_mbc_encode()
627 namelen); in smb2_find_mbc_encode()
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsocksyscalls.c260 namelen++; in copyin_name()
261 ASSERT((socklen_t)namelen == namelen); in copyin_name()
349 size_t namelen; in so_socketpair() local
573 namelen = 0; in bind()
626 socklen_t namelen; in accept() local
654 if (copyin(namelenp, &namelen, sizeof (namelen))) { in accept()
667 namelen = 0; in accept()
830 socklen_t namelen; in recvit() local
1197 socklen_t namelen; in sendit() local
1519 if (copyin(namelenp, &namelen, sizeof (namelen)) || in getpeername()
[all …]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetprotoent_r.c135 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 Dgetnetent_r.c139 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()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dgetrpcent_r.c123 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()
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dname.c343 OM_uint32 namelen; in do_exported_netname() local
379 namelen = (*p++ << 24) & 0xff000000; in do_exported_netname()
380 namelen |= (*p++ << 16) & 0xff0000; in do_exported_netname()
381 namelen |= (*p++ << 8) & 0xff00; in do_exported_netname()
382 namelen |= *p++ & 0xff; in do_exported_netname()
389 if (namelen < OIDlen_len) in do_exported_netname()
397 if (namelen < OIDlen_len + oidlen) in do_exported_netname()
648 OM_uint32 namelen; in __dh_gss_export_name() local
707 *p++ = (namelen & 0xff000000) >> 24; in __dh_gss_export_name()
709 *p++ = (namelen & 0x0000ff00) >> 8; in __dh_gss_export_name()
[all …]
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dgethostname.c51 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()
/illumos-gate/usr/src/stand/lib/sa/
H A Dunistd.c42 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()
/illumos-gate/usr/src/uts/common/fs/bootfs/
H A Dbootfs_construct.c111 const char *name, size_t namelen) in bootfs_node_init() argument
124 bnp->bvn_name = kmem_alloc(namelen + 1, KM_SLEEP); in bootfs_node_init()
125 bcopy(name, bnp->bvn_name, namelen); in bootfs_node_init()
126 bnp->bvn_name[namelen] = '\0'; in bootfs_node_init()
162 const char *name, size_t namelen, const vattr_t *vap, uintptr_t addr, in bootfs_mknode() argument
171 buf = kmem_alloc(namelen + 1, KM_SLEEP); in bootfs_mknode()
172 bcopy(name, buf, namelen); in bootfs_mknode()
173 buf[namelen] = '\0'; in bootfs_mknode()
176 kmem_free(buf, namelen + 1); in bootfs_mknode()
184 kmem_free(buf, namelen + 1); in bootfs_mknode()
[all …]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetprojent.c39 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 Dgethostent.c49 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 …]
H A Dgetnetgrent.c71 uint_t namelen, i; in hash_netgrname() local
76 namelen = strlen(name); in hash_netgrname()
79 namelen = 0; in hash_netgrname()
82 namelen++; in hash_netgrname()
86 for (i = 0; i < namelen; i++) in hash_netgrname()
427 for (hashval = 0, i = 0; i < namelen; i++) { in ngt_insert()
433 if (strncmp(cur->name, name, namelen) == 0 && in ngt_insert()
434 cur->name[namelen] == 0) { in ngt_insert()
439 cur = malloc(offsetof(struct netgrnam, name) + namelen + 1); in ngt_insert()
443 (void) memcpy(cur->name, name, namelen); in ngt_insert()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Ddirent.h80 #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)
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dbootparams.c85 int namelen; in whoami() local
158 namelen = strlen(bp.client_name); in whoami()
159 if (namelen > SYS_NMLN) { in whoami()
164 if (namelen > 0) { in whoami()
167 (void) sethostname(bp.client_name, namelen); in whoami()
174 namelen = strlen(bp.domain_name); in whoami()
175 if (namelen > SYS_NMLN) { in whoami()
180 if (namelen > 0) in whoami()
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dgetname.c85 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) {
/illumos-gate/usr/src/uts/sun4v/io/
H A Dmach_rootnex.c46 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()
/illumos-gate/usr/src/cmd/zonestat/zonestat/
H A Dzonestat.c1452 size_t namelen, len; in zonestat_print_res() local
1460 namelen = strlen(resname); in zonestat_print_res()
1486 if (len > namelen) in zonestat_print_res()
1487 namelen = len; in zonestat_print_res()
1681 namelen); in zonestat_print_cpu_zone()
1730 size_t namelen, len; in zonestat_print_pset() local
1783 namelen = strlen(name); in zonestat_print_pset()
1785 namelen = ZSTAT_CPU_MIN_PSETNAME; in zonestat_print_pset()
1805 namelen = ZSTAT_CPU_MIN_ZONENAME; in zonestat_print_pset()
1811 if (len > namelen) in zonestat_print_pset()
[all …]
/illumos-gate/usr/src/cmd/ypcmd/
H A Dstdhosts.c243 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()

123456789