/ast/src/cmd/ksh93/tests/ |
H A D | pointtype.sh | 34 len() function 45 [[ $(p.len) == 1 ]] || err_exit '$(p.len) != 1' 46 [[ ${p.len} == 1 ]] || err_exit '${p.len} != 1' 47 (( p.len == 1 )) || err_exit '((p.len != 1))' 50 (( (q.len - sqrt(5)) < 10e-10 )) || err_exit 'q.len != sqrt(5)' 51 q.len() 86 len() function [all...] |
H A D | cubetype.sh | 41 len() function 46 typeset -fh 'distance from the origin' len 59 exp=5 got=$(( b.len )) 60 (( got == exp )) || err_exit "b.len incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'" 61 exp=5 got=${b.len} 62 [[ "$got" == "$exp" ]] || err_exit "\${b.len} incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'" 106 len() function 123 (( b.len == 5 )) || err_exit "b.len incorrect for box2 -- expected 5, got '$(( b.len ))'" [all...] |
H A D | recttype.sh | 34 len() function
|
H A D | types.sh | 302 len() { print -r -- $(( sqrt(_.x**2 + _.y**2))) ;} function 305 [[ ${foo.len} == 5 ]] || err_exit "discipline function len not working" 487 len() function 527 len() function 534 (( z.len == 5 )) || err_exit 'z.len should be 5' 537 (( .sh.type.foobar_t.len == 1 )) || err_exit '.sh.type.foobar_t.len should be 1'
|
/ast/src/lib/libast/tm/ |
H A D | tmfmt.c | 33 * format date given clock into buf of length len 38 tmfmt(char* buf, size_t len, const char* format, time_t* clock) argument 40 return tmxfmt(buf, len, format, tmxclock(clock));
|
/ast/src/lib/libast/path/ |
H A D | pathtmp.c | 37 size_t len; local 39 len = !buf ? 0 : !dir ? L_tmpnam : (strlen(dir) + 14); 40 return pathtemp(buf, len, dir, pfx, fdp);
|
/ast/src/lib/libast/sfio/ |
H A D | sfecvt.c | 34 int len; local 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,SFFMT_EFORMAT);
|
H A D | sffcvt.c | 34 int len; local 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,0);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | vcs_tag.c | 36 int len; local 40 if (!sfread(f, (char *)&(tp->length), sizeof(int)) || (len = tp->length - sizeof(int)) && sfread(f, (char *)s, len) != len)
|
H A D | mnt_list.c | 39 int len; local 89 len = (int)strtol(s, (char**)0, 0); 94 } while (seq < len);
|
H A D | mnt_vcs.c | 98 int len; local 145 len = sfsprintf(buf, 2048, "%s ", cmd); 146 s = buf + len;
|
H A D | ifs_gopher.c | 41 int port, len; local 69 while( (len = NetRead( nFile, buf, sizeof(buf) )) > 0 ) { 70 fwrite( buf, 1, len, fout );
|
H A D | ifs_network.c | 133 int len; local 141 if( (len = nFile->size) > 0 ) { 142 if( len > bufsize ) 143 len = bufsize; 144 memcpy( buf, nFile->netbuf + nFile->head, len ); 145 nFile->head += len; 146 nFile->size -= len; 147 readlen += len; 148 if( len >= bufsize ) 150 buf += len; 193 int fd, writelen, len; local [all...] |
H A D | vcs_checkout.c | 37 int len; local 95 len = tp->dsize; 96 if (((dbuf = (char *) malloc(len)) == NULL) || sfseek(rp->fd, tp->del, 0) != tp->del || sfread(rp->fd, dbuf, len) != len || !(fdel = sfnew(NULL, dbuf, len, -1, SF_STRING|SF_READ)))
|
H A D | vcs_rscs.c | 101 register int len; local 129 len = sfsprintf(s, rsize, "I <"); 130 s += len; 131 rsize -= len; 134 len = sfsprintf(s, rsize, "%s ", list->tag->version); 135 s += len; 136 rsize -= len; 139 len = s - ret; 140 ret[len-1] = '>'; 141 ret[len] [all...] |
/ast/src/lib/libast/comp/ |
H A D | mktemp.c | 49 size_t len; local 51 len = strlen(buf); 67 if (!pathtemp(buf, len, d, s, fdp))
|
/ast/src/lib/libast/string/ |
H A D | fmtre.c | 37 short len; member in struct:Stack_s 117 p->len = s - p->beg; 150 p->len = 0; 157 p->len = c != '@'; 186 p->len = 0; 196 for (c = 0; c < p->len; c++)
|
/ast/src/cmd/tksh/ |
H A D | uinit.c | 31 int len = strlen(av[0]); local 55 if ((len >= 4) && (strcmp(end-4, "tksh") == 0)) 58 else if ((len >= 6) && (strcmp(end-6, "tclksh") == 0)) 68 if ((len >= 6) && (strcmp(end-6, "tclksh") == 0))
|
/ast/src/cmd/3d/ |
H A D | license.c | 36 licopen(const char* svc, const char* msg, int len) argument 75 if (cswrite(&cs, lic, msg, len) != len)
|
/ast/src/lib/libpz/ |
H A D | sfdczip.c | 58 int len; local 65 len = part - meth; 67 len = strlen(meth); 69 switch ((len<<8)|meth[0]) 72 if (strneq(meth, "bzip", len)) 76 if (strneq(meth, "gzip", len)) 80 if (strneq(meth, "lzw", len)) 84 if (strneq(meth, "pzip", len)) 89 if (strneq(meth, "qzip", len))
|
/ast/src/lib/libvdelta/vd01/ |
H A D | vdio01.c | 116 reg int len; local 123 len = (next-s) + 1; 125 if(REMAIN(io) < len && _vdflsbuf(io) < len) 129 switch(len) 131 default: memcpy((Void_t*)next,(Void_t*)s,len); next += len; break; 138 return len;
|
/ast/src/lib/libvdelta/ |
H A D | vdio.c | 119 reg int len; local 126 len = (next-s) + 1; 128 if(REMAIN(io) < len && _vdflsbuf(io) < len) 132 switch(len) 134 default: memcpy((Void_t*)next,(Void_t*)s,len); next += len; break; 141 return len;
|
/ast/src/lib/libtk/generic/ |
H A D | tkFileFilter.c | 270 int len; 272 len = (strlen(globList[i]) + 1) * sizeof(char); 278 globPtr->pattern = (char*)ckalloc(len+1); 297 globPtr->pattern = (char*)ckalloc(len); 301 globPtr->pattern = (char*)ckalloc(len); 266 int len; local
|
/ast/src/cmd/ksh93/include/ |
H A D | path.h | 64 unsigned short len; member in struct:pathcomp
|
/ast/src/cmd/ksh93/sh/ |
H A D | fcin.c | 165 int _fcmbget(short *len) argument 178 *len = c; 187 switch(*len = mbsize(_Fcin.fcptr)) 201 return(fcmbget(len)); 203 *len = 1;
|