/systemd/src/test/ |
H A D | test-uid-range.c | 35 assert_se(p[0].nr == 500); 55 assert_se(p[0].nr == 501); 60 assert_se(p[0].nr == 11); 62 assert_se(p[1].nr == 501); 67 assert_se(p[0].nr == 11); 69 assert_se(p[1].nr == 11); 71 assert_se(p[2].nr == 501); 76 assert_se(p[0].nr == 1981); 81 assert_se(p[0].nr == 1981); 83 assert_se(p[1].nr [all...] |
/systemd/src/shared/ |
H A D | uid-range.c | 28 static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) { argument 31 return range->start <= start + nr && 32 range->start + range->nr >= start; 45 if (uid_range_intersect(x, y->start, y->nr)) { 49 end = MAX(x->start + x->nr, y->start + y->nr); 52 x->nr = end - begin; 73 if (x->nr < y->nr) 75 if (x->nr > 81 uid_range_add(UidRange **p, unsigned *n, uid_t start, uid_t nr) argument 129 uid_t start, nr; local [all...] |
H A D | uid-range.h | 26 uid_t start, nr; member in struct:UidRange 29 int uid_range_add(UidRange **p, unsigned *n, uid_t start, uid_t nr);
|
H A D | machine-pool.c | 197 int r, nr = -1; local 256 nr = ioctl(control, LOOP_CTL_GET_FREE); 257 if (nr < 0) 260 if (asprintf(&loopdev, "/dev/loop%i", nr) < 0) { 351 if (control >= 0 && nr >= 0) 352 (void) ioctl(control, LOOP_CTL_REMOVE, nr);
|
H A D | efivars.h | 49 int efi_get_boot_option(uint16_t nr, char **title, sd_id128_t *part_uuid, char **path, bool *active); 97 static inline int efi_get_boot_option(uint16_t nr, char **title, sd_id128_t *part_uuid, char **path, bool *active) { argument
|
/systemd/src/resolve/ |
H A D | resolved-etc-hosts.c | 186 static int parse_line(Manager *m, unsigned nr, const char *line) { argument 198 return log_error_errno(r, "Couldn't extract address, in line /etc/hosts:%u.", nr); 200 log_error("Premature end of line, in line /etc/hosts:%u.", nr); 206 return log_error_errno(r, "Address '%s' is invalid, in line /etc/hosts:%u.", address, nr); 213 return log_error_errno(r, "Couldn't extract host name, in line /etc/hosts:%u.", nr); 219 return log_error_errno(r, "Hostname %s is not valid, ignoring, in line /etc/hosts:%u.", name, nr); 239 log_error("Line is missing any host names, in line /etc/hosts:%u.", nr); 257 unsigned nr = 0; local 304 nr ++; 312 r = parse_line(m, nr, [all...] |
H A D | resolved-dns-transaction.c | 2912 DnssecNsecResult nr; local 2916 r = dnssec_nsec_test(t->answer, t->key, &nr, &authenticated, &t->answer_nsec_ttl); 2920 switch (nr) {
|
/systemd/src/gpt-auto-generator/ |
H A D | gpt-auto-generator.c | 690 int nr; local 714 nr = blkid_partition_get_partno(pp); 715 if (nr < 0) 744 if (boot && nr >= boot_nr) 751 boot_nr = nr; 763 if (home && nr >= home_nr) 766 home_nr = nr; 779 if (srv && nr >= srv_nr) 782 srv_nr = nr;
|
/systemd/src/nspawn/ |
H A D | nspawn.c | 1687 int r, nr; local 1726 nr = ioctl(control, LOOP_CTL_GET_FREE); 1727 if (nr < 0) 1730 if (asprintf(&loopdev, "/dev/loop%i", nr) < 0) 1749 *loop_nr = nr; 1941 int nr; local 1969 nr = blkid_partition_get_partno(pp); 1970 if (nr < 0) 1989 if (home && nr >= home_nr) 1992 home_nr = nr; 2226 loop_remove(int nr, int *image_fd) argument [all...] |
/systemd/src/machine/ |
H A D | machine.c | 315 size_t allocated = 0, nr = 0; local 337 if (!GREEDY_REALLOC(ni, allocated, nr+1)) { 342 ni[nr++] = ifi; 347 m->n_netif = nr;
|
/systemd/src/basic/ |
H A D | calendarspec.c | 320 const int nr; member in struct:__anon7 365 c->weekdays_bits |= 1 << day_nr[i].nr; 370 if (l > day_nr[i].nr) 373 for (j = l + 1; j < day_nr[i].nr; j++) 401 l = day_nr[i].nr;
|
H A D | time-util.c | 445 const int nr; member in struct:__anon27 569 weekday = day_nr[i].nr;
|
/systemd/src/libsystemd/sd-login/ |
H A D | sd-login.c | 908 size_t l, allocated = 0, nr = 0; local 936 if (!GREEDY_REALLOC(ni, allocated, nr+1)) { 941 ni[nr++] = ifi; 945 return nr;
|
/systemd/src/core/ |
H A D | socket.c | 686 static int instance_from_socket(int fd, unsigned nr, char **instance) { argument 711 nr, 734 nr, 745 nr, 764 nr, ucred.pid, ucred.uid) < 0) 772 nr) < 0)
|