Home
last modified time | relevance | path

Searched refs:buf_ptr (Results 1 – 22 of 22) sorted by relevance

/freebsd/usr.bin/indent/
H A Dlexi.c179 while (*buf_ptr == ' ' || *buf_ptr == '\t') { /* get rid of blanks */ in lexi()
182 if (++buf_ptr >= buf_end) in lexi()
187 if (isalnum((unsigned char)*buf_ptr) || in lexi()
188 *buf_ptr == '_' || *buf_ptr == '$' || in lexi()
189 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
195 if (isdigit((unsigned char)*buf_ptr) || in lexi()
196 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
201 i = (unsigned char)*buf_ptr; in lexi()
209 *e_token++ = *buf_ptr++; in lexi()
210 if (buf_ptr >= buf_end) in lexi()
[all …]
H A Dpr_comment.c106 if (*buf_ptr == '-' || *buf_ptr == '*' || in pr_comment()
107 (*buf_ptr == '\n' && !opt.format_block_comments)) { in pr_comment()
156 start = buf_ptr >= save_com && buf_ptr < save_com + sc_size ? in pr_comment()
158 ps.n_comment_delta = 1 - count_spaces_until(1, start, buf_ptr - 2); in pr_comment()
162 while (*buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
163 buf_ptr++; in pr_comment()
168 if (*buf_ptr != ' ' && !ps.box_com) in pr_comment()
175 for (t_ptr = buf_ptr; *t_ptr != '\0' && *t_ptr != '\n'; t_ptr++) { in pr_comment()
179 if (adj_max_col >= count_spaces_until(ps.com_col, buf_ptr, t_ptr + 2)) in pr_comment()
201 switch (*buf_ptr) { /* this checks for various spcl cases */ in pr_comment()
[all …]
H A Dindent.c60 char *buf_ptr, *buf_end; variable
156 buf_ptr = buf_end = in_buffer; in main()
285 char *p = buf_ptr; in main()
348 memcpy(sc_buf, in_buffer, buf_ptr - in_buffer - 4); in main()
349 save_com = sc_buf + (buf_ptr - in_buffer - 4); in main()
357 *sc_end = *buf_ptr++; in main()
358 if (buf_ptr >= buf_end) in main()
360 if (*sc_end++ == '*' && *buf_ptr == '/') in main()
370 if (++buf_ptr >= buf_end) /* get past / in buffer */ in main()
387 while (isspace((unsigned char)*buf_ptr)) { in main()
[all …]
H A Dio.c285 buf_ptr = bp_save; /* do not read anything, just switch buffers */ in fill_buffer()
288 if (buf_ptr < buf_end) in fill_buffer()
313 buf_ptr = in_buffer; in fill_buffer()
H A Dindent_globs.h127 extern char *buf_ptr; /* ptr to next character to be taken
/freebsd/contrib/byacc/
H A Dmstring.c15 static char *buf_ptr; variable
32 buf_ptr = malloc(buf_len = 4096); in msprintf()
34 if (buf_ptr == 0) in msprintf()
43 len = (size_t)vsnprintf(buf_ptr, buf_len, fmt, args); in msprintf()
47 char *new_ptr = realloc(buf_ptr, (buf_len * 3) / 2); in msprintf()
50 free(buf_ptr); in msprintf()
51 buf_ptr = 0; in msprintf()
54 buf_ptr = new_ptr; in msprintf()
60 len = (size_t)vsprintf(buf_ptr, fmt, args); in msprintf()
89 memcpy(s->ptr, buf_ptr, len); in msprintf()
[all …]
/freebsd/crypto/openssl/test/
H A Dd2i_test.c50 const unsigned char *buf_ptr = buf; in test_bad_asn1() local
74 value = ASN1_item_d2i(NULL, &buf_ptr, len, item_type); in test_bad_asn1()
/freebsd/sys/dev/cfe/
H A Dcfe_api.c276 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_getdevinfo()
427 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_ioctl()
450 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(name); in cfe_open()
481 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_readblk()
549 xiocb.plist.xiocb_buffer.buf_ptr = XPTR_FROM_NATIVE(buffer); in cfe_writeblk()
H A Dcfe_api_int.h95 cfe_xptr_t buf_ptr; /* pointer to a buffer */ member
/freebsd/contrib/hyperv/tools/
H A Dhv_kvp_daemon.c610 char *buf_ptr, *p; in kvp_mac_to_if_name() local
619 buf_ptr = strdup(ether_ntoa((struct ether_addr *)(LLADDR(sdl)))); in kvp_mac_to_if_name()
620 if (buf_ptr != NULL) { in kvp_mac_to_if_name()
621 for (p = buf_ptr; *p != '\0'; p++) in kvp_mac_to_if_name()
624 if (strncmp(buf_ptr, mac, strlen(mac)) == 0) { in kvp_mac_to_if_name()
627 free(buf_ptr); in kvp_mac_to_if_name()
630 free(buf_ptr); in kvp_mac_to_if_name()
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dabd_os.c1233 bio_map(struct bio *bio, void *buf_ptr, unsigned int bio_size) in bio_map() argument
1238 offset = offset_in_page(buf_ptr); in bio_map()
1248 if (is_vmalloc_addr(buf_ptr)) in bio_map()
1249 page = vmalloc_to_page(buf_ptr); in bio_map()
1251 page = virt_to_page(buf_ptr); in bio_map()
1263 buf_ptr += size; in bio_map()
/freebsd/contrib/flex/src/
H A DFlexLexer.h152 void yyunput( int c, char* buf_ptr );
H A Dflex.skl929 static void yyunput ( int c, char *buf_ptr M4_YY_PROTO_LAST_ARG);
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dwmi.c9826 u8 *buf_ptr = *ptr; in ath11k_wmi_fill_ns_offload() local
9832 tlv = (struct wmi_tlv *)buf_ptr; in ath11k_wmi_fill_ns_offload()
9847 buf_ptr += sizeof(*tlv); in ath11k_wmi_fill_ns_offload()
9850 ns = (struct wmi_ns_offload_tuple *)buf_ptr; in ath11k_wmi_fill_ns_offload()
9880 buf_ptr += sizeof(*ns); in ath11k_wmi_fill_ns_offload()
9883 *ptr = buf_ptr; in ath11k_wmi_fill_ns_offload()
9893 u8 *buf_ptr = *ptr; in ath11k_wmi_fill_arp_offload() local
9897 tlv = (struct wmi_tlv *)buf_ptr; in ath11k_wmi_fill_arp_offload()
9900 buf_ptr += sizeof(*tlv); in ath11k_wmi_fill_arp_offload()
9903 arp = (struct wmi_arp_offload_tuple *)buf_ptr; in ath11k_wmi_fill_arp_offload()
[all …]
/freebsd/contrib/bmake/
H A Dparse.c139 char *buf_ptr; /* next char to be read from buf */ member
2182 curFile->buf_ptr = curFile->buf.data; in Parse_PushInput()
2306 curFile->buf_ptr = curFile->buf.data; in ParseEOF()
2365 char *line = curFile->buf_ptr; in ParseRawLine()
2425 curFile->buf_ptr = p; in ParseRawLine()
/freebsd/sys/contrib/alpine-hal/
H A Dal_hal_udma.h86 uint64_t buf_ptr; member
/freebsd/sbin/camcontrol/
H A Dcamcontrol.c4859 uint8_t *buf_ptr = data_ptr; in scsicmd()
4862 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in scsicmd()
4869 buf_ptr += amt_read; in scsicmd() local
5008 uint8_t *buf_ptr = data_ptr; in scsicmd()
5011 (amt_written =write(1, buf_ptr,amt_to_write))> 0;){ in scsicmd()
5013 buf_ptr += amt_written; in scsicmd()
7813 uint8_t *buf_ptr = smp_request; in smpcmd()
7816 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in smpcmd()
7823 buf_ptr += amt_read; in smpcmd()
7873 uint8_t *buf_ptr in smpcmd()
5018 uint8_t *buf_ptr = data_ptr; scsicmd() local
7811 uint8_t *buf_ptr = smp_request; smpcmd() local
7871 uint8_t *buf_ptr = smp_response; smpcmd() local
[all...]
/freebsd/crypto/heimdal/lib/asn1/
H A Dlex.c909 static void yyunput (int c,char *buf_ptr );
/freebsd/usr.sbin/ctladm/
H A Dctladm.c1017 u_int8_t *buf_ptr = (uint8_t *)&err_desc.custom_sense; in cctl_error_inject() local
1020 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) { in cctl_error_inject()
1027 buf_ptr += amt_read; in cctl_error_inject()
/freebsd/sys/cam/scsi/
H A Dscsi_all.c4807 uint8_t *buf_ptr; in scsi_sense_generic_sbuf() local
4811 buf_ptr = (uint8_t *)&header[1]; in scsi_sense_generic_sbuf()
4813 for (i = 0; i < header->length; i++, buf_ptr++) in scsi_sense_generic_sbuf()
4814 sbuf_printf(sb, " %02x", *buf_ptr); in scsi_sense_generic_sbuf()
/freebsd/usr.bin/lex/
H A Dinitscan.c2057 static void yyunput ( int c, char *buf_ptr );
/freebsd/sys/contrib/alpine-hal/eth/
H A Dal_hal_eth_main.c2558 tx_desc->tx.buf_ptr = swap64_to_le( in al_eth_tx_pkt_prepare()