Searched defs:table (Results 1 - 25 of 27) sorted by relevance

12

/systemd/src/basic/
H A Dstring-table.c20 #include "string-table.h"
23 ssize_t string_table_lookup(const char * const *table, size_t len, const char *key) { argument
30 if (streq_ptr(table[i], key))
H A Dmount-util.c490 static const char table[] = local
509 return nulstr_contains(table, fstype);
H A Dparse-util.c122 struct table { struct
127 static const struct table iec[] = {
138 static const struct table si[] = {
149 const struct table *table; local
159 table = si;
162 table = iec;
206 if (startswith(e, table[i].suffix))
212 if (l + (frac > 0) > ULLONG_MAX / table[i].factor)
215 tmp = l * table[
279 } table[] = { local
[all...]
H A Dhexdecoct.c54 static const char table[16] = "0123456789abcdef"; local
56 return table[x & 15];
135 static const char table[32] = "0123456789" local
138 return table[x & 31];
480 static const char table[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" local
483 return table[x & 63];
H A Dunit-name.c32 #include "string-table.h"
608 static const char *const table[_UNIT_TYPE_MAX] = { local
628 return table[t];
H A Dtime-util.c304 } table[] = { local
337 for (i = 0; i < ELEMENTSOF(table); i++) {
349 if (t < table[i].usec)
355 a = t / table[i].usec;
356 b = t % table[i].usec;
364 for (cc = table[i].usec; cc > 1; cc /= 10)
379 table[i].suffix);
392 table[i].suffix);
681 } table[] = { local
778 for (i = 0; i < ELEMENTSOF(table);
813 } table[] = { local
[all...]
/systemd/src/shared/
H A Dinstall-printf.c112 const Specifier table[] = { local
132 return specifier_printf(format, table, i, ret);
H A Dbase-filesystem.c46 static const BaseFilesystem table[] = { variable
69 for (i = 0; i < ELEMENTSOF(table); i ++) {
70 if (faccessat(fd, table[i].dir, F_OK, AT_SYMLINK_NOFOLLOW) >= 0)
73 if (table[i].target) {
77 NULSTR_FOREACH(s, table[i].target) {
82 if (table[i].exists) {
85 p = strjoin(s, "/", table[i].exists, NULL);
100 r = symlinkat(target, fd, table[i].dir);
102 return log_error_errno(errno, "Failed to create symlink at %s/%s: %m", root, table[i].dir);
105 if (fchownat(fd, table[
[all...]
H A Dspecifier.c41 int specifier_printf(const char *text, const Specifier table[], void *userdata, char **_ret) { argument
49 assert(table);
66 for (i = table; i->specifier; i++)
H A Dconf-parser.c47 const void *table,
57 assert(table);
63 for (t = table; t->lvalue; t++) {
81 const void *table,
89 ConfigPerfItemLookup lookup = (ConfigPerfItemLookup) table;
92 assert(table);
125 const void *table,
144 r = lookup(table, section, lvalue, &func, &ltype, &data, userdata);
169 const void *table,
214 return config_parse(unit, fn, NULL, sections, lookup, table, relaxe
46 config_item_table_lookup( const void *table, const char *section, const char *lvalue, ConfigParserCallback *func, int *ltype, void **data, void *userdata) argument
80 config_item_perf_lookup( const void *table, const char *section, const char *lvalue, ConfigParserCallback *func, int *ltype, void **data, void *userdata) argument
121 next_assignment(const char *unit, const char *filename, unsigned line, ConfigItemLookup lookup, const void *table, const char *section, unsigned section_line, const char *lvalue, const char *rvalue, bool relaxed, void *userdata) argument
164 parse_line(const char* unit, const char *filename, unsigned line, const char *sections, ConfigItemLookup lookup, const void *table, bool relaxed, bool allow_include, char **section, unsigned *section_line, bool *section_ignored, char *l, void *userdata) argument
283 config_parse(const char *unit, const char *filename, FILE *f, const char *sections, ConfigItemLookup lookup, const void *table, bool relaxed, bool allow_include, bool warn, void *userdata) argument
395 config_parse_many(const char *conf_file, const char *conf_file_dirs, const char *sections, ConfigItemLookup lookup, const void *table, bool relaxed, void *userdata) argument
[all...]
/systemd/src/network/
H A Dnetworkd-route.h40 unsigned char table; member in struct:Route
61 int route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
62 int route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
63 int route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
H A Dnetworkd-route.c41 route->table = RT_TABLE_DEFAULT;
119 (dst_prefix,dst_prefixlen,tos,priority,table) */
124 siphash24_compress(&route->table, sizeof(route->table), state);
159 if (a->table < b->table)
161 if (a->table > b->table)
182 unsigned char table,
189 .table
176 route_get(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
213 route_add_internal(Link *link, Set **routes, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
256 route_add_foreign(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
266 route_add(Link *link, int family, union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret) argument
[all...]
H A Dnetworkd-manager.c287 unsigned char protocol, scope, tos, table; local
432 r = sd_rtnl_message_route_get_table(message, &table);
434 log_link_warning_errno(link, r, "rtnl: received route with invalid table, ignoring: %m");
444 route_get(link, family, &dst, dst_prefixlen, tos, priority, table, &route);
450 r = route_add_foreign(link, family, &dst, dst_prefixlen, tos, priority, table, &route);
/systemd/src/update-utmp/
H A Dupdate-utmp.c75 } table[] = { local
92 for (i = 0; i < ELEMENTSOF(table); i++) {
95 path = unit_dbus_path_from_name(table[i].special);
111 return table[i].runlevel;
/systemd/src/core/
H A Dunit-printf.c211 const Specifier table[] = { local
223 return specifier_printf(format, table, u, ret);
246 const Specifier table[] = { local
276 return specifier_printf(format, table, u, ret);
H A Dload-fragment.c3826 } table[] = { local
3939 for (j = 0; j < ELEMENTSOF(table); j++)
3940 if (p->parse == table[j].callback) {
3941 rvalue = table[j].rvalue;
H A Dmain.c1896 static const char * const table[_MANAGER_EXIT_CODE_MAX] = { local
1904 assert_se(shutdown_verb = table[m->exit_code]);
H A Dservice.c48 #include "string-table.h"
874 const UnitActiveState *table; local
878 table = s->type == SERVICE_IDLE ? state_translation_table_idle : state_translation_table;
957 unit_notify(UNIT(s), table[old_state], table[state], s->reload_result == SERVICE_SUCCESS); local
2372 const UnitActiveState *table; local
2376 table = SERVICE(u)->type == SERVICE_IDLE ? state_translation_table_idle : state_translation_table;
2378 return table[SERVICE(u)->state];
/systemd/src/dbus1-generator/
H A Ddbus1-generator.c154 const ConfigTableItem table[] = { local
171 config_item_table_lookup, table,
/systemd/src/initctl/
H A Dinitctl.c73 } table[] = { local
89 for (i = 0; i < ELEMENTSOF(table); i++)
90 if (table[i].runlevel == runlevel) {
91 *isolate = table[i].isolate;
94 return table[i].special;
/systemd/src/libsystemd/sd-netlink/
H A Drtnl-message.c174 int sd_rtnl_message_route_get_table(sd_netlink_message *m, unsigned char *table) { argument
180 assert_return(table, -EINVAL);
184 *table = rtm->rtm_table;
/systemd/src/test/
H A Dtest-strv.c30 static const Specifier table[] = { local
43 r = specifier_printf("xxx a=%a b=%b yyy", table, NULL, &w);
51 r = specifier_printf("machine=%m, boot=%B, host=%H, version=%v", table, NULL, &w);
/systemd/src/firstboot/
H A Dfirstboot.c510 static const char table[] = local
579 assert_cc(sizeof(table) == 64 + 1);
582 j[i] = table[raw[i] & 63];
/systemd/src/sysv-generator/
H A Dsysv-generator.c275 static const char * const table[] = { local
297 for (i = 0; i < ELEMENTSOF(table); i += 2) {
298 if (!streq(table[i], n))
301 if (!table[i+1])
304 m = strdup(table[i+1]);
/systemd/src/journal/
H A Djournal-file.c484 static const uint64_t table[] = { local
494 if (o->object.type >= ELEMENTSOF(table) || table[o->object.type] <= 0)
497 return table[o->object.type];
630 /* We estimate that we need 1 hash table entry per 768 bytes
632 beyond 75% fill level. Calculate the hash table size for
639 log_debug("Reserving %"PRIu64" entries in hash table.", s / sizeof(HashItem));
664 /* We use a fixed size hash table for the fields as this
810 /* Only entry in the hash table is easy */
843 /* If the field hash table i
[all...]

Completed in 166 milliseconds

12