Lines Matching +full:resource +full:- +full:files
1 // SPDX-License-Identifier: GPL-2.0-only
22 * struct errormap - map string errors from Plan 9 to Linux numeric ids
26 * @list: hash-table list for string lookup
39 /* FixMe - reduce to a reasonable size */
51 {"Resource temporarily unavailable", EAGAIN},
56 {"Device or resource busy", EBUSY},
58 {"Invalid cross-device link", EXDEV},
63 {"Too many open files in system", ENFILE},
64 {"Too many open files", EMFILE},
69 {"Read-only file system", EROFS},
74 {"Resource deadlock avoided", EDEADLK},
93 {"Socket operation on non-socket", ENOTSOCK},
125 {"wstat can't convert between files and directories", EPERM},
168 {NULL, -1}
172 * p9_error_init - preload mappings into hash list
186 for (c = errmap; c->name; c++) { in p9_error_init()
187 c->namelen = strlen(c->name); in p9_error_init()
188 bucket = jhash(c->name, c->namelen, 0) % ERRHASHSZ; in p9_error_init()
189 INIT_HLIST_NODE(&c->list); in p9_error_init()
190 hlist_add_head(&c->list, &hash_errmap[bucket]); in p9_error_init()
198 * p9_errstr2errno - convert error string to error number
214 if (c->namelen == len && !memcmp(c->name, errstr, len)) { in p9_errstr2errno()
215 errno = c->val; in p9_errstr2errno()
228 return -errno; in p9_errstr2errno()