Searched defs:bufsz (Results 1 - 25 of 26) sorted by relevance

12

/osnet-11/usr/src/lib/libc/port/sys/
H A Dacctctl.c34 acctctl(int cmd, void *buf, size_t bufsz) argument
36 return (syscall(SYS_acctctl, cmd, buf, bufsz));
H A Dmsgsys.c120 msgsnap(int msqid, void *buf, size_t bufsz, long msgtyp) argument
122 return (syscall(SYS_msgsys, MSGSNAP, msqid, buf, bufsz, msgtyp));
/osnet-11/usr/src/lib/libproc/common/
H A Dproc_names.c62 proc_fltname(int flt, char *buf, size_t bufsz) argument
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) argument
93 if (bufsz == 0) /* force a program failure */
101 (void) strncpy(buf, name, bufsz);
103 len = snprintf(buf, bufsz, "SI
379 proc_sysname(int sys, char *buf, size_t bufsz) argument
[all...]
H A Dproc_arg.c437 int bufsz; local
482 bufsz = prheader.pr_nent * prheader.pr_entsize;
483 if ((buf = malloc(bufsz)) == NULL) {
489 if (pread(fd, buf, bufsz, sizeof (prheader)) != bufsz) {
/osnet-11/usr/src/lib/libsmbrp/common/
H A Dsmbrp_plugin.c100 * buffer provided via *bufsz; the routine will fail with EOVERFLOW if
101 * the results will not fit in the buffer, in which case, *bufsz will
110 size_t *bufsz)
117 if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz))
132 if (slen > *bufsz) {
133 *bufsz = slen;
138 xdrmem_create(&xdr, buf, *bufsz, XDR_ENCODE);
144 *bufsz = slen;
156 size_t *bufsz)
161 if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz))
109 smb_rpo_deref(const char *svc_type, const char *svc_data, char *buf, size_t *bufsz) argument
155 smb_rpo_form(const char *svc_type, const char *svc_data, char *buf, size_t *bufsz) argument
185 smb_dfs_link_encode(dfs_info_t *info, char *buf, size_t bufsz) argument
[all...]
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c62 dt_strtab_create(size_t bufsz) argument
67 assert(bufsz != 0);
83 sp->str_bufsz = bufsz;
/osnet-11/usr/src/lib/libreparse/common/
H A Dfs_reparse_lib.c145 * of the buffer provided via *bufsz.
147 * if ok return 0 and *bufsz is updated to contain the actual length of
149 * EOVERFLOW; results do not fit in the buffer, *bufsz will be updated
154 size_t *bufsz)
159 (bufsz == NULL))
164 svc_type, svc_data, *bufsz);
173 return (ops->rpo_deref(svc_type, svc_data, buf, bufsz));
219 size_t bufsz; local
225 bufsz = SYMLINK_MAX; /* no need to mess around */
226 if ((buf = malloc(bufsz))
153 reparse_deref(const char *svc_type, const char *svc_data, char *buf, size_t *bufsz) argument
[all...]
/osnet-11/usr/src/lib/libshare_plugins/autofs/
H A Dlibshare_autofs.c387 int bufsz = 0; local
400 bufsz = PATH_MAX;
402 sctype, AUTOFS_FMRI, &bufsz);
/osnet-11/usr/src/lib/libsctp/common/
H A Dsctp.c105 socklen_t bufsz; local
131 bufsz = sizeof (union sockaddr_storage_v6) * naddrs;
132 if ((*addrs = malloc(bufsz)) == NULL) {
137 opt.sopt_len = bufsz;
166 socklen_t bufsz; local
192 bufsz = sizeof (union sockaddr_storage_v6) * naddrs;
193 if ((*addrs = malloc(bufsz)) == NULL) {
198 opt.sopt_len = bufsz;
/osnet-11/usr/src/lib/libmapid/common/
H A Dmapid.c953 int ret, bufsz = NS_MAXCDNAME; local
960 SCF_TYPE_ASTRING, NFSMAPID, &bufsz);
/osnet-11/usr/src/lib/pyzfs/common/
H A Dioctl.c374 int bufsz = 1<<20; local
391 buf = malloc(bufsz);
401 zc.zc_nvlist_dst_size = bufsz;
/osnet-11/usr/src/lib/libscf/common/
H A Dnotify_params.c680 int bufsz = scf_limit(SCF_LIMIT_MAX_NAME_LENGTH) + 1; local
681 char *propname = malloc(bufsz);
770 if (snprintf(propname, bufsz, "%s,%s",
772 bufsz) {
/osnet-11/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c1274 __IPv6_alloc(int bufsz) argument
1281 if ((bufp->result = malloc(ALIGN(sizeof (struct hostent)) + bufsz)) ==
1287 bufp->buflen = bufsz;
/osnet-11/usr/src/lib/libdevice/
H A Ddevctl.c1307 devctl_get_pathname(devctl_hdl_t dcp, char *pathbuf, size_t bufsz) argument
1309 if (dcp == NULL || pathbuf == NULL || bufsz == 0) {
1314 (void) snprintf(pathbuf, bufsz, "%s", DCP(dcp)->opath);
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/chip/common/
H A Dchip_smbios.c493 int bufsz = 0; local
528 bufsz += chip_strlen(blank) +
539 bufsz += chip_strlen(label) + chip_strlen(delim) +
542 buf = topo_mod_alloc(mod, bufsz);
546 (void) strlcpy(buf, label, bufsz);
548 (void) strlcat(buf, delim, bufsz);
557 bufsz);
561 bufsz);
564 (void) strlcat(buf, blank, bufsz);
565 (void) strlcat(buf, dimm_bank, bufsz);
[all...]
/osnet-11/usr/src/lib/libc/inc/
H A Dasyncio.h77 size_t bufsz; member in struct:aio_args
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_error.c2054 size_t bufsz; local
2058 bufsz = sizeof (buf);
2063 return (void_to_str(ep, buf, bufsz));
2065 return (sys_to_str(ep, buf, bufsz));
2067 return (rpc_to_str(ep, buf, bufsz));
2069 return (dev_to_str(ep, buf, bufsz));
2071 return (use_to_str(ep, buf, bufsz));
2073 return (md_to_str(ep, buf, bufsz));
2075 return (comp_to_str(ep, buf, bufsz));
2077 return (hsp_to_str(ep, buf, bufsz));
2126 size_t bufsz = sizeof (buf); local
[all...]
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_cfg.c481 smb_config_getstr(smb_cfg_id_t id, char *cbuf, int bufsz) argument
509 (void) strlcpy(cbuf, tmp, bufsz);
522 cbuf, bufsz);
690 smb_config_get(smb_cfg_id_t id, char *cbuf, int bufsz) argument
699 return (smb_config_getstr(id, cbuf, bufsz));
704 (void) snprintf(cbuf, bufsz, "%lld", cint);
709 (void) strlcpy(cbuf, "true", bufsz);
711 (void) strlcpy(cbuf, "false", bufsz);
1162 smb_config_get_execinfo(char *map, char *unmap, size_t bufsz) argument
1169 bufsz
[all...]
/osnet-11/usr/src/lib/libntsvcs/common/
H A Ddfs.c1491 dfs_root_encode(dfs_info_t *info, char **buf, size_t *bufsz) argument
1517 rc = nvlist_pack(nvl, buf, bufsz, NV_ENCODE_NATIVE, 0);
1529 dfs_root_decode(dfs_info_t *info, char *buf, size_t bufsz, uint32_t infolvl) argument
1540 if (nvlist_unpack(buf, bufsz, &nvl, 0) != 0)
/osnet-11/usr/src/lib/libc/port/aio/
H A Daio.c314 aioread(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument
317 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOREAD));
321 aiowrite(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument
324 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOWRITE));
329 aioread64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, argument
332 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOAREAD64));
336 aiowrite64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, argument
339 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOAWRITE64));
344 _aiorw(int fd, caddr_t buf, int bufsz, offset_t offset, int whence, argument
405 fd, buf, bufsz, loffse
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetutx.c1272 ssize_t nbytes, bufsz = sizeof (struct futmpx) * UTMPNBUF; local
1275 if ((utmpbuf = malloc(bufsz)) == NULL) {
1285 if ((nbytes = read(fd, utmpbuf, bufsz)) < bufsz) {
/osnet-11/usr/src/lib/librestart/common/
H A Dlibrestart.c2154 size_t bufsz, scf_property_t *prop, scf_value_t *val)
2173 szret = scf_value_get_astring(val, buf, bufsz);
2386 const size_t bufsz = PROJECT_BUFSZ; local
2411 buf = malloc(bufsz);
2418 bufsz);
2446 buf = malloc(bufsz);
2452 pp = getprojbyid(projid, &proj, buf, bufsz);
2153 get_astring_val(scf_propertygroup_t *pg, const char *name, char *buf, size_t bufsz, scf_property_t *prop, scf_value_t *val) argument
/osnet-11/usr/src/lib/libdevinfo/
H A Ddevfsmap.c1555 * bufsz length of the buffer
1560 get_install_devlink(char *physpath, char *buf, size_t bufsz) argument
1607 return (strlcpy(buf, devname, bufsz));
1617 * bufsz length of the buffer
1622 get_target_devlink(char *rootdir, char *physpath, char *buf, size_t bufsz) argument
1665 bufsz));
1728 * bufsz length of the buffer
1734 size_t bufsz)
1741 if (rootdir == NULL || devname == NULL || buf == NULL || bufsz == 0)
1778 return (get_install_devlink(physpath, buf, bufsz));
1733 devfs_target2install(const char *rootdir, const char *devname, char *buf, size_t bufsz) argument
1794 devfs_install2target(const char *rootdir, const char *devname, char *buf, size_t bufsz) argument
[all...]
/osnet-11/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_brand.c1206 s10_acctctl(sysret_t *rval, int cmd, void *buf, size_t bufsz) argument
1223 bufsz));
1227 bufsz));
/osnet-11/usr/src/lib/libshare_plugins/nfs/
H A Dlibshare_nfs.c4624 int bufsz = 0, i; local
4637 bufsz = PATH_MAX;
4640 svc_name, &bufsz);

Completed in 162 milliseconds

12