Searched defs:bufsize (Results 1 - 25 of 296) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/isalist/
H A Disalist.c43 size_t bufsize = BUFSIZ; local
45 ret = sysinfo(SI_ISALIST, buf, bufsize);
49 } else if (ret > bufsize) {
52 buf = malloc(bufsize = ret);
58 ret = sysinfo(SI_ISALIST, buf, bufsize);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dexport_sec_context.c42 size_t bufsize, blen; local
64 bufsize = 0;
66 &bufsize)))
70 if ((obuffer = (krb5_octet *) xmalloc(bufsize)) == NULL) {
76 blen = bufsize;
83 interprocess_token->length = bufsize - blen;
98 if (obuffer && bufsize) {
99 memset(obuffer, 0, bufsize);
H A Dlucid_context.c198 unsigned int bufsize = sizeof(gss_krb5_lucid_context_v1_t); local
202 if ((lctx = xmalloc(bufsize)) == NULL) {
207 memset(lctx, 0, bufsize);
/illumos-gate/usr/src/lib/libc/port/sys/
H A Dreadlink.c32 readlinkat(int fd, const char *path, char *buf, size_t bufsize) argument
37 error = __systemcall(&rval, SYS_readlinkat, fd, path, buf, bufsize);
45 readlink(const char *path, char *buf, size_t bufsize) argument
51 error = __systemcall(&rval, SYS_readlink, path, buf, bufsize);
56 return (readlinkat(AT_FDCWD, path, buf, bufsize));
H A Dexacctsys.c39 getacct(idtype_t idtype, id_t id, void *buf, size_t bufsize) argument
45 0, idtype, id, buf, bufsize, 0);
52 putacct(idtype_t idtype, id_t id, void *buf, size_t bufsize, int flags) argument
54 return (syscall(SYS_exacctsys, 1, idtype, id, buf, bufsize, flags));
H A Dcorectl.c58 core_set_global_path(const char *buf, size_t bufsize) argument
60 return (syscall(SYS_corectl, CC_SET_GLOBAL_PATH, buf, bufsize));
64 core_get_global_path(char *buf, size_t bufsize) argument
66 return (syscall(SYS_corectl, CC_GET_GLOBAL_PATH, buf, bufsize));
82 core_set_default_path(const char *buf, size_t bufsize) argument
84 return (syscall(SYS_corectl, CC_SET_DEFAULT_PATH, buf, bufsize));
88 core_get_default_path(char *buf, size_t bufsize) argument
90 return (syscall(SYS_corectl, CC_GET_DEFAULT_PATH, buf, bufsize));
106 core_set_process_path(const char *buf, size_t bufsize, pid_t pid) argument
108 return (syscall(SYS_corectl, CC_SET_PROCESS_PATH, buf, bufsize, pi
112 core_get_process_path(char *buf, size_t bufsize, pid_t pid) argument
[all...]
H A Dppriv.c69 getprivinfo(priv_impl_info_t *buf, size_t bufsize) argument
72 bufsize));
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioBuffer.h47 size_t bufsize; // buffer size, in bytes member in class:AudioBuffer
/illumos-gate/usr/src/uts/common/syscall/
H A Dprofil.c43 profil(unsigned short *bufbase, size_t bufsize, ulong_t pcoffset, argument
53 p->p_prof.pr_size = bufsize;
H A Dgetdents.c81 int bufsize; local
107 bufsize = count;
108 newbuf = kmem_alloc(bufsize, KM_SLEEP);
109 obuf = kmem_alloc(bufsize, KM_SLEEP);
168 ASSERT((char *)op <= (char *)obuf + bufsize);
169 ASSERT((char *)dp <= (char *)newbuf + bufsize);
174 kmem_free(newbuf, bufsize);
175 kmem_free(obuf, bufsize);
/illumos-gate/usr/src/lib/print/libprint/common/
H A Dns_cmn_printer.c120 int bufsize = va_arg(ap, int); local
125 (void) strlcat(buf, name, bufsize);
126 (void) strlcat(buf, "|", bufsize);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbtranslate.c69 static int bufsize; local
77 if (!byte && (n*CSMAX+1) > bufsize) {
80 bufsize = n * CSMAX + 1;
81 if ((buf = malloc(bufsize * sizeof (char))) == NULL)
82 bufsize = 0;
112 static int bufsize; local
118 if (!code && (n + 1) > bufsize) {
121 bufsize = n + 1;
122 if ((buf = (wchar_t *)malloc(bufsize * sizeof (wchar_t))) ==
124 bufsize
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dlogging.c57 log_format(int severity, const char *fmt, va_list ap, char *buf, int bufsize) argument
64 bufsize = sizeof (vbuf);
67 offset = snprintf(buf, bufsize, "%d: ", pthread_self());
68 (void) vsnprintf(buf + offset, bufsize - offset, fmt, ap);
/illumos-gate/usr/src/cmd/getopt/
H A Dgetopt.c64 size_t bufsize; local
82 bufsize = BLOCKLEN;
83 if ((outstr = (char *)malloc(bufsize)) == NULL) {
101 ALLOC_BUFMEM(outstr, bufsize, 3);
106 ALLOC_BUFMEM(outstr, bufsize, strlen(optarg)+1)
116 ALLOC_BUFMEM(outstr, bufsize, 3)
119 ALLOC_BUFMEM(outstr, bufsize, strlen(argv[optind])+1)
/illumos-gate/usr/src/cmd/hal/utils/
H A Dadt_data.c31 int count, bufsize; local
77 bufsize = 256;
78 buf = (uchar_t *)malloc (bufsize);
81 if (count == bufsize) {
82 bufsize += 256;
83 buf = realloc (buf, bufsize);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/file/
H A Dktfile.h62 size_t bufsize; /* total size of data buffer */ member in struct:_krb5_ktfile_data
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_sendsigned.c36 int newmsglen, bufsize, siglen; local
52 bufsize = msglen + 1024;
53 newmsg = (u_char *) malloc(bufsize);
78 ret = ns_sign(newmsg, &newmsglen, bufsize, NOERROR, dstkey, NULL, 0,
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dldpart.c58 size_t namesize, bufsize; local
78 bufsize = namesize + st.st_size;
79 if ((lbuf = libc_malloc(bufsize)) == NULL) {
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_trace.c45 size_t bufsize; local
74 bufsize = tbp->tb_size * tbp->tb_recs;
76 tbp->tb_buf = fmd_zalloc(bufsize, FMD_SLEEP);
77 tbp->tb_end = (void *)((uintptr_t)tbp->tb_buf + bufsize - tbp->tb_size);
/illumos-gate/usr/src/lib/libresolv/
H A Dres_init.c113 unsigned bufsize; local
124 bufsize = numifs * sizeof (struct ifreq);
125 buf = (char *)malloc(bufsize);
131 ifc.ifc_len = bufsize;
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_config.c53 static int super_fgets(char **buf, size_t *bufsize, FILE *fp) { argument
58 real_bufsize = *bufsize;
70 *bufsize *= 2;
71 if (!(*buf = realloc(*buf, *bufsize))) {
76 real_bufsize = *bufsize - readlen;
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dgetifaddrs.c226 size_t bufsize; local
244 bufsize = (lifn.lifn_count + 4) * sizeof (struct lifreq);
246 if ((tmp = realloc(*buf, bufsize)) == NULL)
252 lifc.lifc_len = bufsize;
H A Dinterface_id.c118 size_t bufsize; local
160 bufsize = numifs * sizeof (struct lifreq);
161 buf = malloc(bufsize);
170 lifc.lifc_len = bufsize;
230 size_t bufsize; local
247 bufsize = numifs * sizeof (struct lifreq);
248 buf = malloc(bufsize);
257 lifc.lifc_len = bufsize;
/illumos-gate/usr/src/lib/libtsol/common/
H A Dstob.c106 size_t bufsize = sizeof (labeld_data_t); local
129 if (datasize > bufsize) {
135 bufsize = datasize;
143 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
233 size_t bufsize = sizeof (labeld_data_t); local
247 if (datasize > bufsize) {
253 bufsize = datasize;
261 if ((rval = __call_labeld(&callp, &bufsize, &datasize)) == SUCCESS) {
/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;

Completed in 104 milliseconds

1234567891011>>