Searched refs:buf (Results 76 - 100 of 1692) sorted by relevance

1234567891011>>

/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dsrv_rcache.c48 struct k5buf buf; local
59 krb5int_buf_init_dynamic(&buf);
71 krb5int_buf_add_fmt(&buf, "%s:%s", cachetype, def_env);
73 krb5int_buf_add(&buf, def_env);
76 krb5int_buf_add(&buf, cachetype);
77 krb5int_buf_add(&buf, ":");
80 krb5int_buf_add(&buf, "--");
82 krb5int_buf_add_fmt(&buf, "-%03o", piece->data[i]);
84 krb5int_buf_add_len(&buf, &piece->data[i], 1);
87 krb5int_buf_add_fmt(&buf, "
[all...]
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dt-scanf.c27 char buf[128]; local
39 sm_snprintf(buf, sizeof(buf), "%d", d);
41 if (!SM_TEST(strcmp(buf, r) == 0))
43 "got %s instead\n", buf);
45 i = sm_io_sscanf(buf, "%d", &h);
50 sm_snprintf(buf, sizeof(buf), "%d\n", d);
52 if (!SM_TEST(strcmp(buf, r) == 0))
54 "got %s instead\n", buf);
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dfmtelapsed.c35 char* buf; local
42 buf = fmtbuf(z = 8);
45 sfsprintf(buf, z, "%lu.%02lus", t, (u * 100 / n) % 100);
47 sfsprintf(buf, z, "%lum%02lus", t / 60, t - (t / 60) * 60);
49 sfsprintf(buf, z, "%luh%02lum", t / (60*60), (t - (t / (60*60)) * (60*60)) / 60);
51 sfsprintf(buf, z, "%lud%02luh", t / (24*60*60), (t - (t / (24*60*60)) * (24*60*60)) / (60*60));
53 sfsprintf(buf, z, "%luw%02lud", t / (7*24*60*60), (t - (t / (7*24*60*60)) * (7*24*60*60)) / (24*60*60));
55 sfsprintf(buf, z, "%luM%02lud", (t * 12) / (365*24*60*60), ((t * 12) - ((t * 12) / (365*24*60*60)) * (365*24*60*60)) / (12*24*60*60));
57 sfsprintf(buf, z, "%luY%02luM", t / (365*24*60*60), ((t - (t / (365*24*60*60)) * (365*24*60*60)) * 5) / (152 * 24 * 60 * 60));
59 sfsprintf(buf,
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dpsiginfo.c51 char buf[256]; local
60 (void) snprintf(buf, sizeof (buf),
71 (void) snprintf(buf, sizeof (buf),
77 (void) snprintf(buf, sizeof (buf),
83 (void) snprintf(buf, sizeof (buf),
87 (void) write(2, buf, strle
[all...]
/osnet-11/usr/src/lib/libpp/common/
H A Dpptrace.c42 static char buf[8]; local
67 if (iscntrl(c) || !isprint(c)) sfsprintf(buf, sizeof(buf), "`%03o'", c);
69 else sfsprintf(buf, sizeof(buf), "%c", c);
70 return(buf);
87 static char buf[128]; local
100 sfsprintf(buf, sizeof(buf), "%s=%s", ppinmap[i].nam, p->symbol->name);
101 return(buf);
120 static char buf[64]; local
151 static char buf[128]; local
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1_make.h50 asn1_error_code asn1_make_etag(asn1buf *buf, asn1_class asn1class,
54 * requires *buf is allocated, in_len is the length of an ASN.1 encoding
55 * which has just been inserted in *buf
56 * modifies *buf, *retlen
58 * length = in_len into *buf.
63 asn1_error_code asn1_make_tag(asn1buf *buf, asn1_class asn1class,
68 * requires *buf is allocated, in_len is the length of an ASN.1 encoding
69 * which has just been inserted in *buf
70 * modifies *buf, *retlen
73 * id# = tag and length = in_len into *buf
[all...]
/osnet-11/usr/src/lib/libast/common/misc/
H A Dsystrace.c39 char buf[PATH_MAX]; local
49 out = buf;
50 out += sfsprintf(out, sizeof(buf), "%s/.%s/%s", s, trace[0], id);
51 if (access(buf, F_OK))
55 av[3] = buf;
61 sfsprintf(out, &buf[sizeof(buf)] - out, ".%d", getpid());
/osnet-11/usr/src/lib/libc/port/fp/
H A Dfconvert.c35 fconvert(double arg, int ndigits, int *decpt, int *sign, char *buf) argument
62 buf[i] = dr.ds[i];
69 buf[i++] = '0';
71 buf[i] = 0;
75 buf[0] = '0';
77 buf[i] = '0';
78 buf[i] = 0;
82 __infnanstring(dr.fpclass, ndigits, buf);
85 return (buf);
89 sfconvert(single *arg, int ndigits, int *decpt, int *sign, char *buf) argument
143 qfconvert(quadruple *arg, int ndigits, int *decpt, int *sign, char *buf) argument
[all...]
H A Deconvert.c36 * Copies the appropriate string for a datum of class cl into *buf,
41 __infnanstring(enum fp_class_type cl, int ndigits, char *buf) argument
45 (void) memcpy(buf, "Inf", 4);
47 (void) memcpy(buf, "Infinity", 9);
50 (void) memcpy(buf, "NaN", 4);
56 econvert(double arg, int ndigits, int *decpt, int *sign, char *buf) argument
83 buf[i] = dr.ds[i];
84 buf[ndigits] = 0;
89 buf[i] = '0';
90 buf[ndigit
101 seconvert(single *arg, int ndigits, int *decpt, int *sign, char *buf) argument
146 qeconvert(quadruple *arg, int ndigits, int *decpt, int *sign, char *buf) argument
[all...]
/osnet-11/usr/src/lib/libcurses/screen/
H A Dkeyname.sh64 static char buf[16];
75 (void) sprintf(buf, "KEY_F(%d)", key - 0410);
79 (void) sprintf(buf, "KEY_%s", keystrings[i]);
89 (void) sprintf(buf, "%c", key);
91 (void) sprintf(buf, "M-%s", unctrl(key & 0177));
96 (void) sprintf(buf, "%d", key);
98 return (buf);
H A Dmbtranslate.c68 static char *buf; local
78 if (buf)
79 free(buf);
81 if ((buf = malloc(bufsize * sizeof (char))) == NULL)
86 if (!byte && !buf)
90 bufp = byte ? byte : buf;
98 return (byte ? byte : buf);
111 static wchar_t *buf; local
119 if (buf)
120 free((char *)buf);
[all...]
H A Dvwscanw.c66 char *buf; local
72 buf = _strcode2byte(code, NULL, -1);
73 n = _vsscanf(buf, fmt, ap);
H A Dwaddwch.c46 char buf[CSMAX]; local
55 if ((width = _curs_wctomb(buf, code & TRIM)) < 0)
59 p = buf;
H A Dwinswch.c45 char buf[CSMAX]; local
52 if ((width = _curs_wctomb(buf, code & TRIM)) < 0)
57 if (winsch(win, a|(unsigned char)buf[i]) == ERR)
/osnet-11/usr/src/lib/libast/common/path/
H A Dpathpath.c55 char buf[PATH_MAX]; local
60 path = buf;
75 getcwd(buf, sizeof(buf));
76 s = buf + strlen(buf);
77 sfsprintf(s, sizeof(buf) - (s - buf), "/%s", p);
78 if (path != buf)
79 strcpy(path, buf);
[all...]
/osnet-11/usr/src/lib/libdtrace_jni/java/src/org/opensolaris/os/dtrace/
H A DProgram.java176 StringBuilder buf = new StringBuilder();
181 buf.append((char)i);
185 String s = buf.toString();
201 StringBuilder buf = new StringBuilder();
202 buf.append(Program.class.getName());
203 buf.append("[contents = ");
204 buf.append(contents);
205 buf.append(", info = ");
206 buf.append(info);
207 buf
[all...]
/osnet-11/usr/src/lib/libresolv2/common/nameser/
H A Dns_print.c52 char **buf, size_t *buflen);
55 char **buf, size_t *buflen);
56 static void addlen(size_t len, char **buf, size_t *buflen);
58 char **buf, size_t *buflen);
60 char **buf, size_t *buflen);
79 *\li Number of characters written to buf, or -1 (check errno).
84 char *buf, size_t buflen)
91 name_ctx, origin, buf, buflen);
99 *\li Number of characters written to buf, or -1 (check errno).
106 char *buf, size_
82 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
102 ns_sprintrrf(const u_char *msg, size_t msglen, const char *name, ns_class class, ns_type type, u_long ttl, const u_char *rdata, size_t rdlen, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
158 addlen(strlen(buf), &buf, &buflen); local
328 addlen(strlen(buf), &buf, &buflen); local
419 addlen(strlen(buf), &buf, &buflen); local
658 addlen(strlen(buf), &buf, &buflen); local
681 addlen(strlen(buf), &buf, &buflen); local
951 addlen(strlen(buf), &buf, &buflen); local
956 addlen(strlen(buf), &buf, &buflen); local
1125 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1159 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1203 addlen(size_t len, char **buf, size_t *buflen) argument
1210 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1222 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/osnet-11/usr/src/lib/libfedfs/common/
H A Dpathtools.c39 char *buf, *path; local
47 buf = calloc(size, 1);
52 (void) strcat(buf, "/");
53 (void) strcat(buf, path);
58 return (buf);
66 char *buf; local
71 buf = malloc(size);
72 if (buf == NULL)
74 xdrmem_create(&xdrs, buf, size, XDR_ENCODE);
77 *xdrbuf = buf;
[all...]
/osnet-11/usr/src/lib/libast/common/comp/
H A Dreadlink.c41 readlink(const char* path, char* buf, int siz)
50 if (read(fd, buf, sizeof(FAKELINK_MAGIC)) == sizeof(FAKELINK_MAGIC) && !strcmp(buf, FAKELINK_MAGIC) && (n = read(fd, buf, siz)) > 0 && !buf[n - 1])
/osnet-11/usr/src/lib/libast/common/port/
H A Dastlicense.c91 #define BUF(b) ((b)->buf)
92 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz)
93 #define SIZ(b) ((b)->nxt-(b)->buf)
94 #define END(b) (*((b)->nxt>=(b)->end?((b)->nxt=(b)->end-1):(b)->nxt)=0,(b)->nxt-(b)->buf)
102 char* buf; member in struct:Buffer_s
398 Buffer_t buf; local
401 buf.end = (buf.buf
[all...]
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dgetnetgrent_r.c79 char *buf; member in struct:private
95 UNUSED(buf);
103 *buf = NULL;
105 *buf = p = malloc(sizeof(struct private));
112 p->buf = NULL;
127 struct private *p = buf;
130 UNUSED(buf);
136 if (*buf != NULL)
137 free(*buf);
138 *buf
[all...]
/osnet-11/usr/src/lib/libsmbios/common/
H A Dsmb_subr.c65 void *buf; local
67 if ((buf = smb_alloc(len)) != NULL)
68 bzero(buf, len);
70 return (buf);
75 smb_free(void *buf, size_t len) argument
77 free(buf);
/osnet-11/usr/src/lib/libparted/common/libparted/fs/fat/
H A Dfatio.c35 fat_read_fragments (PedFileSystem* fs, char* buf, FatFragment frag, argument
44 return ped_geometry_read (fs->geom, buf, sector, sector_count);
48 fat_read_fragment (PedFileSystem* fs, char* buf, FatFragment frag) argument
50 return fat_read_fragments (fs, buf, frag, 1);
54 fat_write_fragments (PedFileSystem* fs, char* buf, FatFragment frag, argument
63 return ped_geometry_write (fs->geom, buf, sector, sector_count);
67 fat_write_fragment (PedFileSystem* fs, char* buf, FatFragment frag) argument
69 return fat_write_fragments (fs, buf, frag, 1);
73 fat_write_sync_fragments (PedFileSystem* fs, char* buf, FatFragment frag, argument
76 if (!fat_write_fragments (fs, buf, fra
84 fat_write_sync_fragment(PedFileSystem* fs, char* buf, FatFragment frag) argument
90 fat_read_clusters(PedFileSystem* fs, char *buf, FatCluster cluster, FatCluster count) argument
105 fat_read_cluster(PedFileSystem* fs, char *buf, FatCluster cluster) argument
111 fat_write_clusters(PedFileSystem* fs, char *buf, FatCluster cluster, FatCluster count) argument
126 fat_write_cluster(PedFileSystem* fs, char *buf, FatCluster cluster) argument
132 fat_write_sync_clusters(PedFileSystem* fs, char *buf, FatCluster cluster, FatCluster count) argument
143 fat_write_sync_cluster(PedFileSystem* fs, char *buf, FatCluster cluster) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/
H A Dfile_plus.h36 hfsplus_file_read(HfsPPrivateFile* file, void *buf,
40 hfsplus_file_write(HfsPPrivateFile* file, void *buf,
46 hfsplus_file_read_sector (HfsPPrivateFile* file, void *buf, PedSector sector) argument
48 return hfsplus_file_read(file, buf, sector, 1);
54 hfsplus_file_write_sector (HfsPPrivateFile* file, void *buf, PedSector sector) argument
56 return hfsplus_file_write(file, buf, sector, 1);
/osnet-11/usr/src/lib/libctf/common/
H A Dctf_subr.c42 ctf_data_free(void *buf, size_t size) argument
44 (void) munmap(buf, size);
48 ctf_data_protect(void *buf, size_t size) argument
50 (void) mprotect(buf, size, PROT_READ);
61 ctf_free(void *buf, size_t size) argument
63 free(buf);

Completed in 133 milliseconds

1234567891011>>