Lines Matching refs:end
114 static char * nonspace(char *pos, char *end);
115 static char * getspace(char *pos, char *end);
116 static char * cvtnum(char *pos, char *end, uint64_t *num);
255 * Note that reading past end is an error, but reading at end is an EOF. For these
259 if (blkoff >= (mdev[devid].mdSize << 12)) { /* Are they trying to read/write at/after end? */
267 if ((blkoff + buf_count(bp)) > (mdev[devid].mdSize << 12)) { /* Will this read go past end? */
446 lp = ba + 256; /* Point to the end */
457 ba = getspace(ba, lp); /* Find next white space or end */
468 if(ba >= lp) return; /* Malformed one at the end, leave */
475 if(ba < lp) { /* If we are not at end, check end character */
490 char *nonspace(char *pos, char *end) { /* Find next non-space in string */
492 if(pos >= end) return end; /* Don't go past end */
493 if(pos[0] == 0) return end; /* If at null, make end */
498 if(pos >= end) return end; /* Quit if we run off end */
502 char *getspace(char *pos, char *end) { /* Find next non-space in string */
505 if(pos >= end) return end; /* Don't go past end */
506 if(pos[0] == 0) return end; /* Leave if we hit null */
512 char *cvtnum(char *pos, char *end, uint64_t *num) { /* Convert to a number */
519 if(pos >= end) return end; /* Don't go past end */
520 if(pos[0] == 0) return end; /* If at null, make end */
529 if(pos >= end) return end; /* Don't go past end */
530 if(pos[0] == 0) return end; /* If at null, make end */