/titanic_53/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | swapmem.c | 41 register char* f = (char*)from; in swapmem() local 48 if (t != f) in swapmem() 49 memcpy(t, f, n); in swapmem() 52 for (n >>= 1; n--; f += 2, t += 2) in swapmem() 54 c = f[0]; t[0] = f[1]; t[1] = c; in swapmem() 58 for (n >>= 2; n--; f += 4, t += 4) in swapmem() 60 c = f[0]; t[0] = f[2]; t[2] = c; in swapmem() 61 c = f[1]; t[1] = f[3]; t[3] = c; in swapmem() 65 for (n >>= 2; n--; f += 4, t += 4) in swapmem() 67 c = f[0]; t[0] = f[3]; t[3] = c; in swapmem() [all …]
|
/titanic_53/usr/src/contrib/ast/src/cmd/ksh93/data/ |
H A D | math.tab | 1 # <return type: i:integer f:floating-point> <#floating-point-args> <function-name> [<alias> ...] 4 f 1 acos 5 f 1 acosh 6 f 1 asin 7 f 1 asinh 8 f 1 atan 9 f 2 atan2 10 f 1 atanh 11 f 1 cbrt 12 f 1 ceil [all …]
|
/titanic_53/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | sfdisc.c | 51 static int _dccaexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) in _dccaexcept() argument 53 static int _dccaexcept(f,type,val,disc) in _dccaexcept() 54 Sfio_t* f; in _dccaexcept() 66 static ssize_t _dccaread(Sfio_t* f, Void_t* buf, size_t size, Sfdisc_t* disc) in _dccaread() argument 68 static ssize_t _dccaread(f, buf, size, disc) in _dccaread() 69 Sfio_t* f; in _dccaread() 79 if(!f) /* bad stream */ 83 for(prev = f->disc; prev; prev = prev->disc) 107 Sfdisc_t* sfdisc(Sfio_t* f, Sfdisc_t* disc) in sfdisc() argument 109 Sfdisc_t* sfdisc(f,disc) in sfdisc() [all …]
|
H A D | sfnew.c | 42 reg Sfio_t* f; local 51 if((f = oldf) ) 53 { if(f != sfstdin && f != sfstdout && f != sfstderr) 54 f->mutex = NIL(Vtmutex_t*); 55 SFCLEAR(f, f->mutex); 58 else if(f->mode&SF_AVAIL) 60 if(!(f->flags&SF_STATIC) ) 62 sflags = f->flags; 67 sflags = f->flags; 69 if(((f->mode&SF_RDWR) != f->mode && _sfmode(f,0,0) < 0) || [all …]
|
H A D | sfpoll.c | 41 reg Sfio_t* f; local 52 #define RDREADY(f) (((f->mode&SF_READ) && f->next < f->endb) || \ argument 53 ((f->mode&SF_WRITE) && f->proc && f->proc->ndata > 0) ) 56 #define WRREADY(f) (!(f->mode&SF_WRITE) || f->next == f->data) argument 58 #define HASAUXFD(f) (f->proc && f->proc->file >= 0 && f->proc->file != f->file) argument 61 { f = fa[r]; 65 if(f->flags&SF_IOINTR) 68 m = f->mode&SF_RDWR; 69 if((int)f->mode != m && _sfmode(f,m,0) < 0) 72 if((f->flags&SF_READ) && RDREADY(f)) [all …]
|
H A D | sfwr.c | 34 static ssize_t sfoutput(Sfio_t* f, char* buf, size_t n) in sfoutput() argument 36 static ssize_t sfoutput(f,buf,n) in sfoutput() 37 Sfio_t* f; in sfoutput() 96 if((wr = syswritef(f->file,wbuf,buf-wbuf)) > 0) 98 f->bits &= ~SF_HOLE; 108 if(SFSK(f,(Sfoff_t)s,SEEK_CUR,NIL(Sfdisc_t*)) < 0) 113 f->bits |= SF_HOLE; 128 ssize_t sfwr(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) in sfwr() argument 130 ssize_t sfwr(f,buf,n,disc) in sfwr() 131 Sfio_t* f; in sfwr() [all …]
|
H A D | sfflsbuf.c | 31 int _sfflsbuf(Sfio_t* f, int c) in _sfflsbuf() argument 33 int _sfflsbuf(f,c) in _sfflsbuf() 34 Sfio_t* f; /* write out the buffered content of this stream */ in _sfflsbuf() 43 SFMTXDECL(f); /* declare a local stream variable for multithreading */ 45 SFMTXENTER(f,-1); 47 GETLOCAL(f,local); 49 for(written = 0;; f->mode &= ~SF_LOCK) 51 if(SFMODE(f,local) != SF_WRITE && _sfmode(f,SF_WRITE,local) < 0) 52 SFMTXRETURN(f, -1); 53 SFLOCK(f,local); [all …]
|
H A D | sfresize.c | 29 int sfresize(Sfio_t* f, Sfoff_t size) in sfresize() argument 31 int sfresize(f, size) in sfresize() 32 Sfio_t* f; in sfresize() 36 SFMTXDECL(f); 38 SFMTXENTER(f, -1); 40 if(size < 0 || f->extent < 0 || 41 (f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0) ) 42 SFMTXRETURN(f, -1); 44 SFLOCK(f,0); 46 if(f->flags&SF_STRING) [all …]
|
H A D | sfexcept.c | 29 int _sfexcept(Sfio_t* f, int type, ssize_t io, Sfdisc_t* disc) in _sfexcept() argument 31 int _sfexcept(f,type,io,disc) in _sfexcept() 32 Sfio_t* f; /* stream where the exception happened */ in _sfexcept() 41 SFMTXDECL(f); /* declare a local stream variable for multithreading */ 43 SFMTXENTER(f,-1); 45 GETLOCAL(f,local); 46 lock = f->mode&SF_LOCK; 49 f->flags |= io < 0 ? SF_ERROR : SF_EOF; 54 SFOPEN(f,0); 57 _Sfi = f->val = io; [all …]
|
H A D | sfcvt.c | 60 static int neg0ld(Sfdouble_t f) in neg0ld() argument 64 return !memcmp(&f, &z, sizeof(f)); in neg0ld() 67 static int neg0d(double f) in neg0d() argument 71 return !memcmp(&f, &z, sizeof(f)); in neg0d() 129 { Sfdouble_t f = *(Sfdouble_t*)vp; local 131 if(isnanl(f)) 134 if (signbit(f)) 136 if (f < 0) 142 if (n = isinf(f)) 145 if (signbit(f)) [all …]
|
H A D | sfungetc.c | 29 static int _uexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) in _uexcept() argument 31 static int _uexcept(f,type,val,disc) in _uexcept() 32 Sfio_t *f; in _uexcept() 46 (void)sfclose((*_Sfstack)(f,NIL(Sfio_t*))); 52 int sfungetc(Sfio_t* f, int c) in sfungetc() argument 54 int sfungetc(f,c) in sfungetc() 55 Sfio_t* f; /* push back one byte to this stream */ in sfungetc() 60 SFMTXDECL(f); 62 SFMTXENTER(f, -1); 64 if(c < 0 || (f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)) [all …]
|
H A D | sfsk.c | 29 Sfoff_t sfsk(Sfio_t* f, Sfoff_t addr, int type, Sfdisc_t* disc) in sfsk() argument 31 Sfoff_t sfsk(f,addr,type,disc) in sfsk() 32 Sfio_t* f; in sfsk() 42 SFMTXDECL(f); 44 SFMTXENTER(f, (Sfoff_t)(-1)); 46 GETLOCAL(f,local); 47 if(!local && !(f->bits&SF_DCDOWN)) 48 { if((mode = f->mode&SF_RDWR) != (int)f->mode && _sfmode(f,mode,0) < 0) 49 SFMTXRETURN(f, (Sfoff_t)(-1)); 50 if(SFSYNC(f) < 0) [all …]
|
H A D | sfgetr.c | 31 char* sfgetr(Sfio_t *f, int rc, int type) in sfgetr() argument 33 char* sfgetr(f,rc,type) in sfgetr() 34 Sfio_t* f; /* stream to read from */ in sfgetr() 43 SFMTXDECL(f); /* declare a local stream variable for multithreading */ 45 SFMTXENTER(f, NIL(char*)); 47 if(rc < 0 || (f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0) ) 48 SFMTXRETURN(f, NIL(char*)); 49 SFLOCK(f,0); 61 { if((f->flags&SF_STRING) && (un = f->endb - f->next)) 62 { us = f->next; [all …]
|
H A D | sfset.c | 30 int sfset(Sfio_t* f, int flags, int set) in sfset() argument 32 int sfset(f,flags,set) in sfset() 33 Sfio_t* f; in sfset() 39 SFMTXDECL(f); 41 SFMTXENTER(f,0); 44 SFMTXRETURN(f, (f->flags&SF_FLAGS)); 46 if((oflags = (f->mode&SF_RDWR)) != (int)f->mode) 48 if(set && (flags & (SF_LINE|SF_WCWIDTH)) && !(f->flags & (SF_LINE|SF_WCWIDTH))) 50 f->flags |= tflags; 53 rv = _sfmode(f,oflags,0); [all …]
|
H A D | sfputr.c | 29 ssize_t sfputr(Sfio_t* f, const char* s, int rc) in sfputr() argument 31 ssize_t sfputr(f,s,rc) in sfputr() 32 Sfio_t* f; /* write to this stream */ in sfputr() 40 SFMTXDECL(f); 42 SFMTXENTER(f,-1); 44 if(f->mode != SF_WRITE && _sfmode(f,SF_WRITE,0) < 0) 45 SFMTXRETURN(f, -1); 47 SFLOCK(f,0); 49 f->val = sn = -1; ss = (char*)s; 52 if((f->flags&SF_STRING) && f->next >= f->endb ) [all …]
|
H A D | sfpool.c | 99 static int _sfphead(Sfpool_t* p, Sfio_t* f, int n) in _sfphead() argument 101 static int _sfphead(p, f, n) in _sfphead() 103 Sfio_t* f; /* the stream */ 123 if(!(p->mode&SF_SHARE) || (head->mode&SF_READ) || (f->mode&SF_READ) ) 130 /**/ASSERT(f->next == f->data); 133 if((k = v - (f->endb-f->data)) <= 0) 149 if((head->data+k) != f->data ) 150 memcpy(f->data,(head->data+k),v); 151 f->next = f->data+v; 154 f->mode &= ~SF_POOL; [all …]
|
/titanic_53/usr/src/lib/libeti/form/common/ |
H A D | form.c | 77 insert(FIELD *f, FIELD *head) in insert() argument 86 frow = f->frow; in insert() 87 fcol = f->fcol; in insert() 98 f->snext = p; in insert() 99 f->sprev = p->sprev; in insert() 100 f->snext->sprev = f; in insert() 101 f->sprev->snext = f; in insert() 104 newhead = f; /* insert at head of list */ in insert() 106 newhead = f->sprev = f->snext = f; /* initialize new list */ in insert() 113 sort_form(FORM *f) in sort_form() argument [all …]
|
H A D | llib-lform | 102 free_field(f) 103 FIELD * f; 107 field_info(f, rows, cols, frow, fcol, nrow, nbuf) 108 FIELD *f; 118 dynamic_field_info(f, drows, dcols, max) 119 FIELD *f; 126 set_max_field(f, max) 127 FIELD *f; 132 move_field(f, frow, fcol) 133 FIELD *f; [all …]
|
/titanic_53/usr/src/contrib/ast/src/lib/libast/misc/ |
H A D | fts.c | 108 #define drop(p,f) (((f)->fts_namelen < MINNAME) ? ((f)->fts_link = (p)->free, (p)->free = (f)) : (f… argument 110 #define ACCESS(p,f) ((p)->cd==0?(f)->fts_name:(f)->fts_path) argument 111 #define PATH(f,p,l) ((!((f)->flags&FTS_SEEDOTDIR)&&(l)>0&&(p)[0]=='.'&&(p)[1]=='/')?((p)+2):(p)) argument 113 #define SKIPLINK(p,f) ((f)->fts_parent->nlink == 0) argument 116 #define ISTYPE(f,t) ((f)->type == (t)) argument 117 #define TYPE(f,t) ((f)->type = (t)) argument 118 #define SKIP(p,f) ((f)->fts_parent->must == 0 && (((f)->type == DT_UNKNOWN) ? SKIPLINK(p,f) : ((f)-… argument 124 #define ISTYPE(f,t) ((t)==DT_UNKNOWN) argument 125 #define TYPE(f,d) argument 126 #define SKIP(p,f) ((f)->fts_parent->must == 0 && SKIPLINK(p,f)) argument [all …]
|
/titanic_53/usr/src/cmd/dtrace/test/tst/common/tracemem/ |
H A D | tst.dynsize.d.out | 2 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 13 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 24 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 35 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 46 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 57 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 68 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 79 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 90 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 101 0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef [all …]
|
/titanic_53/usr/src/uts/common/fs/ufs/ |
H A D | ufs_panic.c | 747 real_panic(ufs_failure_t *f, const char *fmt, ...) in real_panic() argument 754 real_panic_v(f, fmt, adx); in real_panic() 761 real_panic_v(ufs_failure_t *f, const char *fmt, va_list adx) in real_panic_v() argument 768 if (f && f->uf_ufsvfsp) in real_panic_v() 769 TRANS_SETERROR(f->uf_ufsvfsp); in real_panic_v() 780 if (!f && fmt) in real_panic_v() 783 cmn_err(seriousness, f && f->uf_panic_str? f->uf_panic_str: in real_panic_v() 786 if (f) { in real_panic_v() 787 need_unlock = !MUTEX_HELD(&f->uf_mutex); in real_panic_v() 789 mutex_enter(&f->uf_mutex); in real_panic_v() [all …]
|
/titanic_53/usr/src/test/libc-tests/tests/stdio/ |
H A D | orientation_test.c | 61 FILE *f; in setup() local 64 if ((f = fopen(filename, "r+")) == NULL) in setup() 66 if ((r = fwide(f, 0)) != 0) in setup() 68 return (f); in setup() 85 f = setup(__LINE__); \ 87 if (!((r = fwide(f, 0)) op 0)) \ 89 fclose(f); \ 94 f = setup_std(std, __LINE__); \ 96 if (!((r = fwide(f, 0)) op 0)) \ 114 FILE *f; in main() local [all …]
|
H A D | memstream.c | 57 FILE *f = fmemopen(buf, size, mode); in fmemopen_badopen() local 59 if (f != NULL) { in fmemopen_badopen() 61 (void) fclose(f); in fmemopen_badopen() 138 FILE *f = open_memstream(bufp, sizep); in open_memstream_badopen() local 140 if (f != NULL) { in open_memstream_badopen() 142 (void) fclose(f); in open_memstream_badopen() 202 FILE *f = open_wmemstream(bufp, sizep); in open_wmemstream_badopen() local 204 if (f != NULL) { in open_wmemstream_badopen() 206 (void) fclose(f); in open_wmemstream_badopen() 264 fmemopen_fill_putc(FILE *f, size_t len, boolean_t buffer) in fmemopen_fill_putc() argument [all …]
|
/titanic_53/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | sfio.h | 337 #define _SF_(f) (f) argument 339 #define _SF_(f) ((Sfio_t*)(f)) 342 #define __sf_putd(f,v) (_sfputd(_SF_(f),(Sfdouble_t)(v))) argument 343 #define __sf_putl(f,v) (_sfputl(_SF_(f),(Sflong_t)(v))) argument 344 #define __sf_putu(f,v) (_sfputu(_SF_(f),(Sfulong_t)(v))) argument 345 #define __sf_putm(f,v,m) (_sfputm(_SF_(f),(Sfulong_t)(v),(Sfulong_t)(m))) argument 347 #define __sf_putc(f,c) (_SF_(f)->_next >= _SF_(f)->_endw ? \ argument 348 _sfflsbuf(_SF_(f),(int)((unsigned char)(c))) : \ 349 (int)(*_SF_(f)->_next++ = (unsigned char)(c)) ) 350 #define __sf_getc(f) (_SF_(f)->_next >= _SF_(f)->_endr ? _sffilbuf(_SF_(f),0) : \ argument [all …]
|
/titanic_53/usr/src/cmd/awk/ |
H A D | b.c | 131 fa *f; in mkdfa() local 141 if ((f = (fa *)calloc(1, sizeof (fa) + poscnt * sizeof (rrow))) == NULL) in mkdfa() 144 f->accept = poscnt-1; in mkdfa() 145 cfoll(f, p1); /* set up follow sets */ in mkdfa() 147 if ((f->posns[0] = in mkdfa() 148 (int *)calloc(1, *(f->re[0].lfollow) * sizeof (int))) == NULL) { in mkdfa() 151 if ((f->posns[1] = (int *)calloc(1, sizeof (int))) == NULL) in mkdfa() 153 *f->posns[1] = 0; in mkdfa() 154 f->initstat = makeinit(f, anchor); in mkdfa() 155 f->anchor = anchor; in mkdfa() [all …]
|