/systemd/src/libsystemd/sd-resolve/ |
H A D | test-resolve.c | 58 static int getnameinfo_handler(sd_resolve_query *q, int ret, const char *host, const char *serv, void *userdata) { argument 66 printf("Host: %s -- Serv: %s\n", strna(host), strna(serv));
|
H A D | sd-resolve.c | 104 char *serv, *host; member in struct:sd_resolve_query 286 const char *host, 306 hl = host ? strlen(host)+1 : 0; 313 iov[1] = (struct iovec) { .iov_base = (void*) host, .iov_len = hl }; 821 q->host = strndup((const char*) ni_resp + sizeof(NameInfoResponse), ni_resp->hostlen-1); 822 if (!q->host) { 1074 return q->getnameinfo_handler(q, q->ret, q->host, q->serv, q->userdata); 1131 free(q->host); 282 send_nameinfo_reply( int out_fd, unsigned id, int ret, const char *host, const char *serv, int _errno, int _h_errno) argument
|
/systemd/src/shared/ |
H A D | initreq.h | 50 char host[INITRQ_HLEN]; /* Hostname */ member in struct:init_request_bsd
|
H A D | bus-util.c | 1238 int bus_connect_transport(BusTransport transport, const char *host, bool user, sd_bus **bus) { argument 1245 assert_return((transport == BUS_TRANSPORT_LOCAL) == !host, -EINVAL); 1259 r = sd_bus_open_system_remote(bus, host); 1263 r = sd_bus_open_system_machine(bus, host); 1273 int bus_connect_transport_systemd(BusTransport transport, const char *host, bool user, sd_bus **bus) { argument 1280 assert_return((transport == BUS_TRANSPORT_LOCAL) == !host, -EINVAL); 1294 r = sd_bus_open_system_remote(bus, host); 1298 r = sd_bus_open_system_machine(bus, host);
|
/systemd/src/nss-myhostname/ |
H A D | nss-myhostname.c | 99 /* We respond to our local host name, our our hostname suffixed with a single dot. */ 319 struct hostent *host, 334 assert(host); 391 host, 401 struct hostent *host, 418 assert(host); 507 host, 316 _nss_myhostname_gethostbyname3_r( const char *name, int af, struct hostent *host, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp, char **canonp) argument 398 _nss_myhostname_gethostbyaddr2_r( const void* addr, socklen_t len, int af, struct hostent *host, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp) argument
|
/systemd/src/test/ |
H A D | test-unit-file.c | 585 _cleanup_free_ char *mid = NULL, *bid = NULL, *host = NULL, *uid = NULL, *user = NULL; local 589 assert_se((host = gethostname_malloc())); 620 expect(i, "%H", host); 633 expect(i3, "%H", host);
|
H A D | test-unit-name.c | 202 _cleanup_free_ char *mid = NULL, *bid = NULL, *host = NULL, *uid = NULL, *user = NULL, *shell = NULL, *home = NULL; local 206 assert_se(host = gethostname_malloc()); 254 expect(u, "%H", host); 274 expect(u2, "%H", host);
|
/systemd/src/basic/ |
H A D | socket-util.c | 655 char host[NI_MAXHOST], *ret; local 659 r = getnameinfo(&sa->sa, salen, host, sizeof(host), NULL, 0, 670 ret = strdup(host);
|
/systemd/src/journal-remote/ |
H A D | journal-upload.c | 427 const char *host, *proto = ""; local 435 if (!(host = startswith(url, "http://")) && !(host = startswith(url, "https://"))) { 436 host = url; 440 if (strchr(host, ':'))
|
H A D | journal-remote.c | 169 static int open_output(Writer *w, const char* host) { argument 182 assert(host); 184 name = filename_escape(host); 235 static int get_writer(RemoteServer *s, const char *host, argument 247 assert(host); 248 key = host; 269 r = open_output(w, host); 1187 [JOURNAL_WRITE_SPLIT_HOST] = "host", 1232 " --split-mode=none|host How many output files to create\n" 1495 log_error("For SplitMode=host, outpu [all...] |
/systemd/src/udev/ |
H A D | udev-builtin-path_id.c | 357 int host, bus, target, lun; local 373 if (sscanf(name, "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4) 377 * Rebase host offset to get the local relative number 416 if (!startswith(dent->d_name, "host")) 422 * find the smallest number; the host really needs to export its 423 * own instance number per parent device; relying on the global host 434 host -= basenum; 436 path_prepend(path, "scsi-%u:%u:%u:%u", host, bus, target, lun);
|
H A D | udev-builtin-usb_id.c | 313 int host, bus, target, lun; local 322 if (sscanf(udev_device_get_sysname(dev_scsi), "%d:%d:%d:%d", &host, &bus, &target, &lun) != 4) {
|
/systemd/src/libsystemd/sd-bus/ |
H A D | sd-bus.c | 597 _cleanup_free_ char *host = NULL, *port = NULL, *family = NULL; local 616 r = parse_address_key(p, "host", &host); 637 if (!host || !port) 649 r = getaddrinfo(host, port, &hints, &result); 1311 int bus_set_address_system_remote(sd_bus *b, const char *host) { argument 1316 assert(host); 1319 m = strchr(host, ':'); 1328 /* Cut out the host part */ 1329 t = strndupa(host, 1351 sd_bus_open_system_remote(sd_bus **ret, const char *host) argument [all...] |