Searched refs:buf (Results 26 - 50 of 656) sorted by relevance

1234567891011>>

/haiku/src/system/libroot/posix/glibc/libio/
H A Diofgetws_u.c32 fgetws_unlocked (buf, n, fp)
33 wchar_t *buf;
48 count = _IO_getwline (fp, buf, n - 1, L'\n', 1);
56 buf[count] = '\0';
57 result = buf;
H A Diosetbuffer.c31 _IO_setbuffer (fp, buf, size)
33 char *buf;
40 if (!buf)
42 (void) _IO_SETBUF (fp, buf, size);
45 (void) _IO_WSETBUF (fp, buf, size);
H A Diogets.c32 _IO_gets (buf)
33 char *buf;
57 buf[0] = (char) ch;
58 count = INTUSE(_IO_getline) (_IO_stdin, buf + 1, INT_MAX, '\n', 0) + 1;
67 buf[count] = 0;
68 retval = buf;
H A Diofread_u.c34 fread_unlocked (buf, size, count, fp)
35 void *buf;
45 bytes_read = INTUSE(_IO_sgetn) (fp, (char *) buf, bytes_requested);
H A Diofwrite_u.c34 fwrite_unlocked (buf, size, count, fp)
35 const void *buf;
47 written = _IO_sputn (fp, (const char *) buf, request);
/haiku/src/system/libroot/posix/glibc/include/
H A Dalloca.h23 # define extend_alloca(buf, len, newlen) \
24 (__typeof (buf)) ({ size_t __newlen = (newlen); \
26 if (__newbuf + __newlen == (char *) buf) \
32 # define extend_alloca(buf, len, newlen) \
33 (__typeof (buf)) ({ size_t __newlen = (newlen); \
35 char *__buf = (buf); \
45 # define extern_alloca(buf, len, newlen) \
H A Dunistd.h22 #define __unlink(buf) \
23 unlink(buf)
25 #define __getcwd(buf, size) \
26 getcwd(buf, size)
/haiku/src/system/libroot/posix/glibc/stdlib/
H A Drandom_r.c163 __srandom_r (seed, buf)
165 struct random_data *buf;
174 if (buf == NULL)
176 type = buf->rand_type;
180 state = buf->state;
190 kc = buf->rand_deg;
204 buf->fptr = &state[buf->rand_sep];
205 buf->rptr = &state[0];
210 (void) __random_r (buf,
237 struct random_data *buf; variable in typeref:struct:random_data
[all...]
/haiku/src/bin/network/ftpd/
H A Dmd5hl.c24 MD5End(MD5_CTX *ctx, char *buf) argument
30 if (!buf)
31 buf = malloc(2*MD5_DIGEST_LENGTH + 1);
32 if (!buf)
36 buf[i+i] = hex[digest[i] >> 4];
37 buf[i+i+1] = hex[digest[i] & 0x0f];
39 buf[i+i] = '\0';
40 return buf;
44 MD5File(const char *filename, char *buf) argument
46 return (MD5FileChunk(filename, buf,
50 MD5FileChunk(const char *filename, char *buf, off_t ofs, off_t len) argument
91 MD5Data(const void *data, unsigned int len, char *buf) argument
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dtst-swprintf.c5 static wchar_t buf[100]; variable
6 #define nbuf (sizeof (buf) / sizeof (buf[0]))
26 n = swprintf(buf, nbuf,L"Hello %s" , "world");
32 else if (wcscmp(buf, L"Hello world") != 0)
34 printf("incorrect string: L\"%ls\" instead of L\"Hello world\"\n", buf);
38 n = swprintf(buf, nbuf, L"Is this >%g< 3.1?", 3.1);
42 } else if (wcscmp (buf, L"Is this >3.1< 3.1?") != 0) {
44 buf);
49 ssize_t res = swprintf(buf, test
[all...]
H A DCryptTest.cpp60 char* buf = crypt(PASSWORD, LEGACY_SALT); local
61 CPPUNIT_ASSERT(buf != NULL);
62 CPPUNIT_ASSERT(strcmp(buf, LEGACY_RESULT) == 0);
69 char* buf = crypt(PASSWORD, BSD_SALT); local
70 CPPUNIT_ASSERT(buf != NULL);
71 CPPUNIT_ASSERT(strcmp(buf, BSD_RESULT) == 0);
78 char* buf = crypt(PASSWORD, HASH_SALT); local
79 CPPUNIT_ASSERT(buf != NULL);
80 CPPUNIT_ASSERT(strcmp(buf, HASH_RESULT) == 0);
89 char* buf local
114 char* buf = crypt_r(PASSWORD, NULL, &data); local
[all...]
H A Dgnulib-test-wcsrtombs.c41 char buf[BUFSIZE]; local
47 buf[i] = '_';
69 ret = wcsrtombs (buf, &src, n, NULL);
72 assert(memcmp (buf, original, ret) == 0);
74 assert(buf[ret] == '\0');
75 assert(buf[ret + (src == NULL) + 0] == '_');
76 assert(buf[ret + (src == NULL) + 1] == '_');
77 assert(buf[ret + (src == NULL) + 2] == '_');
82 ret = wcsrtombs(buf, &src, BUFSIZE, NULL);
111 ret = wcsrtombs (buf,
[all...]
/haiku/src/system/libnetwork/netresolv/nameser/
H A Dns_print.c61 char **buf, size_t *buflen);
64 char **buf, size_t *buflen);
65 static void addlen(size_t len, char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
69 char **buf, size_t *buflen);
88 *\li Number of characters written to buf, or -1 (check errno).
93 char *buf, size_t buflen)
100 name_ctx, origin, buf, buflen);
108 *\li Number of characters written to buf, or -1 (check errno).
115 char *buf, size_
91 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
111 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
167 addlen(strlen(buf), &buf, &buflen); local
337 addlen(strlen(buf), &buf, &buflen); local
428 addlen(strlen(buf), &buf, &buflen); local
672 addlen(strlen(buf), &buf, &buflen); local
695 addlen(strlen(buf), &buf, &buflen); local
967 addlen(strlen(buf), &buf, &buflen); local
972 addlen(strlen(buf), &buf, &buflen); local
1145 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1180 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1225 addlen(size_t len, char **buf, size_t *buflen) argument
1232 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1244 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
/haiku/src/add-ons/media/media-add-ons/usb_webcam/addons/uvc/
H A DUVCDeframer.cpp35 const uint8* buf = (const uint8*)buffer; local
36 int payloadSize = size - buf[0]; // total length - header length
39 if (size == buf[0])
54 fInputBuffer.Write(&buf[buf[0]], payloadSize);
57 if ((buf[1] & 2) || (buf[1] & 1) != fID) {
58 fID = buf[1] & 1;
60 buf = (uint8*)fInputBuffer.Buffer();
61 fCurrentFrame->Write(buf, fInputBuffe
[all...]
/haiku/src/kits/media/
H A DMediaAddOn.cpp304 char *buf = (char *)buffer; local
337 *(int32*)buf = FLATTEN_MAGIC; buf += sizeof(int32);
340 *(int32*)buf = FlattenedSize(); buf += sizeof(int32);
343 *(int32*)buf = nameLength; buf += sizeof(int32);
345 memcpy(buf, name, nameLength);
346 buf += nameLength;
348 *(int32*)buf
384 const char *buf = (const char *)buffer; local
[all...]
/haiku/src/libs/iconv/
H A Dgbk.h84 unsigned char buf[2]; local
86 buf[0] = c-0x80; buf[1] = c2-0x80;
87 ret = gb2312_mbtowc(conv,pwc,buf,2);
90 buf[0] = c; buf[1] = c2;
91 ret = cp936ext_mbtowc(conv,pwc,buf,2);
114 unsigned char buf[2]; local
118 ret = gb2312_wctomb(conv,buf,wc,2);
123 r[0] = buf[
[all...]
/haiku/headers/private/midi/
H A Ddebug.h41 char buf[1024];\
43 buf, "%s(%d) : Assertion \"%s\" failed!",\
45 debugger(buf);\
/haiku/src/system/libroot/posix/musl/time/
H A Dasctime_r.c8 char *__asctime_r(const struct tm *restrict tm, char *restrict buf) argument
10 if (snprintf(buf, 26, "%.3s %.3s%3d %.2d:%.2d:%.2d %d\n",
26 return buf;
/haiku/src/add-ons/kernel/bus_managers/isa/arch/arm/
H A Disa_dma.c18 arch_start_isa_dma(long channel, void *buf, long transfer_count, argument
/haiku/src/add-ons/kernel/bus_managers/isa/arch/m68k/
H A Disa_dma.c18 arch_start_isa_dma(long channel, void *buf, long transfer_count, argument
/haiku/src/add-ons/kernel/bus_managers/isa/arch/ppc/
H A Disa_dma.c18 arch_start_isa_dma(long channel, void *buf, long transfer_count, argument
/haiku/src/add-ons/kernel/bus_managers/isa/arch/x86/
H A Disa_dma.cpp17 arch_start_isa_dma(long channel, void *buf, long transfer_count, argument
/haiku/src/libs/stdc++/legacy/
H A Dstream.cc41 char* buf = next_chunk; local
43 strstreambuf stream(buf, EndBuffer-buf-1, buf);
49 next_chunk = buf + stream.pcount();
50 return buf;
65 char* buf = next_chunk; local
67 register char* ptr = buf+needed+1;
76 while (i != 0 && ptr > buf) {
89 while (ptr > buf)
154 char* buf = next_chunk; local
[all...]
/haiku/src/system/libroot/posix/glibc/stdio-common/
H A Dtmpfile.c42 char buf[FILENAME_MAX]; local
46 if (__path_search (buf, FILENAME_MAX, NULL, "tmpf", 0))
48 fd = __gen_tempname (buf, GEN_THIS);
54 (void) __unlink (buf);
/haiku/src/add-ons/kernel/bus_managers/isa/arch/arm64/
H A Disa_dma.c18 arch_start_isa_dma(long channel, void *buf, long transfer_count, argument

Completed in 103 milliseconds

1234567891011>>