Home
last modified time | relevance | path

Searched refs:siz (Results 1 – 25 of 40) sorted by path

12

/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptape.c1937 int siz; /* bytes written (block) */ in dowrite() local
1990 siz = rmtwrite(tp, writesize); in dowrite()
1993 siz = -1; in dowrite()
1996 siz = write(to, tp, writesize); in dowrite()
1999 siz = -1; in dowrite()
2000 if (siz < 0 && diskette && errno == ENOSPC) in dowrite()
2001 siz = 0; /* really EOF */ in dowrite()
2004 if (siz < 0 || in dowrite()
2005 (pipeout && siz != writesize)) { in dowrite()
2059 trecs = siz / tp_bsize; in dowrite()
[all …]
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dserver.c50 #define _VALIDATE_LIST_CB_DATA(col, val, siz)\ argument
52 (uchar_t **)val, siz);\
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dutil.c1280 sfgets(buf, siz, fp, timeout, during) in sfgets() argument
1282 int siz;
1291 SM_REQUIRE(siz > 0);
1310 p = sm_io_fgets(fp, io_timeout, buf, siz);
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A DRELEASE411 04-02-11 iffe.sh: handle ``siz void*'', add cross{ ... }end
836 99-06-01 iffe: add `siz type' for _siz_type == sizeof(type)
H A Diffe.sh176 siz) mm="a type with known size" ;;
2595 siz|typ)hdr="sys/types.h time.h sys/time.h sys/times.h stddef.h stdlib.h $hdr"
3249 siz|typ)case $v in
3371 siz) m=SIZEOF${u} ;;
4385 siz) case $p in
4389 is siz "$x$v"
H A Dproto.c1487 int siz; member
2168 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2173 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2181 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2191 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2211 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2218 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2237 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2246 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2256 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
[all …]
H A Drelease.c114 string(register char* s, char* tab, int num, int siz, char** e) in string() argument
122 for (i = 0; i < siz; i++) in string()
124 for (i = 0; i < num; i += siz) in string()
125 for (j = 0; j < siz && buf[j] == tab[j+i]; j++) in string()
126 if (j == (siz - 1)) in string()
128 *e = s + siz; in string()
129 return i / siz + 1; in string()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dname.c57 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
59 return uwin_path(path, buf, siz); in pathnative()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Dsubshell.sh402 siz=$(printf $'%#i' $exp)
404 cmd=${cmd//\$tmp\/buf/$siz.buf}
405 cmd=${cmd//\$tmp\/lin/$siz.lin}
/illumos-gate/usr/src/contrib/ast/src/lib/libast/
H A DRELEASE612 string/stropt.c: drop siz==0 => tab is hash table
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dast.c50 static unsigned long siz; in sfgetr() local
54 siz = CHUNK; in sfgetr()
55 if (!(buf = newof(0, char, siz, 0))) in sfgetr()
61 e = s + siz; in sfgetr()
66 siz += CHUNK; in sfgetr()
67 if (!(buf = newof(buf, char, siz, 0))) in sfgetr()
69 s = buf + (siz - CHUNK); in sfgetr()
70 e = s + siz; in sfgetr()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dreadlink.c41 readlink(const char* path, char* buf, int siz)
46 if (siz > sizeof(FAKELINK_MAGIC))
50 …zeof(FAKELINK_MAGIC) && !strcmp(buf, FAKELINK_MAGIC) && (n = read(fd, buf, siz)) > 0 && !buf[n - 1…
H A Dsetlocale.c103 native_locale(const char* locale, char* buf, size_t siz) in native_locale() argument
146 sfsprintf(buf, siz, "%s_%s.%s", lbuf, cbuf, lc->charset->ms); in native_locale()
148 sfsprintf(buf, siz, "%s_%s", lbuf, cbuf); in native_locale()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/
H A Dgetdents.c52 getdents(int fd, void* buf, size_t siz)
56 if (siz < DIRBLKSIZ)
74 return(getdirentries(fd, buf, siz, &off));
86 m = (siz * 6) / 10;
88 sp = (char*)buf + siz - m - 1;
94 while (sp < (char*)buf + siz - m + n)
116 return(read(fd, buf, siz));
135 n = (siz / MAXREC) * sizeof(struct direct);
139 if ((n = read(fd, (char*)buf + siz - m, m)) <= 0) break;
140 sp = (struct direct*)((char*)buf + siz - m);
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/disc/
H A Dsfstrtmp.c48 sfstrtmp(register Sfio_t* f, int mode, void* buf, size_t siz)
57 f->_endw = f->_endr = f->_endb = f->_data + siz;
58 f->_size = siz;
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dfloat1023 list(const char* typ, const char* var, void* val, int siz)
1025 list(typ, var, val, siz)
1029 int siz;
1033 register unsigned char* e = u + siz;
H A Dlib521 size_t siz;
541 siz = 64 * 1024;
542 if (!(dstbuf = malloc(2 * siz)))
546 if (!(srcbuf = (char*)mmap(NULL, siz, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0)))
548 if (!mmap(srcbuf + siz, siz, PROT_NONE, MAP_PRIVATE, fd, 0))
550 for (i = 0; i < siz; i++)
552 srcbuf[siz - 1] = 0;
561 memccpy(dstbuf, srcbuf, 0, siz + 10);
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dmagic.c286 getdata(register Magic_t* mp, register long off, register int siz) in getdata() argument
292 if (off + siz <= mp->fbsz) in getdata()
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz) in getdata()
296 if (off + siz > mp->fbmx) in getdata()
309 if (off + siz > mp->xoff + mp->xbsz) in getdata()
H A Dmime.c769 mimehead(Mime_t* mp, void* tab, size_t num, size_t siz, char* s) in mimehead() argument
782 if ((p = strsearch(tab, num, siz, _mimecmp, s, &e)) && *e == ':') in mimehead()
791 (p = strsearch(tab, num, siz, _mimecmp, pp.name.data, &e)) && in mimehead()
H A Doptget.c812 search(const void* tab, size_t num, size_t siz, char* s) in search() argument
817 for (e = (p = (char*)tab) + num * siz; p < e; p += siz) in search()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathgetlink.c42 pathgetlink(const char* name, char* buf, int siz) in pathgetlink() argument
46 if ((n = readlink(name, buf, siz)) < 0) return(-1); in pathgetlink()
47 if (n >= siz) in pathgetlink()
H A Dpathnative.c41 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
43 return uwin_path(path, buf, siz); in pathnative()
53 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
57 if (!buf || siz < PATH_MAX) in pathnative()
62 if ((n = strlen(tmp)) < siz && buf) in pathnative()
75 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
80 if (!_fullpath(buf, path, siz)) in pathnative()
86 else if ((n = strlen(path)) < siz && buf) in pathnative()
102 strlcpy(buf, path, siz); in pathnative()
104 unixpath2win(path, 0, buf, siz); in pathnative()
[all …]
H A Dpathposix.c41 pathposix(const char* path, char* buf, size_t siz) in pathposix() argument
43 return uwin_unpath(path, buf, siz); in pathposix()
53 pathposix(const char* path, char* buf, size_t siz) in pathposix() argument
57 if (!buf || siz < PATH_MAX) in pathposix()
62 if ((n = strlen(tmp)) < siz && buf) in pathposix()
75 pathposix(const char* path, char* buf, size_t siz) in pathposix() argument
80 if (!_posixpath(buf, path, siz)) in pathposix()
86 else if ((n = strlen(path)) < siz && buf) in pathposix()
104 strlcpy(buf, path, siz); in pathposix()
106 winpath2unix(path, PATH_NONSTRICT, buf, siz); in pathposix()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dastlicense.c105 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz)
118 int siz; member
H A Dlc.c266 … const Lc_charset_t* cp, const Lc_attribute_list_t* ap, unsigned long flags, char* buf, size_t siz) in canonical() argument
279 e = &buf[siz - 3]; in canonical()
384 lccanon(Lc_t* lc, unsigned long flags, char* buf, size_t siz) in lccanon() argument
400 return sfsprintf(buf, siz, "%s_%s", lang, ctry); in lccanon()
402 return sfsprintf(buf, siz, "%s_%s.%s", lang, ctry, code); in lccanon()
404 return sfsprintf(buf, siz, "%s_%s.%s,%s", lang, ctry, code, lc->charset->ms); in lccanon()
411 return canonical(lc->language, lc->territory, lc->charset, lc->attributes, flags, buf, siz); in lccanon()

12