Searched defs:bufsize (Results 26 - 50 of 305) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/oamuser/user/
H A Dgroups.c61 int bufsize, g_length, sav_errno; local
101 bufsize = MYBUFSIZE;
102 if ((g_string = malloc(bufsize)) == NULL) {
109 * bufsize contains the size of the currently allocated buffer
111 * greater than MYBUFSIZE is encountered then bufsize gets increased
120 while (fgets(gstr_off, (bufsize - g_length), e_fptr) != NULL) {
124 new_g_string = realloc(g_string, (bufsize + MYBUFSIZE));
132 bufsize += MYBUFSIZE;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dtrace.c167 fmt_lla(char *llabuf, int bufsize, uchar_t *lla, int llalen) argument
174 (void) snprintf(cp, bufsize, "%02x", lla[i] & 0xFF);
176 (void) snprintf(cp, bufsize, "%02x:", lla[i] & 0xFF);
177 bufsize -= strlen(cp);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/kssl/kssladm/
H A Dkssladm.c89 read_pass_from_file(const char *filename, char *buffer, size_t bufsize) argument
102 line = fgets(buffer, bufsize, fp);
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-driver.c81 xge_hal_driver_tracebuf_read(int bufsize, char *retbuf, int *retsize) argument
97 xge_os_snprintf((retbuf + retbuf_off), (bufsize - retbuf_off),
100 if (retbuf_off > bufsize)
108 xge_os_snprintf((retbuf + retbuf_off), (bufsize - retbuf_off),
111 if (retbuf_off > bufsize)
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcdio.c157 int sfdcdio(Sfio_t* f, size_t bufsize) argument
159 int sfdcdio(f, bufsize)
161 size_t bufsize;
187 if(bufsize > 0)
188 bufsize = (bufsize/dio.d_miniosz)*dio.d_miniosz;
189 if(bufsize <= 0)
190 bufsize = dio.d_miniosz*64;
191 if(bufsize > dio.d_maxiosz)
192 bufsize
[all...]
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetifaddrs.c234 size_t bufsize; local
252 bufsize = (lifn.lifn_count + 4) * sizeof (struct lifreq);
254 if ((tmp = realloc(*buf, bufsize)) == NULL)
260 lifc.lifc_len = bufsize;
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dstatistics.c32 fmt_human_units(size_t bytes, char *buf, size_t bufsize) argument
49 (void) snprintf(buf, bufsize, MSG_ORIG(MSG_FMT_MEMUNIT),
/illumos-gate/usr/src/lib/libtsol/common/
H A Dbtos.c150 size_t bufsize = sizeof (labeld_data_t); local
167 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
177 (void) munmap((void *)callp, bufsize);
245 size_t bufsize = sizeof (labeld_data_t); local
261 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
272 (void) munmap((void *)callp, bufsize);
H A Dsetflabel.c80 size_t bufsize = sizeof (labeld_data_t); local
111 if (datasize > bufsize) {
115 bufsize = datasize;
123 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) {
180 size_t bufsize = sizeof (labeld_data_t); local
203 if (datasize > bufsize) {
207 bufsize = datasize;
228 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) {
H A Dmisc.c92 size_t bufsize = sizeof (labeld_data_t); local
99 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) {
140 size_t bufsize = sizeof (labeld_data_t); local
159 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) {
193 size_t bufsize = sizeof (labeld_data_t); local
212 if (__call_labeld(&callp, &bufsize, &datasize) != SUCCESS) {
241 size_t bufsize = sizeof (labeld_data_t); local
247 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) != SUCCESS) {
281 size_t bufsize = sizeof (labeld_data_t); local
287 if (__call_labeld(&callp, &bufsize,
345 size_t bufsize = sizeof (labeld_data_t); local
[all...]
/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_door_data.c296 ndmp_door_get_buf(ndmp_door_ctx_t *ctx, unsigned char *buf, int bufsize) argument
305 if (bufsize < len) {
/illumos-gate/usr/src/common/tsol/
H A Dltos.c190 size_t bufsize = sizeof (labeld_data_t); local
209 if ((err = __call_labeld(&callp, &bufsize, &datasize)) ==
219 (void) munmap((void *)callp, bufsize);
264 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) {
273 (void) munmap((void *)callp, bufsize);
312 if (__call_labeld(&callp, &bufsize, &datasize) == SUCCESS) {
321 (void) munmap((void *)callp, bufsize);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c56 int bufsize; local
75 bufsize = numifs * sizeof (struct lifreq);
77 if (buf == NULL || bufsize > maxbufsize) {
80 maxbufsize = bufsize;
90 lifc.lifc_len = bufsize;
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_overflow.c358 u_int32_t bufsize, cmp_bytes, key_left; local
369 bufsize = 0;
372 &local_dbt, tlen, pgno, &buf, &bufsize)) != 0)
375 __os_free(buf, bufsize);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dserialize.c150 size_t bufsize, bsize;
153 bufsize = 0;
154 if (!(kret = krb5_size_opaque(kcontext, *mp, arg, &bufsize))) {
155 if ((buffer = (krb5_octet *) MALLOC(bufsize))) {
157 bsize = bufsize;
164 bufsize -= bsize;
166 *sizep = bufsize;
145 size_t bufsize, bsize; local
/illumos-gate/usr/src/uts/common/syscall/
H A Dppriv.c220 getprivimplinfo(void *buf, size_t bufsize) argument
224 err = copyout(priv_hold_implinfo(), buf, min(bufsize, privinfosize));
373 privsys(int code, priv_op_t op, priv_ptype_t type, void *buf, size_t bufsize, argument
381 if (bufsize < sizeof (priv_set_t))
385 if (bufsize < sizeof (priv_set_t))
389 return (getprivimplinfo(buf, bufsize));
399 if (bufsize < sizeof (priv_set_t))
416 size32_t bufsize, int itype)
419 (size_t)bufsize, itype));
415 privsys32(int code, priv_op_t op, priv_ptype_t type, caddr32_t buf, size32_t bufsize, int itype) argument
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfsetbuf.c102 ssize_t bufsize, blksz; local
171 bufsize = 0;
231 bufsize = 64 * 1024;
265 bufsize = SF_GRAIN;
310 { if(bufsize > _Sfpage)
311 size = bufsize * SF_NMAP;
333 else if((ssize_t)(size = _Sfpage) < bufsize)
334 size = bufsize;
/illumos-gate/usr/src/cmd/rpcbind/
H A Drpcb_check.c85 sgen_toa(struct sockaddr_gen *addr, char *buf, size_t bufsize) argument
87 return (inet_ntop(SGFAM(addr), SGADDRP(addr), buf, bufsize));
/illumos-gate/usr/src/uts/common/fs/
H A Dpathname.c105 void *buf, size_t bufsize)
110 pnp->pn_bufsize = bufsize;
112 error = copyinstr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen);
114 error = copystr(str, pnp->pn_path, bufsize, &pnp->pn_pathlen);
104 pn_get_buf(char *str, enum uio_seg seg, struct pathname *pnp, void *buf, size_t bufsize) argument
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetpwnam_r.c120 size_t bufsize, struct passwd **result)
126 if ((*result = getpwuid_r(uid, pwd, buffer, (uintptr_t)bufsize))
153 size_t bufsize, struct passwd **result)
159 if ((*result = getpwnam_r(name, pwd, buffer, (uintptr_t)bufsize))
119 __posix_getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result) argument
152 __posix_getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result) argument
/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dkmem.c81 size_t bufsize, /* size of the objects it manages */
101 uc = umem_cache_create(name, bufsize, align,
79 kmem_cache_create( char *name, size_t bufsize, size_t align, int (*constructor)(void *, void *, int), void (*destructor)(void *, void *), void (*reclaim)(void *), void *private, vmem_t *vmp, int kcflags) argument
H A Dprintf.c79 size_t bufsize = LOG_MSGSIZE; local
93 bufend = bufp + bufsize;
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dmain.c151 UINT32 subcap, void *buf, size_t bufsize)
164 if (datalen > bufsize) {
167 "(expected %u)\n"), cap, datalen, bufsize);
150 get_tpm_capability(TSS_HCONTEXT hContext, TSS_HOBJECT hTPM, UINT32 cap, UINT32 subcap, void *buf, size_t bufsize) argument
/illumos-gate/usr/src/cmd/isainfo/
H A Disainfo.c64 size_t bufsize = 20; /* wild guess */ local
67 if ((buf = malloc(bufsize)) == NULL)
70 ret = sysinfo(cmd, buf, bufsize);
73 if (ret > bufsize) {
74 bufsize = ret;
75 buf = realloc(buf, bufsize);
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/motherboard/
H A Dmotherboard.c127 ssize_t bufsize = 0; local
150 bufsize = ldom_get_core_md(lhp, &bufp);
152 bufsize = ldom_get_local_md(lhp, &bufp);
154 if (bufsize < 1) {
155 topo_mod_dprintf(mod, "Failed to get the pri/md (bufsize=%d)\n",
156 bufsize);
160 topo_mod_dprintf(mod, "pri/md bufsize=%d\n", bufsize);
165 mb_topo_free(bufp, (size_t)bufsize);
174 mb_topo_free(bufp, (size_t)bufsize);
[all...]

Completed in 311 milliseconds

1234567891011>>