Searched refs:buf (Results 101 - 125 of 656) sorted by relevance

1234567891011>>

/haiku/src/add-ons/print/transports/ipp/
H A DIppURLConnection.cpp12 char *itoa(int i, char *buf, int unit) argument
14 sprintf(buf, "%d", i);
15 return buf;
63 char buf[64]; local
64 itoa(__ippRequest->length(), buf, 10);
65 setRequestProperty("Content-Length", buf);
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/
H A Dr88e_tx.c54 r88e_tx_enable_ampdu(void *buf, int enable) argument
56 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf;
65 r88e_tx_setup_hwseq(void *buf) argument
67 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf;
73 r88e_tx_setup_macid(void *buf, int id) argument
75 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf;
/haiku/src/libs/iconv/
H A Dcp932.h106 unsigned char buf[2]; local
107 buf[0] = 2*t1 + (t2 < 0x5e ? 0 : 1) + 0x21;
108 buf[1] = (t2 < 0x5e ? t2 : t2-0x5e) + 0x21;
109 return jisx0208_mbtowc(conv,pwc,buf,2);
133 unsigned char buf[2]; local
137 ret = ascii_wctomb(conv,buf,wc,1);
141 c = buf[0];
149 ret = jisx0201_wctomb(conv,buf,wc,1);
153 c = buf[0];
161 ret = jisx0208_wctomb(conv,buf,w
[all...]
H A Dsjis.h62 unsigned char buf[2]; local
63 buf[0] = 2*t1 + (t2 < 0x5e ? 0 : 1) + 0x21;
64 buf[1] = (t2 < 0x5e ? t2 : t2-0x5e) + 0x21;
65 return jisx0208_mbtowc(conv,pwc,buf,2);
85 unsigned char buf[2]; local
89 ret = jisx0201_wctomb(conv,buf,wc,1);
93 c = buf[0];
101 ret = jisx0208_wctomb(conv,buf,wc,2);
107 c1 = buf[0];
108 c2 = buf[
[all...]
H A Dhz.h99 unsigned char buf[2]; local
103 ret = ascii_wctomb(conv,buf,wc,1);
106 if (buf[0] < 0x80) {
116 r[0] = buf[0];
123 ret = gb2312_wctomb(conv,buf,wc,2);
126 if (buf[0] < 0x80 && buf[1] < 0x80) {
136 r[0] = buf[0];
137 r[1] = buf[1];
H A Diso2022_cn.h181 unsigned char buf[3]; local
188 ret = ascii_wctomb(conv,buf,wc,1);
191 if (buf[0] < 0x80) {
200 r[0] = buf[0];
211 ret = gb2312_wctomb(conv,buf,wc,2);
214 if (buf[0] < 0x80 && buf[1] < 0x80) {
231 r[0] = buf[0];
232 r[1] = buf[1];
239 ret = cns11643_wctomb(conv,buf,w
[all...]
H A Diso2022_jp.h124 unsigned char buf[2]; local
128 ret = ascii_wctomb(conv,buf,wc,1);
131 if (buf[0] < 0x80) {
142 r[0] = buf[0];
149 ret = jisx0201_wctomb(conv,buf,wc,1);
152 if (buf[0] < 0x80) {
163 r[0] = buf[0];
170 ret = jisx0208_wctomb(conv,buf,wc,2);
173 if (buf[0] < 0x80 && buf[
[all...]
/haiku/src/libs/stdc++/legacy/
H A Disgetline.cc29 istream& istream::getline(char* buf, int len, char delim) argument
43 _gcount = _IO_getline_info(sb, buf, len - 1, delim, -1, &ch);
58 buf[_gcount] = '\0';
64 istream& istream::get(char* buf, int len, char delim) argument
78 _gcount = _IO_getline_info(sbuf, buf, len - 1, delim, -1, &ch);
84 buf[_gcount] = '\0';
99 char buf[CHUNK_SIZE]; local
103 _IO_size_t count = _IO_getline_info(sb, buf, CHUNK_SIZE, terminator,
113 memcpy(ptr + old_total, buf, count);
122 memcpy(ptr + total - count, buf, coun
[all...]
/haiku/src/libs/libtelnet/
H A Dkrb4encpwd.c350 #define BUMP(buf, len) while (*(buf)) {++(buf), --(len);}
351 #define ADDC(buf, len, c) if ((len) > 0) {*(buf)++ = (c); --(len);}
354 krb4encpwd_printsub(data, cnt, buf, buflen)
355 unsigned char *data, *buf;
361 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
366 strncpy((char *)buf, " REJECT ", buflen);
370 strncpy((char *)buf, " ACCEP
[all...]
/haiku/src/libs/util/
H A Dfparseln.c84 char *buf; local
94 buf = NULL;
122 cnt = s == 0 && buf == NULL;
143 if (s == 0 && buf != NULL)
146 if ((cp = realloc(buf, len + s + 1)) == NULL) {
147 free(buf);
150 buf = cp;
152 (void) memcpy(buf + len, ptr, s);
154 buf[len] = '\0';
157 if ((flags & FPARSELN_UNESCALL) != 0 && esc && buf !
[all...]
H A Drealhostname.c91 char buf[NI_MAXHOST]; local
118 error = getnameinfo(addr, addrlen, buf, sizeof(buf), NULL, 0,
129 error = getaddrinfo(buf, NULL, &hints, &res);
164 strlcpy(buf, ores->ai_canonname,
165 sizeof(buf));
166 trimdomain(buf, hsize);
167 if (strlen(buf) > hsize &&
172 strncpy(host, buf, hsize);
180 if (getnameinfo(addr, addrlen, buf, sizeo
[all...]
/haiku/src/tests/system/libroot/posix/
H A Dgnulib-test-wcrtomb.c30 char buf[64]; local
38 ret = wcrtomb (buf, wc, NULL);
40 assert (memcmp (buf, s, n) == 0);
51 char buf[64]; local
64 buf[0] = 'x';
65 ret = wcrtomb (buf, 0, NULL);
67 assert (buf[0] == '\0');
100 ret = wcrtomb (buf, btowc (c), NULL);
102 assert (buf[0] == (char) c);
H A Dtst-wcrtomb.c59 char buf[2 * MB_CUR_MAX]; local
63 memset(buf, '\xff', sizeof(buf));
66 n = wcrtomb(buf, wc, &s);
76 } else if (wc != (wchar_t) buf[0]) {
77 printf("%s: L'\\x%x': buf[0] != '\\x%x'\n", locname, (int) wc,
/haiku/src/system/libroot/posix/glibc/extensions/
H A Dgetopt.c697 char *buf;
699 if (__asprintf (&buf, _("%s: option `%s' is ambiguous\n"),
704 __fwprintf (stderr, L"%s", buf);
706 fputs (buf, stderr);
708 free (buf);
736 char *buf;
744 n = __asprintf (&buf, _("\
757 n = __asprintf (&buf, _("\
772 __fwprintf (stderr, L"%s", buf);
774 fputs (buf, stder
693 char *buf; local
732 char *buf; local
792 char *buf; local
837 char *buf; local
898 char *buf; local
962 char *buf; local
1026 char *buf; local
1061 char *buf; local
1094 char *buf; local
1160 char *buf; local
[all...]
/haiku/headers/libs/agg/
H A Dagg_pattern_filters_rgba.h32 static void AGG_INLINE pixel_low_res(color_type const* const* buf, argument
35 *p = buf[y][x];
38 static void AGG_INLINE pixel_high_res(color_type const* const* buf, argument
41 *p = buf[y >> line_subpixel_shift]
60 static AGG_INLINE void pixel_low_res(color_type const* const* buf, argument
63 *p = buf[y][x];
66 static AGG_INLINE void pixel_high_res(color_type const* const* buf, argument
78 const color_type* ptr = buf[y_lr] + x_lr;
95 ptr = buf[y_lr + 1] + x_lr;
/haiku/src/add-ons/kernel/drivers/bus/pcmcia/
H A Dds.c98 ds_ioctl_arg_t buf;
104 if (cmd & IOC_IN) copy_from_user((char *)&buf, (char *)arg, size);
108 ret = CardServices(AdjustResourceInfo, s->handle, &buf.adjust);
111 ret = CardServices(GetCardServicesInfo, &buf.servinfo);
114 ret = CardServices(GetConfigurationInfo, s->handle, &buf.config);
117 ret = CardServices(GetFirstTuple, s->handle, &buf.tuple);
120 ret = CardServices(GetNextTuple, s->handle, &buf.tuple);
123 buf.tuple.TupleData = buf.tuple_parse.data;
124 buf
185 ds_ioctl_arg_t buf; local
[all...]
/haiku/src/system/boot/loader/file_systems/fat/
H A DVolume.cpp43 uint8 *buf;
45 if (buf == NULL)
64 buf = fCachedBlock->SetTo(0);
65 if (buf == NULL)
70 if (((buf[0x1fe] != 0x55) || (buf[0x1ff] != 0xaa)) && (buf[0x15] == 0xf8))
73 if (!memcmp(buf+3, "NTFS ", 8) || !memcmp(buf+3, "HPFS ", 8))
77 fBytesPerSector = read16(buf,
206 uint8 *buf; local
[all...]
/haiku/src/apps/cortex/addons/LoggingConsumer/
H A DLogWriter.cpp229 char buf[256]; // scratch buffer for building logged output local
235 sprintf(buf, "%-24s : realtime = %" B_PRIdBIGTIME ", perftime = %" B_PRIdBIGTIME "\n",
237 mWriteBuf = buf;
249 sprintf(buf, "\tstart = %" B_PRIdBIGTIME ", offset = %" B_PRIdBIGTIME "\n",
251 mWriteBuf += buf;
252 sprintf(buf, "\tBuffer received *LATE*\n");
253 mWriteBuf += buf;
258 sprintf(buf, "\tparam id = %" B_PRId32 ", value = %f\n", msg.param.id, msg.param.value);
259 mWriteBuf += buf;
264 sprintf(buf, "\tpara
[all...]
/haiku/src/system/libroot/posix/glibc/include/bits/
H A Dstat.h73 #define __S_TYPEISMQ(buf) 0
74 #define __S_TYPEISSEM(buf) 0
75 #define __S_TYPEISSHM(buf) 0
/haiku/src/system/libroot/posix/glibc/libio/
H A Diofwrite.c31 _IO_fwrite (buf, size, count, fp)
32 const void *buf;
45 written = _IO_sputn (fp, (const char *) buf, request);
/haiku/src/bin/network/traceroute/
H A Das.c124 char buf[1024]; local
141 while (fgets(buf, sizeof(buf), asn->as_f) != NULL) {
142 buf[sizeof(buf) - 1] = '\0';
146 (void)fprintf(asn->as_debug, "<< %s", buf);
152 rc = buf[0];
156 sscanf(buf, "A%d\n", &dlen);
182 rc = buf[0];
188 dlen -= strlen(buf);
[all...]
/haiku/src/add-ons/mail_daemon/inbound_filters/match_header/
H A DStringMatcher.cpp160 char buf[5]; local
161 sprintf(buf, "[%c%c]", next, next+('a'-'A'));
162 ret += buf;
167 char buf[5]; local
168 sprintf(buf, "[%c%c]", next, next+('A'-'a'));
169 ret += buf;
/haiku/src/add-ons/kernel/drivers/video/usb_vision/
H A Dtracing.c69 static char buf[1024]; local
70 char *buf_ptr = buf;
72 strcpy(buf, prefix);
92 write(fd, buf, strlen(buf));
97 dprintf("%s", buf);
/haiku/src/system/libnetwork/netresolv/net/
H A Dgetservbyport_r.c61 uint8_t buf[255 + 4];
78 buf[0] = 0;
79 buf[1] = (uint8_t)protolen;
80 be16enc(buf + 2, port);
81 memcpy(buf + 4, proto, protolen);
83 if (cdbr_find(sd->cdb, buf, 4 + protolen,
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_nop.h60 rtwn_nop_softc_uint8_int(struct rtwn_softc *sc, uint8_t *buf, int len) argument
65 rtwn_nop_void_int(void *buf, int is5ghz) argument

Completed in 130 milliseconds

1234567891011>>