Lines Matching refs:flags
25 ** The argument flags defines the type of stream and the scheme
32 Sfio_t* sfnew(Sfio_t* oldf, Void_t* buf, size_t size, int file, int flags)
34 Sfio_t* sfnew(oldf,buf,size,file,flags)
39 int flags; /* type of file stream */
47 if(!(flags&SF_RDWR))
52 { if(flags&SF_EOF)
60 if(!(f->flags&SF_STATIC) )
62 sflags = f->flags;
67 sflags = f->flags;
73 if(f->data && ((flags&SF_STRING) || size != (size_t)SF_UNBOUND) )
85 if(!(flags&SF_STRING) && file >= 0 && file <= 2)
89 { sflags = f->flags;
108 f->mode = (flags&SF_READ) ? SF_READ : SF_WRITE;
109 f->flags = (flags&SF_FLAGS) | (sflags&(SF_MALLOC|SF_STATIC));
110 f->bits = (flags&SF_RDWR) == SF_RDWR ? SF_BOTH : 0;
125 if(f->flags&SF_STRING)