Lines Matching refs:ret
83 int ret;
86 ret = _db_open(&db, fr, _CITRUS_ESDB_MAGIC, &_db_hash_std, NULL);
87 if (ret)
91 ret = _db_lookup32_by_s(db, _CITRUS_ESDB_SYM_VERSION, &version, NULL);
92 if (ret)
100 ret = EFTYPE;
105 ret = _db_lookupstr_by_s(db, _CITRUS_ESDB_SYM_ENCODING, &str, NULL);
106 if (ret)
110 ret = errno;
116 ret = _db_lookupstr_by_s(db, _CITRUS_ESDB_SYM_VARIABLE, &str, NULL);
117 if (ret == 0) {
121 ret = errno;
124 } else if (ret != ENOENT)
128 ret = _db_lookup32_by_s(db, _CITRUS_ESDB_SYM_NUM_CHARSETS,
130 if (ret)
135 ret = _db_lookup32_by_s(db, _CITRUS_ESDB_SYM_INVALID, &tmp, NULL);
136 if (ret == 0) {
139 } else if (ret == ENOENT)
147 ret = errno;
153 ret = _db_lookup32_by_s(db, buf, &csid, NULL);
154 if (ret)
160 ret = _db_lookupstr_by_s(db, buf, &str, NULL);
161 if (ret)
165 ret = errno;
183 if (ret == ENOENT)
184 ret = EFTYPE;
186 return (ret);
199 int ret;
213 ret = _map_file(&fr, path);
214 if (ret)
215 return (ret);
217 ret = conv_esdb(db, &fr);
221 return (ret);
266 int ret;
268 ret = _lookup_seq_open(&cla, _PATH_ESDB "/" ESDB_ALIAS,
270 if (ret)
273 ret = _lookup_seq_open(&cld, _PATH_ESDB "/" ESDB_DIR,
275 if (ret)
288 ret = errno;
293 while ((ret = _lookup_seq_next(cla, &key, &data)) == 0) {
303 ret = errno;
308 if (ret != ENOENT)
311 while ((ret = _lookup_seq_next(cld, &key, &data)) == 0) {
333 ret = _lookup_seq_lookup(cla, buf, NULL);
334 if (ret) {
335 if (ret != ENOENT)
340 ret = errno;
346 if (ret != ENOENT)
349 ret = 0;
354 ret = ENOMEM;
361 if (ret)
367 return (ret);