Searched refs:buf (Results 1 - 25 of 658) sorted by relevance

1234567891011>>

/haiku/src/tests/system/libroot/posix/
H A Dtst-getwc.c28 wchar_t buf[100]; local
31 wmemset(buf, L'\0', sizeof(buf) / sizeof(buf[0]));
32 while (!feof(stdin) && n < sizeof(buf) - 1) {
33 buf[n] = getwc(stdin);
34 if (buf[n] == WEOF)
38 buf[n] = L'\0';
40 return wcscmp(buf,L"This is a test of getwc\n" ) != 0;
H A Dtst-wcstof.c12 char buf[100]; local
18 snprintf(buf, 100, "%S = %f", tmp, wcstof(tmp, NULL));
19 printf("\"%s\" -> %s\n", buf, strcmp(buf, "81 = 81.000000") == 0 ? "okay"
21 result |= strcmp(buf, "81 = 81.000000") != 0;
H A Dtst-wprintf2.c22 char buf[100]; local
63 if (fgets(buf, sizeof buf, fp) != buf)
65 len = strlen(buf);
66 if (buf[len - 1] == '\n')
72 printf("1st line: \"%.*s\" -> %s\n", (int) len, buf,
73 strncmp(buf, "test start int 3", len) == 0 ? "OK" : "FAIL");
74 res |= strncmp(buf, "test start int 3", len) != 0;
76 if (fgets(buf, sizeo
[all...]
/haiku/src/system/libroot/posix/glibc/libio/
H A Dsetbuf.c32 setbuf (fp, buf)
34 char *buf;
36 INTUSE(_IO_setbuffer) (fp, buf, _IO_BUFSIZ);
H A Diofgets_u.c32 fgets_unlocked (buf, n, fp)
33 char *buf;
48 count = INTUSE(_IO_getline) (fp, buf, n - 1, '\n', 1);
56 buf[count] = '\0';
57 result = buf;
/haiku/src/bin/unzip/
H A Dcrc32.c31 #define DO1(buf) crc = CRC32(crc, *buf++)
32 #define DO2(buf) DO1(buf); DO1(buf)
33 #define DO4(buf) DO2(buf); DO2(buf)
34 #define DO8(buf) DO4(buf); DO
[all...]
/haiku/src/system/libnetwork/musl/network/
H A Dinet_ntoa.c6 static char buf[16]; local
8 snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
9 return buf;
H A Dinet_ntop.c16 char buf[100]; local
25 snprintf(buf, sizeof buf,
32 snprintf(buf, sizeof buf,
39 for (i=best=0, max=2; buf[i]; i++) {
40 if (i && buf[i] != ':') continue;
41 j = strspn(buf+i, ":0");
45 buf[best] = buf[bes
[all...]
/haiku/src/libs/libfdt/
H A Dfdt_empty_tree.c13 int fdt_create_empty_tree(void *buf, int bufsize) argument
17 err = fdt_create(buf, bufsize);
21 err = fdt_finish_reservemap(buf);
25 err = fdt_begin_node(buf, "");
29 err = fdt_end_node(buf);
33 err = fdt_finish(buf);
37 return fdt_open_into(buf, buf, bufsize);
/haiku/src/system/libroot/posix/musl/time/
H A Dasctime.c5 static char buf[26]; local
6 return asctime_r(tm, buf);
/haiku/src/tests/system/network/
H A Dufunc.c27 char *buf = (char*)malloc(sl + 5); local
29 memset(buf, '=', sl + 4);
30 printf("%s\n", buf);
31 buf[1] = buf[sl + 2] = ' ';
32 memcpy(&buf[2], msg, sl);
33 printf("%s\n", buf);
34 memset(buf, '=', sl + 4);
35 printf("%s\n", buf);
/haiku/src/libs/bsd/
H A Dexplicit_bzero.c10 __explicit_bzero_hook(void *buf, size_t len);
13 __explicit_bzero_hook(void *buf, size_t len) argument
18 explicit_bzero(void *buf, size_t len) argument
20 memset(buf, 0, len);
21 __explicit_bzero_hook(buf, len);
/haiku/src/libs/iconv/
H A Ddec_hanyu.h44 unsigned char buf[2]; local
46 buf[0] = s[2]-0x80; buf[1] = s[3]-0x80;
47 ret = cns11643_3_mbtowc(conv,pwc,buf,2);
55 unsigned char buf[2]; local
56 buf[0] = c-0x80; buf[1] = c2-0x80;
57 return cns11643_1_mbtowc(conv,pwc,buf,2);
60 unsigned char buf[2]; local
61 buf[
72 unsigned char buf[3]; local
[all...]
H A Dbig5_2003.h273 unsigned char buf[2]; local
284 if (wc == 0x00a8) { buf[0] = 0xc6; buf[1] = 0xd8; ret = 2; break; }
289 if (wc == 0x02cd) { buf[0] = 0xa1; buf[1] = 0xc5; ret = 2; break; }
294 if (wc == 0x2015) { buf[0] = 0xa1; buf[1] = 0x56; ret = 2; break; }
295 if (wc == 0x2027) { buf[0] = 0xa1; buf[1] = 0x45; ret = 2; break; }
296 if (wc == 0x20ac) { buf[
[all...]
H A Disoir165.h93 unsigned char buf[2]; local
94 buf[0] = 0x2b;
95 buf[1] = c2;
96 ret = isoir165ext_mbtowc(conv,pwc,buf,2);
127 unsigned char buf[2]; local
131 ret = gb2312_wctomb(conv,buf,wc,2);
134 if (!(buf[0] == 0x28 && buf[1] >= 0x21 && buf[1] <= 0x40)) {
136 r[0] = buf[
[all...]
H A Deuc_tw.h39 unsigned char buf[2]; local
40 buf[0] = c-0x80; buf[1] = c2-0x80;
41 return cns11643_1_mbtowc(conv,pwc,buf,2);
56 unsigned char buf[2]; local
58 buf[0] = c3-0x80; buf[1] = c4-0x80;
60 case 1: ret = cns11643_1_mbtowc(conv,pwc,buf,2); break;
61 case 2: ret = cns11643_2_mbtowc(conv,pwc,buf,2); break;
62 case 3: ret = cns11643_3_mbtowc(conv,pwc,buf,
84 unsigned char buf[3]; local
[all...]
H A Ddec_kanji.h39 unsigned char buf[2]; local
40 buf[0] = c-0x80; buf[1] = c2-0x80;
41 return jisx0208_mbtowc(conv,pwc,buf,2);
51 unsigned char buf[2]; local
60 ret = jisx0208_wctomb(conv,buf,wc,2);
65 r[0] = buf[0]+0x80;
66 r[1] = buf[1]+0x80;
H A Deuc_cn.h39 unsigned char buf[2]; local
40 buf[0] = c-0x80; buf[1] = c2-0x80;
41 return gb2312_mbtowc(conv,pwc,buf,2);
52 unsigned char buf[2]; local
61 ret = gb2312_wctomb(conv,buf,wc,2);
66 r[0] = buf[0]+0x80;
67 r[1] = buf[1]+0x80;
H A Deuc_kr.h41 unsigned char buf[2]; local
42 buf[0] = c-0x80; buf[1] = c2-0x80;
43 return ksc5601_mbtowc(conv,pwc,buf,2);
54 unsigned char buf[2]; local
63 ret = ksc5601_wctomb(conv,buf,wc,2);
68 r[0] = buf[0]+0x80;
69 r[1] = buf[1]+0x80;
/haiku/src/libs/stdc++/legacy/
H A Dsbgetline.cc28 long streambuf::sgetline(char* buf, _IO_size_t n, char delim, int extract_delim) argument
30 return _IO_getline_info(this, buf, n, delim, extract_delim, (int *) 0);
H A Dbuiltinbuf.cc36 streamsize builtinbuf::xsgetn(char* buf, streamsize n) argument
37 { return _IO_XSGETN (this, buf, n); }
39 streamsize builtinbuf::xsputn(const char* buf, streamsize n) argument
40 { return _IO_XSPUTN (this, buf, n); }
48 streambuf* builtinbuf::setbuf(char *buf, int n) argument
49 { return (streambuf*)_IO_SETBUF (this, buf, n); }
64 streamsize builtinbuf::sys_read(char* buf, streamsize size) argument
65 { return _IO_SYSREAD (this, buf, size); }
70 streamsize builtinbuf::sys_write(const char* buf, streamsize size) argument
71 { return _IO_SYSWRITE (this, buf, siz
73 sys_stat(void* buf) argument
[all...]
/haiku/src/libs/mapm/
H A Dmapmgues.c95 char buf[48]; local
98 m_apm_to_string(buf, 15, a);
99 dd = atof(buf); /* sqrt algorithm actually finds 1/sqrt */
114 char buf[48]; local
117 m_apm_to_string(buf, 15, a);
118 dd = atof(buf);
125 char buf[48]; local
128 m_apm_to_string(buf, 15, a);
129 dd = atof(buf);
140 char buf[4 local
150 char buf[48]; local
163 char *cp, *p, *ps, buf[64]; local
[all...]
/haiku/headers/private/system/posix/
H A Dxsi_semaphore_defs.h14 struct semid_ds *buf; member in union:semun
/haiku/src/system/libroot/posix/time/
H A Dctime.c18 ctime_r(const time_t *_timer, char *buf) argument
21 return asctime_r(localtime_r(_timer, &tm), buf);
/haiku/src/system/libroot/posix/glibc/include/sys/
H A Dstat.h43 #define stat(fname, buf) __xstat (_STAT_VER, fname, buf)
44 #define lstat(fname, buf) __lxstat (_STAT_VER, fname, buf)
45 #define __lstat(fname, buf) __lxstat (_STAT_VER, fname, buf)
46 #define lstat64(fname, buf) __lxstat64 (_STAT_VER, fname, buf)
47 #define stat64(fname, buf) __xstat64 (_STAT_VER, fname, buf)
[all...]

Completed in 93 milliseconds

1234567891011>>