Home
last modified time | relevance | path

Searched refs:beg (Results 1 – 25 of 84) sorted by relevance

1234

/netbsd/src/external/bsd/nvi/dist/vi/
Dv_increment.c64 size_t beg, blen, end, len, nlen, wlen; in v_increment() local
99 for (beg = vp->m_start.cno; beg < len && ISSPACE((UCHAR_T)p[beg]); ++beg); in v_increment()
100 if (beg >= len) in v_increment()
102 if (beg != vp->m_start.cno) { in v_increment()
103 sp->cno = beg; in v_increment()
116 wlen = len - beg; in v_increment()
117 if (p[beg] == L('0') && wlen > 2 && in v_increment()
118 (p[beg + 1] == L('X') || p[beg + 1] == L('x'))) { in v_increment()
120 end = beg + 2; in v_increment()
123 ntype = p[beg + 1] == L('X') ? fmt[HEXC] : fmt[HEXL]; in v_increment()
[all …]
Dvi.c1104 size_t beg, end, len; in v_curword() local
1127 beg = sp->cno; beg < len && ISSPACE((UCHAR_T)p[beg]); moved = 1, ++beg); in v_curword()
1128 if (beg >= len) { in v_curword()
1133 sp->cno = beg; in v_curword()
1144 for (end = beg; ++end < len && inword(p[end]);); in v_curword()
1147 vip->klen = len = end - beg; in v_curword()
1149 MEMMOVEW(vip->keyw, p + beg, len); in v_curword()
/netbsd/src/bin/ksh/
Dexpand.h11 char *end, *beg; /* end, begin of string */ member
22 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
23 (xs).end = (xs).beg + (xs).len; \
24 xp = (xs).beg; \
42 #define Xfree(xs, xp) afree((void*) (xs).beg, (xs).areap)
45 #define Xclose(xs, xp) (char*) aresize((void*)(xs).beg, \
46 (size_t)((xp) - (xs).beg), (xs).areap)
48 #define Xstring(xs, xp) ((xs).beg)
51 #define Xlength(xs, xp) ((xp) - (xs).beg)
52 #define Xsize(xs, xp) ((xs).end - (xs).beg)
[all …]
/netbsd/src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/
Dthrow_allocator.h202 const_iterator beg = map_alloc().begin(); in _GLIBCXX_VISIBILITY() local
204 while (beg != end) in _GLIBCXX_VISIBILITY()
206 if (beg->second.first == label) in _GLIBCXX_VISIBILITY()
207 log_to_string(found, *beg); in _GLIBCXX_VISIBILITY()
208 ++beg; in _GLIBCXX_VISIBILITY()
214 auto beg = map_construct().begin(); in _GLIBCXX_VISIBILITY() local
216 while (beg != end) in _GLIBCXX_VISIBILITY()
218 if (beg->second == label) in _GLIBCXX_VISIBILITY()
219 log_to_string(found, *beg); in _GLIBCXX_VISIBILITY()
220 ++beg; in _GLIBCXX_VISIBILITY()
[all …]
/netbsd/src/external/gpl3/binutils/dist/gprof/
Dsearch_list.c31 const char *beg, *colon; in search_list_append() local
37 beg = colon + 1; in search_list_append()
38 colon = strchr (beg, PATH_SEP_CHAR); in search_list_append()
41 len = colon - beg; in search_list_append()
43 len = strlen (beg); in search_list_append()
46 memcpy (new_el->path, beg, len); in search_list_append()
/netbsd/src/sys/arch/hpcmips/dev/
Dplumvideo.c616 u_int32_t *rgb, int beg, int cnt) in __plumvideo_clut_get() argument
620 for (i = 0, beg *= 4; i < cnt; i++, beg += 4) { in __plumvideo_clut_get()
621 *rgb++ = bus_space_read_4(iot, ioh, beg) & in __plumvideo_clut_get()
627 plumvideo_clut_get(struct plumvideo_softc *sc, u_int32_t *rgb, int beg, in plumvideo_clut_get() argument
631 KASSERT(LEGAL_CLUT_INDEX(beg)); in plumvideo_clut_get()
632 KASSERT(LEGAL_CLUT_INDEX(beg + cnt - 1)); in plumvideo_clut_get()
633 __plumvideo_clut_access(sc, rgb, beg, cnt, __plumvideo_clut_get); in plumvideo_clut_get()
639 u_int32_t *rgb, int beg, int cnt) in __plumvideo_clut_set() argument
643 for (i = 0, beg *= 4; i < cnt; i++, beg +=4) { in __plumvideo_clut_set()
644 bus_space_write_4(iot, ioh, beg, in __plumvideo_clut_set()
[all …]
/netbsd/src/lib/libc/compat/gen/
Dcompat_timezone.c69 char *beg, in timezone() local
72 if ((beg = getenv("TZNAME")) != NULL) { /* set in environment */ in timezone()
73 if ((end = strchr(beg, ',')) != NULL) { /* "PST,PDT" */ in timezone()
77 (void)strlcpy(czone, beg, sizeof(czone)); in timezone()
81 return(beg); in timezone()
/netbsd/src/external/gpl3/gcc/dist/gcc/config/mips/
Dsdemtk.h58 extern void mips_sync_icache (void *beg, unsigned long len);
60 #define CLEAR_INSN_CACHE(beg, end) \ argument
61 mips_sync_icache (beg, end - beg)
/netbsd/src/external/bsd/openldap/dist/libraries/liblutil/
Dutils.c752 int beg; member
763 unsigned char *in = prev->buf+prev->beg; in scale()
784 prev->beg += j; in scale()
798 prev->beg = prev->bufsiz - i; in scale()
801 AC_MEMCPY( prev->buf+prev->beg, tmp+prev->beg, prev->len ); in scale()
882 num.beg = num.bufsiz-1; in lutil_str2bin()
918 ptr = num.buf+num.beg; in lutil_str2bin()
928 if (( num.buf[num.beg] ^ neg ) & 0x80 ) { in lutil_str2bin()
929 num.beg--; in lutil_str2bin()
931 num.buf[num.beg] = neg; in lutil_str2bin()
[all …]
/netbsd/src/sbin/scan_ffs/
Dscan_ffs.c397 show_status(uintmax_t beg, uintmax_t total) in show_status() argument
401 const uintmax_t done = blk - beg; in show_status()
420 scan_disk(int fd, daddr_t beg, daddr_t end, int fflags) in scan_disk() argument
436 const daddr_t total = end - beg; in scan_disk()
437 for (blk = beg; blk <= end; blk += SBPASS) { in scan_disk()
439 show_status(beg, total); in scan_disk()
494 daddr_t end = -1, beg = 0; in main() local
519 beg = atoi(optarg); in main()
571 return scan_disk(fd, beg, end, flags); in main()
/netbsd/src/external/bsd/elftosb/dist/sbtool/
DEncoreBootImageReader.cpp23 m_stream.seekg(0, std::ios_base::beg); in readImageHeader()
79 m_stream.seekg(digestPosition, std::ios_base::beg); in readImageDigest()
106 m_stream.seekg(0, std::ios_base::beg); in computeImageDigest()
131 m_stream.seekg(sizeOfCipherBlocks(m_header.m_headerBlocks), std::ios_base::beg); in readSectionTable()
190 m_stream.seekg(sizeOfCipherBlocks(m_header.m_keyDictionaryBlock), std::ios_base::beg); in readKeyDictionary()
244 m_stream.seekg(sizeOfCipherBlocks(bootTagOffset), std::ios_base::beg); in readBootTags()
316 m_stream.seekg(sizeOfCipherBlocks(header.m_offset), std::ios_base::beg); in readSection()
/netbsd/src/external/bsd/openldap/dist/servers/slapd/back-ndb/
Dndbio.cpp1085 char *beg, *end; in ndb_dn2rdns() local
1091 for ( beg = end-1; beg > dn->bv_val; beg-- ) { in ndb_dn2rdns()
1092 if (*beg == ',') { in ndb_dn2rdns()
1093 beg++; in ndb_dn2rdns()
1097 if ( beg >= dn->bv_val ) { in ndb_dn2rdns()
1098 len = end - beg; in ndb_dn2rdns()
1102 memcpy( rdns->nr_buf[i]+1, beg, len ); in ndb_dn2rdns()
1107 end = beg - 1; in ndb_dn2rdns()
1110 if ( i == NDB_MAX_RDNS && beg > dn->bv_val ) { in ndb_dn2rdns()
1255 char *beg; in ndb_str2bvarray() local
[all …]
/netbsd/src/external/cddl/osnet/dist/uts/common/zmod/
Ddeflate.c660 uInt beg = s->pending; /* start of bytes to update crc */ local
664 if (s->gzhead->hcrc && s->pending > beg)
665 strm->adler = crc32(strm->adler, s->pending_buf + beg,
666 s->pending - beg);
668 beg = s->pending;
675 if (s->gzhead->hcrc && s->pending > beg)
676 strm->adler = crc32(strm->adler, s->pending_buf + beg,
677 s->pending - beg);
688 uInt beg = s->pending; /* start of bytes to update crc */ local
693 if (s->gzhead->hcrc && s->pending > beg)
[all …]
/netbsd/src/share/examples/refuse/ian/libfetch/
Dftp.c270 const char *beg, *end; in _ftp_cwd() local
306 for (beg = file + i; beg < end && *beg == '/'; ++beg, ++i) in _ftp_cwd()
310 if (beg >= end) in _ftp_cwd()
314 e = _ftp_cmd(conn, "CWD %.*s", (int)(end - beg), beg); in _ftp_cwd()
320 for (beg = file + i; beg < end; beg = file + i + 1) { in _ftp_cwd()
321 while (*beg == '/') in _ftp_cwd()
322 ++beg, ++i; in _ftp_cwd()
325 e = _ftp_cmd(conn, "CWD %.*s", file + i - beg, beg); in _ftp_cwd()
/netbsd/src/external/bsd/openldap/dist/tests/progs/
Dslapd-bind.c386 DWORD beg, end; in do_base() local
388 struct timeval beg, end; in do_base() local
478 beg = GetTickCount(); in do_base()
480 gettimeofday( &beg, NULL ); in do_base()
522 end -= beg; in do_base()
528 end.tv_usec -= beg.tv_usec; in do_base()
533 end.tv_sec -= beg.tv_sec; in do_base()
/netbsd/src/external/bsd/fetch/dist/libfetch/
Dftp.c303 const char *beg, *end; in ftp_cwd() local
375 for (beg = dst + i; beg < end && *beg == '/'; ++beg, ++i) in ftp_cwd()
379 if (beg >= end) { in ftp_cwd()
385 e = ftp_cmd(conn, "CWD %.*s\r\n", (int)(end - beg), beg); in ftp_cwd()
393 for (beg = dst + i; beg < end; beg = dst + i + 1) { in ftp_cwd()
394 while (*beg == '/') in ftp_cwd()
395 ++beg, ++i; in ftp_cwd()
398 e = ftp_cmd(conn, "CWD %.*s\r\n", (int)(dst + i - beg), beg); in ftp_cwd()
/netbsd/src/usr.bin/mail/
Dlist.c951 int beg; /* first value of a range */ in markall_core() local
965 beg = 0; in markall_core()
993 if (beg) in markall_core()
1037 if (beg != 0) { in markall_core()
1038 if (lexnumber < beg) { in markall_core()
1039 … (void)printf("invalid range: %d-%d\n", beg, lexnumber); in markall_core()
1042 for (i = beg; i <= lexnumber; i++) in markall_core()
1045 beg = 0; in markall_core()
1048 beg = lexnumber; /* start of a range */ in markall_core()
1055 tmparray[beg - 1] = 1; in markall_core()
[all …]
/netbsd/src/external/gpl3/gcc/dist/gcc/
Dgimple-ssa-sprintf.cc563 : info (inf), dirno (dno), argno (), beg (), len (), flags (), in directive()
579 const char *beg; member
2810 if (target_to_host (*dir.beg) != '%') in maybe_warn()
2819 if (*dir.beg == '\0') in maybe_warn()
2841 const char *d = target_to_host (hostdir, sizeof hostdir, dir.beg); in maybe_warn()
2876 target_to_host (hostdir, sizeof hostdir, dir.beg), in maybe_warn()
2894 target_to_host (hostdir, sizeof hostdir, dir.beg), in maybe_warn()
2910 target_to_host (hostdir, sizeof hostdir, dir.beg), in maybe_warn()
2923 target_to_host (hostdir, sizeof hostdir, dir.beg), in maybe_warn()
2929 if (target_to_host (*dir.beg) != '%') in maybe_warn()
[all …]
/netbsd/src/external/bsd/mdocml/dist/
Dout.c451 const char *beg; /* Beginning of the current line. */ in tblcalc_literal() local
461 for (beg = str; beg != NULL && *beg != '\0'; beg = end) { in tblcalc_literal()
462 end = mw ? strchr(beg, ' ') : NULL; in tblcalc_literal()
468 wsz = (*tbl->slen)(beg, tbl->arg); in tblcalc_literal()
/netbsd/src/sys/kern/
Dsubr_log.c464 long beg, end; in sysctl_msgbuf() local
503 beg = msgbufp->msg_bufx; in sysctl_msgbuf()
508 len = MIN(end - beg, maxlen); in sysctl_msgbuf()
512 error = copyout(&msgbufp->msg_bufc[beg], where, len); in sysctl_msgbuf()
523 beg = 0; in sysctl_msgbuf()
/netbsd/src/external/bsd/atf/dist/atf-c/detail/
Ddynstr.c252 size_t beg, size_t end) in atf_dynstr_init_substr() argument
254 if (beg > src->m_length) in atf_dynstr_init_substr()
255 beg = src->m_length; in atf_dynstr_init_substr()
260 return atf_dynstr_init_raw(ad, src->m_data + beg, end - beg); in atf_dynstr_init_substr()
/netbsd/src/external/bsd/elftosb/dist/common/
DStSRecordFile.cpp36 m_stream.seekg(0, std::ios_base::beg); in isSRecordFile()
42 m_stream.seekg(savePosition, std::ios_base::beg); in isSRecordFile()
57 m_stream.seekg(0, std::ios_base::beg); in parse()
/netbsd/src/usr.bin/whatis/
Dwhatis.c76 char *beg, *conffile, **p, *p_augment, *p_path; in main() local
108 if ((beg = strrchr(*p, '/'))) in main()
109 *p = beg + 1; in main()
/netbsd/src/external/bsd/kyua-cli/dist/utils/
Dstream.cpp55 is.seekg(current_pos, std::ios::beg); in stream_length()
58 is.seekg(current_pos, std::ios::beg); in stream_length()
/netbsd/src/external/gpl3/gcc/dist/gcc/config/i386/
Ddarwin.h308 #define CLEAR_INSN_CACHE(beg, end) \ argument
310 sys_icache_invalidate ((beg), (size_t)((end)-(beg)))

1234