Lines Matching refs:opaque
22 * opaque method
29 "[+DESCRIPTION?The \bdss\b opaque method handles anonymous fixed record "
58 register Opaque_t* opaque = (Opaque_t*)file->dss->meth->data;
61 if (size < opaque->magic.size)
63 if (opaque->magic.magic)
65 if (magic->magic != opaque->magic.magic)
67 if (magic->size != opaque->magic.size)
69 if (!streq(magic->name, opaque->magic.name))
71 if (!streq(magic->type, opaque->magic.type))
73 if (opaque->magic.version && magic->version > opaque->magic.version)
75 file->skip = opaque->magic.size;
81 * opaque fopenf
98 * opaque fclosef
110 * opaque readf
126 * opaque writef
137 "opaque",
138 "opaque format (2010-05-28)",
158 register Opaque_t* opaque;
161 if (!(opaque = newof(0, Opaque_t, 1, 0)))
167 opaque->meth = *meth;
168 opaque->meth.data = opaque;
179 opaque->magic.magic = MAGICID;
180 strncopy(opaque->magic.name, opt_info.arg, sizeof(opaque->magic.name));
183 opaque->magic.size = opt_info.num;
186 opaque->magic.magic = MAGICID;
187 strncopy(opaque->magic.type, opt_info.arg, sizeof(opaque->magic.type));
190 opaque->magic.magic = MAGICID;
191 opaque->magic.version = opt_info.num;
205 if (!opaque->magic.size)
211 dtinsert(opaque->meth.formats, &opaque_format);
212 return &opaque->meth;
214 free(opaque);
220 "opaque",
221 "opaque fixed record data with optional magic",
228 "opaque",
229 "opaque method"
230 "[-1ls5Pp0?\n@(#)$Id: dss opaque method (AT&T Research) 2002-11-22 $\n]"