Searched refs:s1 (Results 1 - 25 of 33) sorted by relevance

12

/ast/src/lib/libast/comp/
H A Dmemcpy.c39 memcpy(void* s1, void* s2, size_t n)
41 bcopy(s2, s1, n);
42 return(s1);
50 register char* s1 = (char*)as1;
54 *s1++ = *s2++;
H A Dmemccpy.c33 * Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes.
41 register char* s1 = (char*)as1;
46 if ((*s1++ = *s2++) == c)
47 return(s1);
H A Dstrstr.c49 strstr(register const char* s1, register const char* s2)
59 return (char*)s1;
61 while (c1 = *s1++)
64 t1 = s1;
69 return (char*)s1 - 1;
/ast/src/cmd/tests/sfio/
H A Dtstdio.c32 long s1, s2; local
104 if((s1 = ftell(f)) != 1010)
105 terror("Bad location in f: s1=%lld", (Sflong_t)s1);
112 if((s1 = ftell(f)) != 1011)
113 terror("Bad location in f: s1=%lld", (Sflong_t)s1);
H A Dtstack.c83 char *s, *s1, *s2, *s3, *s4, str[1024], *ss; local
104 s1 = "1234567890";
109 if(!(f1 = sfopen((Sfio_t*)0,s1,"s")) ||
148 terror("Stacking s1");
150 sfsprintf(str,sizeof(str),"%s%s%s%s",s1,s2,s3,s4);
165 if(!(f1 = sfopen((Sfio_t*)0,s1,"s")) ||
174 if(!(s = sfreserve(f,SF_UNBOUND,0)) || s != s1)
H A Dtpool.c42 char *s, *os, *s1, *s2, *s3; local
89 if(!(s1 = sfreserve(f1,n,0)) ||
94 if(memcmp(s1,s2,n) != 0 || memcmp(s2,s3,n) != 0)
/ast/src/cmd/tests/cdt/
H A Dtstringset.c25 int strcmp(const char* s1, const char* s2) argument
28 for(;; s1++, s2++)
29 { if((d = s1[0] - s2[0]) )
31 if(s1[0] == 0)
/ast/src/lib/libtk/library/demos/
H A Dentry2.tcl27 entry $w.frame.e1 -relief sunken -xscrollcommand "$w.frame.s1 set"
28 scrollbar $w.frame.s1 -relief sunken -orient horiz -command \
38 pack $w.frame.e1 $w.frame.s1 $w.frame.spacer1 $w.frame.e2 $w.frame.s2 \
/ast/src/lib/libz/
H A Dzutil.c160 int zmemcmp(s1, s2, len)
161 const Bytef* s1;
168 if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1;
/ast/src/lib/libcmd/
H A Dcmp.c255 struct stat s1; local
369 if (fstat(sffileno(f1), &s1))
373 else if (s1.st_ino == s2.st_ino && s1.st_dev == s2.st_dev && o1 == o2)
376 n = ((flags & CMP_SILENT) && S_ISREG(s1.st_mode) && S_ISREG(s2.st_mode) && (s1.st_size - o1) != (s2.st_size - o2)) ? 1 : cmp(file1, f1, file2, f2, flags, count, differences);
/ast/src/lib/libbz/
H A Dblocksort.c85 UInt16 s1, s2; local
126 s1 = quadrant[i1];
128 if (s1 != s2) return (s1 > s2);
134 s1 = quadrant[i1];
136 if (s1 != s2) return (s1 > s2);
142 s1 = quadrant[i1];
144 if (s1 != s2) return (s1 > s
[all...]
/ast/src/lib/libast/hash/
H A Dhashlook.c48 register char* s1; local
65 s1 = hashname(b);
67 while ((c = *s1++) == *s2++)
106 register char* s1 = hashname(b); local
111 register char* s3 = s1 + tab->root->namesize;
113 while (*s1++ == *s2++)
114 if (s1 >= s3) goto found;
116 else while (*s1 == *s2++)
117 if (!*s1++) goto found;
/ast/src/lib/libast/vmalloc/
H A Dvmtrace.c196 void _vmmessage(const char* s1, long n1, const char* s2, long n2) argument
198 void _vmmessage(s1, n1, s2, n2)
199 const char* s1;
209 if (s1)
211 bufp = trstrcpy(bufp, s1, ':');
/ast/src/cmd/ie/
H A Dhistory.c795 * copy command <command> from history file to s1
797 * if s1==0 the number of lines for the command is returned
803 int hist_copy(s1,command,line)
804 register char *s1;
810 register char *s1max = s1+MAXLINE;
825 if(s1 && (line<0 || line==count))
827 if(s1 >= s1max)
829 *--s1 = 0;
832 *s1++ = c;
837 if(s1
[all...]
/ast/src/lib/libsum/
H A Dsum-sha2.c484 s1 = W256[(j+14)&0x0f]; \
485 s1 = sigma1_256(s1); \
487 (W256[j&0x0f] += s1 + W256[(j+9)&0x0f] + s0); \
493 sha2_word32 a, b, c, d, e, f, g, h, s0, s1; local
551 sha2_word32 a, b, c, d, e, f, g, h, s0, s1; local
595 s1 = W256[(j+14)&0x0f];
596 s1 = sigma1_256(s1);
600 (W256[j&0x0f] += s1
861 sha2_word64 a, b, c, d, e, f, g, h, s0, s1; local
916 sha2_word64 a, b, c, d, e, f, g, h, s0, s1; local
[all...]
/ast/src/cmd/ksh93/edit/
H A Dhistory.c1049 * copy command <command> from history file to s1
1051 * if s1==0 the number of lines for the command is returned
1057 int hist_copy(char *s1,int size,int command,int line) argument
1062 register char *s1max = s1+size;
1075 if(s1 && (line<0 || line==count))
1077 if(s1 >= s1max)
1079 *--s1 = 0;
1082 *s1++ = c;
1087 if(s1==0)
1089 if(count && (c= *(s1
1102 register char *s1 = string; local
[all...]
/ast/src/cmd/cs/vcs_src/
H A Dvcs_search.c37 int cmptime(s1, s2)
38 const void* s1;
42 return (TAGTIME(s1) - TAGTIME(s2));
/ast/src/lib/libvcodex/
H A Dvclzparse.c446 Vcchar_t *s1, *s2, *ends, *str = NIL(Vcchar_t*); local
477 { s1 = str+p; s2 = str+lp;
478 for(; s1 < ends && *s1 == *s2; ++s1, ++s2 )
489 { s1 = str+p; s2 = str+rp;
490 for(; s1 < ends && *s1 == *s2; ++s1, ++s2 )
/ast/src/cmd/ksh93/sh/
H A Denv.c64 const unsigned char *s1=(unsigned const char*)key1; local
66 while((c= *s1++) && c!='=' && c==*s2)
/ast/src/cmd/nmake/
H A Dmetarule.c90 metainfo(int type, char* s1, char* s2, int force) argument
94 sfprintf(internal.met, "%s.%c.%s%s%s", internal.metarule->name, type, s1 ? s1 : null, s2 ? ">" : null, s2 ? s2 : null);
95 s1 = sfstruse(internal.met);
96 if (!(r = getrule(s1)) && force)
H A Dstate.c39 * return a pointer to the rule <s1><s2><s3>
45 catrule(register char* s1, register char* s2, register char* s3, int force) argument
49 sfputr(internal.nam, s1, *s2++);
54 s1 = sfstruse(internal.nam);
55 if (!(r = getrule(s1)) && force)
59 pathcanon(s1, 0, 0);
60 if (r = getrule(s1))
/ast/src/cmd/mailx/
H A Dmisc.c531 anyof(register char* s1, register char* s2) argument
534 while (*s1)
535 if (strchr(s2, *s1++))
/ast/src/lib/libast/features/
H A Dalign.c52 char s1; member in struct:_s_
/ast/src/lib/libast/uwin/
H A Dcrypt.c278 #define LOADREG(d,d0,d1,s,s0,s1) d0 = s0, d1 = s1
280 #define STORE(s,s0,s1,bl) (bl).b32.i0 = s0, (bl).b32.i1 = s1
H A Dlgamma.c116 #define s1 2.786469504618194648e+000 macro
225 q = s0+z*(s1+z*(s2+z*(s3+z*s4)));

Completed in 2502 milliseconds

12