Searched defs:buf (Results 151 - 175 of 1270) sorted by relevance

1234567891011>>

/osnet-11/usr/src/grub/grub-0.97/util/
H A Dmbchk.c60 char buf[8192]; local
62 if (fread (buf, 1, 8192, fp) < 0)
70 unsigned long magic = *((unsigned long *) (buf + i));
74 mbh = (multiboot_header_t *) (buf + i);
/osnet-11/usr/src/cmd/sendmail/db/include/
H A Dos.h24 u_int8_t *buf; /* Buffer. */ member in struct:__io
/osnet-11/usr/src/cmd/sendmail/include/sm/
H A Dsem.h31 struct semid_ds *buf; member in union:semun
/osnet-11/usr/src/cmd/sendmail/libmilter/
H A Dsm_gethost.c93 static char buf[1000]; local
96 h = _switch_gethostbyname_r(name, &hp, buf, sizeof(buf), &h_errno);
/osnet-11/usr/src/cmd/hal/utils/
H A Dadt_data.c30 uchar_t *buf; local
76 buf = (uchar_t *)malloc (bufsize);
81 buf = realloc (buf, bufsize);
82 if (buf == NULL) {
90 buf[count++] = value;
99 free (buf);
100 buf = NULL;
103 return (adt_export_data_t *)buf;
/osnet-11/usr/src/lib/libast/common/comp/
H A Dmktemp.c44 temp(char* buf, int* fdp) argument
51 len = strlen(buf);
52 if (s = strrchr(buf, '/'))
55 d = buf;
59 s = buf;
63 *buf = 0;
67 if (!pathtemp(buf, len, d, s, fdp))
68 *buf = 0;
70 return buf;
74 mktemp(char* buf) argument
80 mkstemp(char* buf) argument
[all...]
/osnet-11/usr/src/lib/libast/common/disc/
H A Dsfdctee.c40 static ssize_t teewrite(Sfio_t* f, const Void_t* buf, size_t size, Sfdisc_t* disc) argument
42 static ssize_t teewrite(f,buf,size,disc)
44 Void_t* buf; /* the buffer of data being output */
52 if(te->status == 0 && sfwrite(te->tee,buf,size) != (ssize_t)size)
56 return sfwr(f,buf,size,disc);
/osnet-11/usr/src/lib/libast/common/path/
H A Dpathgetlink.c37 * return external representation for symbolic link text of name in buf
42 pathgetlink(const char* name, char* buf, int siz) argument
46 if ((n = readlink(name, buf, siz)) < 0) return(-1);
52 buf[n] = 0;
54 if (isspace(*buf))
63 s = buf;
76 strcpy(buf, tmp);
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/libast/common/port/
H A Dastcopy.c62 static char* buf; local
84 if (buf) free(buf);
86 if (!(buf = newof(0, char, bufsiz, 0))) return(-1);
88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1;
/osnet-11/usr/src/lib/libast/common/regex/
H A Dregcoll.c34 * the collating symbol is converted to multibyte in <buf,size>
38 * or collating element (*wc == 0) in buf
42 regcollate(register const char* s, char** e, char* buf, size_t size, wchar_t* wc) argument
70 b = buf;
71 x = buf + size - 2;
99 if (mbxfrm(xfm, buf, sizeof(xfm)) >= mbxfrm(xfm, tmp, sizeof(xfm)))
101 t = (const char*)buf;
105 memcpy(buf, t, r);
107 buf[r] = 0;
H A Dregerror.c59 regerror(int code, const regex_t* p, char* buf, size_t size) argument
72 strlcpy(buf, s, size);
73 buf[size - 1] = 0;
76 buf = (char*)s;
77 return strlen(buf) + 1;
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfwr.c31 static ssize_t sfoutput(Sfio_t* f, char* buf, size_t n) argument
33 static ssize_t sfoutput(f,buf,n)
35 char* buf;
42 wbuf = buf;
43 endbuf = buf+n;
46 { buf += n;
51 sp = buf+1;
52 if(buf[0] == 0 && buf[_Sfpage-1] == 0)
79 if((s = sp-buf) >
125 sfwr(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument
[all...]
/osnet-11/usr/src/lib/libast/common/string/
H A Dfmtfmt.c53 char* buf; local
196 s = buf = fmtbuf(m + z);
204 return buf;
H A Dfmtfs.c64 char* buf; local
88 buf = fmtbuf(strlen(s) + 1);
89 strcpy(buf, s);
91 return buf;
H A Dfmtls.c41 * buf results placed here
48 * return end of formatted buf
52 fmtls(char* buf, const char* name, register struct stat* st, const char* info, const char* link, register int flags) argument
58 s = buf;
H A Dfmtmatch.c47 char* buf; local
51 buf = fmtbuf(c);
52 t = b = buf + 3;
259 if (p == stack && b == buf + 3)
278 if (b != buf + 3)
H A Dfmtre.c51 char* buf; local
56 t = buf = fmtbuf(c);
208 if (t == buf || *(t - 1) == '(')
225 return buf;
H A Dfmtscale.c43 char* buf; local
72 buf = fmtbuf(z = 8);
86 sfsprintf(buf, z, "%I*u%c%d%s", sizeof(n), n, p->decimal >= 0 ? p->decimal : '.', r, suf);
91 sfsprintf(buf, z, "%I*u%s", sizeof(n), n, suf);
93 return buf;
/osnet-11/usr/src/lib/libc/amd64/gen/
H A Decvt.c56 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
58 return (econvert(number, ndigits, decpt, sign, buf));
68 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
73 ptr = fconvert(number, ndigits, decpt, sign, buf);
96 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
98 return (qeconvert(&number, ndigits, decpt, sign, buf));
108 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
110 return (qfconvert(&number, ndigits, decpt, sign, buf));
/osnet-11/usr/src/lib/libc/i386/gen/
H A Decvt.c56 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
58 return (econvert(number, ndigits, decpt, sign, buf));
68 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
73 ptr = fconvert(number, ndigits, decpt, sign, buf);
96 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
98 return (qeconvert(&number, ndigits, decpt, sign, buf));
108 char *buf = tsdalloc(_T_ECVT, DECIMAL_STRING_LENGTH, NULL); local
110 return (qfconvert(&number, ndigits, decpt, sign, buf));
/osnet-11/usr/src/lib/libc/port/fp/
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...]
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...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dconfstr.c94 confstr(int name, char *buf, size_t length) argument
113 (void) strncpy(buf, path, length);
114 buf[length - 1] = '\0';
129 (void) strncpy(buf, entry->value, length);
130 buf[length - 1] = '\0';
H A Dgetauxv.c63 auxv_t *buf = NULL; local
68 buf = libc_malloc(
71 if (buf != NULL) {
72 i = read(fd, buf, statb.st_size);
75 buf[nauxv].a_type = AT_NULL;
77 libc_free(buf);
78 buf = NULL;
86 auxb = buf;

Completed in 125 milliseconds

1234567891011>>