Searched refs:pos (Results 1 - 22 of 22) sorted by relevance

/systemd/src/journal-remote/
H A Djournal-upload-journal.c35 size_t pos = 0; local
49 r = snprintf(buf + pos, size - pos,
51 if (pos + r > size)
53 return pos;
57 if (pos + r == size) {
63 pos += r;
73 r = snprintf(buf + pos, size - pos,
75 if (r + pos > siz
[all...]
H A Djournal-gatewayd.c146 uint64_t pos,
157 assert(pos >= m->delta);
159 pos -= m->delta;
161 while (pos >= m->size) {
211 pos -= m->size;
240 if (fseeko(m->tmp, pos, SEEK_SET) < 0) {
245 n = m->size - pos;
536 uint64_t pos,
547 assert(pos >= m->delta);
549 pos
144 request_reader_entries( void *cls, uint64_t pos, char *buf, size_t max) argument
534 request_reader_fields( void *cls, uint64_t pos, char *buf, size_t max) argument
[all...]
/systemd/src/libsystemd-network/
H A Dtest-dhcp-option.c22 int pos; member in struct:option_desc
163 while (desc->pos >= 0 || desc->filepos >= 0 || desc->snamepos >= 0) {
165 if (desc->pos >= 0) {
168 descpos = &desc->pos;
220 if (desc->pos != -1 && desc->pos == desc->len)
221 desc->pos = -1;
256 desc->pos = 0;
267 assert_se(desc->pos == -1 && desc->filepos == -1 && desc->snamepos == -1);
288 size_t offset = 0, len, pos; local
[all...]
H A Ddhcp6-option.c342 size_t pos = 0, idx = 0; local
349 while (pos < optlen) {
357 c = optval[pos++];
366 label = (const char *)&optval[pos];
367 pos += c;
368 if (pos > optlen)
H A Dtest-dhcp6-client.c105 size_t zero = 0, pos = 3; local
123 pos += 4 + optlen;
124 assert_se(buf == &packet[pos]);
127 assert_se(buflen + pos == sizeof(packet));
131 assert_se(out == &result[pos]);
136 pos += 4 + optlen;
137 assert_se(buf == &packet[pos]);
140 assert_se(buflen + pos == sizeof(packet));
144 assert_se(out == &result[pos]);
/systemd/src/udev/
H A Dudev-builtin.c109 char *pos; local
112 pos = strchr(name, ' ');
113 if (pos)
114 pos[0] = '\0';
H A Dudevadm-trigger.c57 char *pos; local
60 pos = strchr(buf, '=');
61 if (pos != NULL) {
62 pos[0] = 0;
63 pos++;
65 *val = pos;
H A Dudev-rules.c655 char *pos; local
657 pos = strchr(line, '\n');
658 if (pos != NULL) {
659 pos[0] = '\0';
660 pos = &pos[1];
663 line = pos;
693 char *pos; local
699 pos = strstr(dirname, "/*/");
700 if (pos
817 char *pos; local
1487 const char *pos; local
1727 char *pos; local
2180 char *pos; local
2447 char *pos, *next; local
[all...]
H A Dudev-event.c547 char *pos; local
550 pos = buf;
551 while ((line = strsep(&pos, "\n"))) {
552 if (pos != NULL || line[0] != '\0')
689 char *pos; local
696 pos = cmd;
697 while (pos != NULL && pos[0] != '\0') {
698 if (pos[0] == '\'') {
700 pos
[all...]
H A Dudev-builtin-usb_id.c156 size_t pos = 0; local
182 while (pos + sizeof(struct usb_interface_descriptor) < (size_t) size &&
188 desc = (struct usb_interface_descriptor *) &buf[pos];
191 pos += desc->bLength;
H A Dudevadm-hwdb.c348 int64_t pos; local
379 pos = ftello(t.f);
380 h.nodes_len = htole64(pos - sizeof(struct trie_header_f));
467 char *pos; local
474 pos = strchr(line, '#');
475 if (pos)
476 pos[0] = '\0';
H A Dudev-builtin-path_id.c360 char *pos; local
397 pos = strrchr(base, '/');
398 if (pos == NULL) {
402 pos[0] = '\0';
/systemd/src/login/
H A Dlogind-seat.c485 unsigned int pos = session->position; local
489 if (pos == 0)
492 if (pos < s->position_count && s->positions[pos] == session) {
493 s->positions[pos] = NULL;
499 if (iter->position == pos && session_get_state(iter) != SESSION_CLOSING) {
500 s->positions[pos] = iter;
507 void seat_claim_position(Seat *s, Session *session, unsigned int pos) { argument
510 pos = session->vtnr;
512 if (!GREEDY_REALLOC0(s->positions, s->position_count, pos
523 unsigned int pos; local
[all...]
H A Dlogind-seat.h66 void seat_claim_position(Seat *s, Session *session, unsigned int pos);
/systemd/src/hwdb/
H A Dhwdb.c367 int64_t pos; local
398 pos = ftello(t.f);
399 h.nodes_len = htole64(pos - sizeof(struct trie_header_f));
484 char *pos; local
491 pos = strchr(line, '#');
492 if (pos)
493 pos[0] = '\0';
/systemd/src/shared/
H A Dlogs-show.c130 const char *pos, *end; local
149 for (pos = message;
150 pos < message + message_len;
151 pos = end + 1, line++) {
155 for (end = pos; end < message + message_len && *end != '\n'; end++)
157 len = end - pos;
173 color_on, len, pos, color_off);
184 color_on, len, pos, color_off);
188 e = ellipsize_mem(pos, len, n_columns - prefix,
193 color_on, len, pos, color_of
[all...]
/systemd/src/libsystemd/sd-device/
H A Dsd-device.c710 char *pos; local
712 pos = strrchr(subdir, '/');
713 if (!pos || pos < subdir + 2)
716 *pos = '\0';
968 const char *pos; local
971 pos = strrchr(device->devpath, '/');
972 if (!pos)
974 pos ++;
977 if (*pos
[all...]
/systemd/src/core/
H A Dmain.c2067 unsigned pos = 5; local
2070 assert(command_line[pos] == NULL);
2080 command_line[pos++] = "kmsg";
2084 command_line[pos++] = "null";
2089 command_line[pos++] = "console";
2094 command_line[pos++] = "--log-color";
2097 command_line[pos++] = "--log-location";
2100 command_line[pos++] = "--exit-code";
2101 command_line[pos++] = exit_code;
2105 assert(pos < ELEMENTSO
[all...]
H A Dmanager.c127 static void draw_cylon(char buffer[], size_t buflen, unsigned width, unsigned pos) { argument
131 assert(pos <= width+1); /* 0 or width+1 mean that the center light is behind the corner */
133 if (pos > 1) {
134 if (pos > 2)
135 p = mempset(p, ' ', pos-2);
140 if (pos > 0 && pos <= width) {
147 if (pos < width) {
150 if (pos < width-1)
151 p = mempset(p, ' ', width-1-pos);
[all...]
/systemd/src/boot/efi/
H A Dboot.c912 static CHAR8 *line_get_key_value(CHAR8 *content, CHAR8 *sep, UINTN *pos, CHAR8 **key_ret, CHAR8 **value_ret) { argument
918 line = content + *pos;
926 /* move pos to next line */
927 *pos += linelen;
928 if (content[*pos])
929 (*pos)++;
976 UINTN pos = 0; local
980 while ((line = line_get_key_value(content, (CHAR8 *)" \t", &pos, &key, &value))) {
1011 UINTN pos = 0; local
1019 while ((line = line_get_key_value(content, (CHAR8 *)" \t", &pos,
1517 UINTN pos = 0; local
[all...]
/systemd/src/tmpfiles/
H A Dtmpfiles.c1816 int r, pos; local
1852 for (pos = 1; action[pos]; pos++) {
1853 if (action[pos] == '!' && !boot)
1855 else if (action[pos] == '+' && !force)
/systemd/src/resolve/
H A Dresolved-dns-packet.c1747 size_t pos; local
1749 r = dns_packet_read_uint8(p, &t, &pos);
1797 dns_packet_rewind(p, pos);

Completed in 4148 milliseconds