Searched refs:width (Results 1 - 7 of 7) sorted by relevance

/systemd/src/journal/
H A Djournal-qrcode.c32 static void print_border(FILE *output, unsigned width) { argument
39 for (x = 0; x < 4 + width + 4; x++)
98 print_border(output, qr->width);
100 for (y = 0; y < (unsigned) qr->width; y += 2) {
103 row1 = qr->data + qr->width * y;
104 row2 = row1 + qr->width;
110 for (x = 0; x < (unsigned) qr->width; x ++) {
114 b = (y+1) < (unsigned) qr->width ? (row2[x] & 1) : false;
131 print_border(output, qr->width);
/systemd/src/basic/
H A Dhexdecoct.h53 int margin, int width);
H A Dhexdecoct.c557 int width) {
568 lines = (len + width - 1) / width;
571 t = realloc(*prefix, plen + 1 + slen + (indent + width + 1) * lines);
578 int act = MIN(width, avail);
585 memcpy(s, x + width * line, act);
598 int indent, int width) {
599 if (plen > width / 2 || plen + indent > width)
601 return base64_append_width(prefix, plen, "\n", indent, p, l, width
554 base64_append_width(char **prefix, int plen, const char *sep, int indent, const void *p, size_t l, int width) argument
596 base64_append(char **prefix, int plen, const void *p, size_t l, int indent, int width) argument
[all...]
/systemd/src/udev/
H A Dudev-builtin-input_id.c53 char width[DECIMAL_STR_MAX(int)], height[DECIMAL_STR_MAX(int)]; local
68 xsprintf(width, "%d", abs_size_mm(&xabsinfo));
71 udev_builtin_add_property(dev, test, "ID_INPUT_WIDTH_MM", width);
/systemd/src/analyze/
H A Danalyze.c53 svg(" <rect class=\"%s\" x=\"%.03f\" y=\"%.03f\" width=\"%.03f\" height=\"%.03f\" />\n", \
526 svg("<rect class=\"box\" x=\"0\" y=\"0\" width=\"%.03f\" height=\"%.03f\" />\n",
550 double width; local
572 width = SCALE_X * (boot->firmware_time + boot->finish_time);
573 if (width < 800.0)
574 width = 800.0;
580 if (width < 1000.0)
581 width = 1000.0;
598 * increase the svg width so it fits on the right.
599 * TODO: calculate the text width mor
[all...]
/systemd/src/firstboot/
H A Dfirstboot.c106 static int show_menu(char **x, unsigned n_columns, unsigned width, unsigned percentage) { argument
133 e = ellipsize(x[j * per_column + i], width, percentage);
137 printf("%4u) %-*s", j * per_column + i + 1, width, e);
/systemd/src/core/
H A Dmanager.c127 static void draw_cylon(char buffer[], size_t buflen, unsigned width, unsigned pos) { argument
130 assert(buflen >= CYLON_BUFFER_EXTRA + width + 1);
131 assert(pos <= width+1); /* 0 or width+1 mean that the center light is behind the corner */
140 if (pos > 0 && pos <= width) {
147 if (pos < width) {
150 if (pos < width-1)
151 p = mempset(p, ' ', width-1-pos);

Completed in 36 milliseconds