Lines Matching defs:ident
26 #pragma ident "%Z%%M% %I% %E% SMI"
81 fstyp_module_t *ident; /* identified module */
90 static int fstyp_ident_all(struct fstyp_handle *h, const char **ident);
92 const char **ident);
161 * Identify the filesystem, return result in 'ident'.
165 fstyp_ident(struct fstyp_handle *h, const char *fsname, const char **ident)
168 return (fstyp_ident_all(h, ident));
170 return (fstyp_ident_one(h, fsname, ident));
178 fstyp_ident_all(struct fstyp_handle *h, const char **ident)
182 if (h->ident != NULL) {
183 *ident = &h->ident->fsname[0];
190 if (h->ident != NULL) {
191 h->ident = NULL;
192 *ident = NULL;
195 h->ident = mp;
196 *ident = &mp->fsname[0];
208 fstyp_ident_one(struct fstyp_handle *h, const char *fsname, const char **ident)
213 if (h->ident != NULL) {
214 if (strcmp(h->ident->fsname, fsname) == 0) {
215 *ident = (char *)fsname;
236 h->ident = mp;
237 *ident = (char *)fsname;
249 fstyp_module_t *mp = h->ident;
264 fstyp_module_t *mp = h->ident;
414 if (h->ident == mp) {
415 h->ident = NULL;
471 h->modules = h->modules_tail = h->ident = NULL;