Home
last modified time | relevance | path

Searched refs:linebuf (Results 1 - 25 of 28) sorted by relevance

12

/third_party/musl/src/misc/
H A Dmntent.c59 struct mntent *getmntent_r(FILE *f, struct mntent *mnt, char *linebuf, int buflen) in getmntent_r() argument
61 int n[8], use_internal = (linebuf == SENTINEL); in getmntent_r()
70 linebuf = internal_buf; in getmntent_r()
72 fgets(linebuf, buflen, f); in getmntent_r()
75 if (!strchr(linebuf, '\n')) { in getmntent_r()
81 len = strlen(linebuf); in getmntent_r()
84 sscanf(linebuf, " %n%*[^ \t]%n %n%*[^ \t]%n %n%*[^ \t]%n %n%*[^ \t]%n %d %d", in getmntent_r()
87 } while (linebuf[n[0]] == '#' || n[1]==len); in getmntent_r()
89 linebuf[n[1]] = 0; in getmntent_r()
90 linebuf[ in getmntent_r()
[all...]
/third_party/cups-filters/filter/
H A Dimagetopdf.c144 static char linebuf[LINEBUFSIZE]; variable
317 snprintf(linebuf, LINEBUFSIZE,"<</Size %d ",currentObjectNo); in outTrailer()
318 outPdf(linebuf); in outTrailer()
323 snprintf(linebuf,LINEBUFSIZE,"/CreationDate (%s) ",curdate); in outTrailer()
324 outPdf(linebuf); in outTrailer()
325 snprintf(linebuf,LINEBUFSIZE,"/ModDate (%s) ",curdate); in outTrailer()
326 outPdf(linebuf); in outTrailer()
331 snprintf(linebuf,LINEBUFSIZE,"%d\n",xrefOffset); in outTrailer()
332 outPdf(linebuf); in outTrailer()
344 linebuf[ in outPrologue()
[all...]
/third_party/toybox/toys/pending/
H A Dhexdump.c47 char linebuf[16]; // line buffer - serves double duty for sqeezing repeat
95 if (FLAG(v) || TT.len < 16 || toybuf[i] != TT.linebuf[i]) goto newline; in do_hexdump()
105 strncpy(TT.linebuf+(TT.bc%16), toybuf, TT.len); in do_hexdump()
114 ? TT.linebuf[i] : (TT.linebuf[i] | TT.linebuf[i+1] << 8); in do_hexdump()
121 if (i < TT.bc) printf(" %02x", TT.linebuf[i]); in do_hexdump()
126 if (TT.linebuf[i] < ' ' || TT.linebuf[i] > '~') putchar('.'); in do_hexdump()
127 else putchar(TT.linebuf[ in do_hexdump()
[all...]
/third_party/node/deps/openssl/openssl/crypto/pem/
H A Dpem_lib.c689 static int sanitize_line(char *linebuf, int len, unsigned int flags, int first_call) in sanitize_line() argument
697 if (len > 3 && memcmp(linebuf, utf8_bom, 3) == 0) { in sanitize_line()
698 memmove(linebuf, linebuf + 3, len - 3); in sanitize_line()
699 linebuf[len - 3] = 0; in sanitize_line()
706 while ((len >= 0) && (linebuf[len] <= ' ')) in sanitize_line()
712 if (!ossl_isbase64(linebuf[i]) || linebuf[i] == '\n' in sanitize_line()
713 || linebuf[i] == '\r') in sanitize_line()
721 if (linebuf[ in sanitize_line()
744 char *linebuf; get_name() local
812 char *linebuf, *p; get_header_and_data() local
[all...]
/third_party/openssl/crypto/pem/
H A Dpem_lib.c689 static int sanitize_line(char *linebuf, int len, unsigned int flags, int first_call) in sanitize_line() argument
697 if (len > 3 && memcmp(linebuf, utf8_bom, 3) == 0) { in sanitize_line()
698 memmove(linebuf, linebuf + 3, len - 3); in sanitize_line()
699 linebuf[len - 3] = 0; in sanitize_line()
706 while ((len >= 0) && (linebuf[len] <= ' ')) in sanitize_line()
712 if (!ossl_isbase64(linebuf[i]) || linebuf[i] == '\n' in sanitize_line()
713 || linebuf[i] == '\r') in sanitize_line()
721 if (linebuf[ in sanitize_line()
744 char *linebuf; get_name() local
812 char *linebuf, *p; get_header_and_data() local
[all...]
/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dasn_mime.c58 static int strip_eol(char *linebuf, int *plen, int flags);
517 char linebuf[MAX_SMLEN]; in SMIME_crlf_copy() local
536 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0) in SMIME_crlf_copy()
537 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
542 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) { in SMIME_crlf_copy()
543 eol = strip_eol(linebuf, &len, flags); in SMIME_crlf_copy()
552 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
610 char linebuf[MAX_SMLEN]; in multi_split() local
625 while ((len = BIO_get_line(bio, linebuf, MAX_SMLEN)) > 0) { in multi_split()
626 state = mime_bound_check(linebuf, le in multi_split()
685 char linebuf[MAX_SMLEN]; STACK_OF() local
1002 strip_eol(char *linebuf, int *plen, int flags) strip_eol() argument
[all...]
/third_party/openssl/crypto/asn1/
H A Dasn_mime.c58 static int strip_eol(char *linebuf, int *plen, int flags);
517 char linebuf[MAX_SMLEN]; in SMIME_crlf_copy() local
530 while ((len = BIO_read(in, linebuf, MAX_SMLEN)) > 0) in SMIME_crlf_copy()
531 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
536 while ((len = BIO_gets(in, linebuf, MAX_SMLEN)) > 0) { in SMIME_crlf_copy()
537 eol = strip_eol(linebuf, &len, flags); in SMIME_crlf_copy()
546 BIO_write(out, linebuf, len); in SMIME_crlf_copy()
604 char linebuf[MAX_SMLEN]; in multi_split() local
619 while ((len = BIO_get_line(bio, linebuf, MAX_SMLEN)) > 0) { in multi_split()
620 state = mime_bound_check(linebuf, le in multi_split()
679 char linebuf[MAX_SMLEN]; STACK_OF() local
996 strip_eol(char *linebuf, int *plen, int flags) strip_eol() argument
[all...]
/third_party/backends/backend/pixma/
H A Dpixma_mp800.c198 uint8_t *linebuf; member
1425 static void reorder_pixels (uint8_t * linebuf, uint8_t * sptr, unsigned c, in reorder_pixels() argument
1433 memcpy (linebuf + c * (n * (i % m) + i / m), sptr + c * i, c); in reorder_pixels()
1435 memcpy (sptr, linebuf, line_size); in reorder_pixels()
1439 static void mp960_reorder_pixels (uint8_t * linebuf, uint8_t * sptr, unsigned c, in mp960_reorder_pixels() argument
1452 memcpy (linebuf + c * (n * ((i) % m) + ((i) / m)), sptr + c * i, c); in mp960_reorder_pixels()
1454 memcpy (linebuf + c * (n * ((i - 1) % m) + 1 + ((i) / m)), sptr + c * i, c); in mp960_reorder_pixels()
1459 memcpy (linebuf + c * (n * ((i) % m) + ((i) / m) + 1), sptr + c * i, c); in mp960_reorder_pixels()
1461 memcpy (linebuf + c * (n * ((i - 1) % m) + 1 + ((i) / m) + 1), sptr + c * i, c); in mp960_reorder_pixels()
1465 memcpy (sptr, linebuf, line_siz in mp960_reorder_pixels()
1469 mp970_reorder_pixels(uint8_t * linebuf, uint8_t * sptr, unsigned c, unsigned w, unsigned line_size) mp970_reorder_pixels() argument
1483 cs9000f_initial_reorder_pixels(uint8_t * linebuf, uint8_t * sptr, unsigned c, unsigned n, unsigned m, unsigned w, unsigned line_size) cs9000f_initial_reorder_pixels() argument
1563 cs9000f_second_reorder_pixels(uint8_t * linebuf, uint8_t * sptr, unsigned c, unsigned w, unsigned line_size) cs9000f_second_reorder_pixels() argument
[all...]
H A Dpixma_mp150.c402 uint8_t *linebuf; member
1068 reorder_pixels (uint8_t * linebuf, uint8_t * sptr, unsigned c, unsigned n, in reorder_pixels() argument
1075 memcpy (linebuf + c * (n * (i % m) + i / m), sptr + c * i, c); in reorder_pixels()
1077 memcpy (sptr, linebuf, line_size); in reorder_pixels()
1194 /*PDBG (pixma_dbg (4, "*post_process_image_data***** Pointers: sptr=%lx, dptr=%lx, linebuf=%lx ***** \n", in post_process_image_data()
1195 sptr, dptr, mp->linebuf));*/ in post_process_image_data()
1215 reorder_pixels (mp->linebuf, sptr, c, n, m, s->param->wx, line_size); in post_process_image_data()
1576 mp->linebuf = mp->cb.buf + CMDBUF_SIZE; in mp150_fill_buffer()
1577 mp->imgbuf = mp->data_left_ofs = mp->linebuf + line_size; in mp150_fill_buffer()
/third_party/python/Lib/distutils/
H A Dtext_file.py106 # 'linebuf' is a stack of lines that will be emptied before we
109 self.linebuf = []
162 # If any "unread" lines waiting in 'linebuf', return the top
164 # get put in 'linebuf' if the client explicitly does an
166 if self.linebuf:
167 line = self.linebuf[-1]
168 del self.linebuf[-1]
286 self.linebuf.append(line)
/third_party/eudev/src/libudev/
H A Dlibudev-hwdb.c60 struct linebuf { struct
66 static void linebuf_init(struct linebuf *buf) { in linebuf_init()
71 static const char *linebuf_get(struct linebuf *buf) { in linebuf_get()
78 static bool linebuf_add(struct linebuf *buf, const char *s, size_t len) { in linebuf_add()
86 static bool linebuf_add_char(struct linebuf *buf, char c) in linebuf_add_char()
94 static void linebuf_rem(struct linebuf *buf, size_t count) { in linebuf_rem()
99 static void linebuf_rem_char(struct linebuf *buf) { in linebuf_rem_char()
156 struct linebuf *buf, const char *search) { in trie_fnmatch_f()
189 struct linebuf buf; in trie_search_f()
/third_party/icu/icu4c/source/common/
H A Dicuplug.cpp803 char linebuf[1024]; in uplug_init()
808 while(fgets(linebuf,1023,f)) { in uplug_init()
811 if(!*linebuf || *linebuf=='#') { in uplug_init()
814 p = linebuf; in uplug_init()
/third_party/node/deps/icu-small/source/common/
H A Dicuplug.cpp803 char linebuf[1024]; in uplug_init()
808 while(fgets(linebuf,1023,f)) { in uplug_init()
811 if(!*linebuf || *linebuf=='#') { in uplug_init()
814 p = linebuf; in uplug_init()
/third_party/skia/third_party/externals/icu/source/common/
H A Dicuplug.cpp803 char linebuf[1024]; in uplug_init()
808 while(fgets(linebuf,1023,f)) { in uplug_init()
811 if(!*linebuf || *linebuf=='#') { in uplug_init()
814 p = linebuf; in uplug_init()
/third_party/python/Python/
H A Derrors.c1757 char linebuf[1000]; in err_programtext() local
1763 char *pLastChar = &linebuf[sizeof(linebuf) - 2]; in err_programtext()
1766 if (Py_UniversalNewlineFgets(linebuf, sizeof linebuf, in err_programtext()
1783 res = PyUnicode_Decode(linebuf, strlen(linebuf), encoding, "replace"); in err_programtext()
1785 res = PyUnicode_FromString(linebuf); in err_programtext()
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dv3_utl.c318 char *linebuf; in STACK_OF() local
322 linebuf = OPENSSL_strdup(line); in STACK_OF()
323 if (linebuf == NULL) { in STACK_OF()
330 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n'); in STACK_OF()
396 OPENSSL_free(linebuf); in STACK_OF()
400 OPENSSL_free(linebuf); in STACK_OF()
/third_party/openssl/crypto/x509/
H A Dv3_utl.c318 char *linebuf; in STACK_OF() local
322 linebuf = OPENSSL_strdup(line); in STACK_OF()
323 if (linebuf == NULL) { in STACK_OF()
330 for (p = linebuf, q = linebuf; (c = *p) && (c != '\r') && (c != '\n'); in STACK_OF()
396 OPENSSL_free(linebuf); in STACK_OF()
400 OPENSSL_free(linebuf); in STACK_OF()
/third_party/backends/backend/
H A Dcanon630u-common.c990 byte *linebuf, *oldline, *newline; in compute_ogn() local
1009 linebuf = calloc (width * 2, sizeof (linebuf[0])); in compute_ogn()
1011 newline = linebuf; in compute_ogn()
1015 oldline = linebuf + width; in compute_ogn()
1073 free (linebuf); in compute_ogn()
H A Dhp-scl.c1277 process_scanline (PROCDATA_HANDLE *ph, unsigned char *linebuf, in process_scanline() argument
1287 hp_data_map (ph->map, bytes_per_line, linebuf); in process_scanline()
1293 hp_scale_to_8bit( bytes_per_line/2, linebuf, in process_scanline()
1300 hp_scale_to_16bit( bytes_per_line/2, linebuf, in process_scanline()
1305 hp_soft_invert(bytes_per_line,linebuf); in process_scanline()
1315 memcpy(ph->image_ptr, linebuf, out_bytes_per_line); in process_scanline()
1326 RETURN_IF_FAIL ( process_data_write (ph, linebuf, out_bytes_per_line) ); in process_scanline()
H A Dcanon_lide70-common.c2755 static byte linebuf[0x40000]; in preread() local
2768 static byte *dstptr = linebuf; in preread()
2769 byte *endptr = linebuf + 3 * width; /* Red line + Green line + Blue line */ in preread()
2788 dstptr = linebuf; in preread()
2820 constructed in buffer linebuf and written to temp file if complete. */ in preread()
2834 dstptr = linebuf + slot; /* restart shortly after beginning */ in preread()
2838 dstptr = linebuf; /* back to beginning of line */ in preread()
2845 memcpy (data + offset, linebuf, 3 * chndl->width); in preread()
2854 grayvalue = linebuf[3 * lineelement] + in preread()
2855 linebuf[ in preread()
[all...]
H A Dpieusb_specific.c2192 SANE_Byte *linebuf, *lboff; in sanei_pieusb_get_scan_data() local
2234 linebuf = malloc(lines * bpl); in sanei_pieusb_get_scan_data()
2235 sanei_pieusb_cmd_get_scanned_lines(scanner->device_number, linebuf, lines, lines * bpl, &status); in sanei_pieusb_get_scan_data()
2238 free(linebuf); in sanei_pieusb_get_scan_data()
2244 wcnt = write(fdraw,linebuf,parameters.lines*bpl); in sanei_pieusb_get_scan_data()
2251 lboff = linebuf; in sanei_pieusb_get_scan_data()
2292 free(linebuf); in sanei_pieusb_get_scan_data()
2295 free(linebuf); in sanei_pieusb_get_scan_data()
/third_party/icu/icu4c/source/extra/uconv/
H A Duconv.cpp672 UChar linebuf[20], offsetbuf[20]; in convertFile() local
673 uprv_itou(linebuf, 20, parse.line, 10, 0); in convertFile()
676 u_wmsg_errorName(err), linebuf, offsetbuf); in convertFile()
/third_party/skia/third_party/externals/icu/source/extra/uconv/
H A Duconv.cpp672 UChar linebuf[20], offsetbuf[20]; in convertFile() local
673 uprv_itou(linebuf, 20, parse.line, 10, 0); in convertFile()
676 u_wmsg_errorName(err), linebuf, offsetbuf); in convertFile()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
H A Dlibcpuset.c3536 char *linebuf = NULL; in cpuset_import() local
3542 if ((linebuf = malloc(linebuflen)) == NULL) { in cpuset_import()
3548 while (slgets(linebuf, linebuflen, buf, &offset)) { in cpuset_import()
3553 if ((tok = strchr(linebuf, '#')) != NULL) in cpuset_import()
3555 if ((tok = strtok_r(linebuf, " \t", &ptr)) == NULL) in cpuset_import()
3612 free(linebuf); in cpuset_import()
3640 free(linebuf); in cpuset_import()
/third_party/optimized-routines/math/test/
H A Dmathtest.c1496 char testbuf[512], linebuf[512]; in runtests() local
1506 strcpy(linebuf, testbuf); in runtests()
1523 linebuf, in runtests()
1529 printf("%s:%d: malformed: %s\n", name, lineno, linebuf); in runtests()

Completed in 44 milliseconds

12