Searched refs:buflen (Results 1 - 20 of 20) sorted by relevance

/systemd/src/basic/
H A Dnss-util.h34 char *buffer, size_t buflen, \
41 char *buffer, size_t buflen, \
49 char *buffer, size_t buflen, \
54 char *buffer, size_t buflen, \
62 char *buffer, size_t buflen, \
69 char *buffer, size_t buflen, \
77 char *buffer, size_t buflen, \
83 buffer, buflen, \
91 char *buffer, size_t buflen, \
100 buffer, buflen, \
[all...]
/systemd/src/libsystemd-network/
H A Ddhcp6-option.c44 static int option_append_hdr(uint8_t **buf, size_t *buflen, uint16_t optcode, argument
50 assert_return(buflen, -EINVAL);
52 if (optlen > 0xffff || *buflen < optlen + sizeof(DHCP6Option))
59 *buflen -= sizeof(DHCP6Option);
64 int dhcp6_option_append(uint8_t **buf, size_t *buflen, uint16_t code, argument
70 r = option_append_hdr(buf, buflen, code, optlen);
78 *buflen -= optlen;
83 int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, DHCP6IA *ia) { argument
90 assert_return(buf && *buf && buflen && ia, -EINVAL);
105 if (*buflen < le
141 option_parse_hdr(uint8_t **buf, size_t *buflen, uint16_t *optcode, size_t *optlen) argument
166 dhcp6_option_parse(uint8_t **buf, size_t *buflen, uint16_t *optcode, size_t *optlen, uint8_t **optvalue) argument
186 dhcp6_option_parse_ia(uint8_t **buf, size_t *buflen, uint16_t iatype, DHCP6IA *ia) argument
[all...]
H A Ddhcp6-internal.h60 int dhcp6_option_append(uint8_t **buf, size_t *buflen, uint16_t code,
62 int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, DHCP6IA *ia);
63 int dhcp6_option_parse(uint8_t **buf, size_t *buflen, uint16_t *optcode,
65 int dhcp6_option_parse_ia(uint8_t **buf, size_t *buflen, uint16_t iatype,
H A Ddhcp-option.c142 static int parse_options(const uint8_t options[], size_t buflen, uint8_t *overload, argument
149 while (offset < buflen) {
160 if (buflen < offset + 1)
165 if (buflen < offset + len)
223 if (offset < buflen)
H A Dtest-dhcp-option.c239 int buflen = 0; local
261 buflen = sizeof(DHCPMessage) + optlen;
264 assert_se((res = dhcp_option_parse(message, buflen, test_options_cb, NULL, NULL)) == -ENOMSG);
266 assert_se((res = dhcp_option_parse(message, buflen, test_options_cb, desc, NULL)) >= 0);
269 assert_se((res = dhcp_option_parse(message, buflen, test_options_cb, desc, NULL)) < 0);
H A Dtest-dhcp6-client.c106 size_t buflen = sizeof(packet), outlen = sizeof(result); local
111 assert_se(buflen == outlen);
116 buflen -= 3;
121 assert_se(dhcp6_option_parse(&buf, &buflen, &optcode, &optlen,
127 assert_se(buflen + pos == sizeof(packet));
134 assert_se(dhcp6_option_parse(&buf, &buflen, &optcode, &optlen,
140 assert_se(buflen + pos == sizeof(packet));
H A Dsd-ndisc.c495 int r, pref, stateful, buflen = 0; local
501 r = ioctl(fd, FIONREAD, &buflen);
504 else if (buflen < 0)
508 iov.iov_len = buflen;
H A Dsd-dhcp-client.c1528 int buflen = 0, len, r; local
1536 r = ioctl(fd, FIONREAD, &buflen);
1539 else if (buflen < 0)
1543 message = malloc0(buflen);
1547 len = read(fd, message, buflen);
1619 int buflen = 0, len, r; local
1624 r = ioctl(fd, FIONREAD, &buflen);
1627 else if (buflen < 0)
1631 packet = malloc0(buflen);
1636 iov.iov_len = buflen;
[all...]
H A Dsd-dhcp-server.c958 int buflen = 0, len; local
962 if (ioctl(fd, FIONREAD, &buflen) < 0)
964 else if (buflen < 0)
967 message = malloc(buflen);
972 iov.iov_len = buflen;
H A Dsd-dhcp6-client.c894 int r, buflen, len; local
900 r = ioctl(fd, FIONREAD, &buflen);
903 else if (buflen < 0)
907 message = malloc(buflen);
911 len = read(fd, message, buflen);
/systemd/src/journal/
H A Dfsprg.c44 static void mpi_export(void *buf, size_t buflen, const gcry_mpi_t x) { argument
50 assert(len <= buflen);
51 memzero(buf, buflen);
52 gcry_mpi_print(GCRYMPI_FMT_USG, buf + (buflen - len), len, &nwritten, x);
56 static gcry_mpi_t mpi_import(const void *buf, size_t buflen) { argument
60 gcry_mpi_scan(&h, GCRYMPI_FMT_USG, buf, buflen, NULL);
62 assert(len <= buflen);
68 static void uint64_export(void *buf, size_t buflen, uint64_t x) { argument
69 assert(buflen == 8);
80 _pure_ static uint64_t uint64_import(const void *buf, size_t buflen) { argument
94 det_randomize(void *buf, size_t buflen, const void *seed, size_t seedlen, uint32_t idx) argument
125 size_t buflen = bits / 8; local
145 size_t buflen = secpar / 8; local
[all...]
/systemd/src/nss-mymachines/
H A Dnss-mymachines.c85 char *buffer, size_t buflen,
152 if (buflen < ms) {
236 char *buffer, size_t buflen,
307 if (buflen < ms) {
401 char *buffer, size_t buflen,
466 if (buflen < l+1) {
496 char *buffer, size_t buflen,
544 if (snprintf(buffer, buflen, "vu-%s-" UID_FMT, machine, (uid_t) mapped) >= (int) buflen) {
572 char *buffer, size_t buflen,
82 _nss_mymachines_gethostbyname4_r( const char *name, struct gaih_addrtuple **pat, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp) argument
232 _nss_mymachines_gethostbyname3_r( const char *name, int af, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp, char **canonp) argument
398 _nss_mymachines_getpwnam_r( const char *name, struct passwd *pwd, char *buffer, size_t buflen, int *errnop) argument
493 _nss_mymachines_getpwuid_r( uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, int *errnop) argument
569 _nss_mymachines_getgrnam_r( const char *name, struct group *gr, char *buffer, size_t buflen, int *errnop) argument
661 _nss_mymachines_getgrgid_r( gid_t gid, struct group *gr, char *buffer, size_t buflen, int *errnop) argument
[all...]
/systemd/src/nss-resolve/
H A Dnss-resolve.c116 char *buffer, size_t buflen,
123 char *buffer, size_t buflen,
196 if (buflen < ms) {
280 char *buffer, size_t buflen,
286 return fallback(name, pat, buffer, buflen, errnop, h_errnop, ttlp);
298 char *buffer, size_t buflen,
307 char *buffer, size_t buflen,
391 if (buflen < ms) {
486 char *buffer, size_t buflen,
492 return fallback(name, af, result, buffer, buflen, errno
113 _nss_resolve_gethostbyname4_r( const char *name, struct gaih_addrtuple **pat, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp) argument
294 _nss_resolve_gethostbyname3_r( const char *name, int af, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp, char **canonp) argument
500 _nss_resolve_gethostbyaddr2_r( const void* addr, socklen_t len, int af, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp) argument
[all...]
/systemd/src/boot/efi/
H A Dutil.c309 UINTN buflen; local
321 buflen = info->FileSize+1;
324 buflen = size;
332 buf = AllocatePool(buflen);
333 err = uefi_call_wrapper(handle->Read, 3, handle, &buflen, buf);
335 buf[buflen] = '\0';
337 len = buflen;
/systemd/src/nss-myhostname/
H A Dnss-myhostname.c50 char *buffer, size_t buflen,
119 if (buflen < ms) {
193 char *buffer, size_t buflen,
224 if (buflen < ms) {
320 char *buffer, size_t buflen,
392 buffer, buflen,
402 char *buffer, size_t buflen,
508 buffer, buflen,
47 _nss_myhostname_gethostbyname4_r( const char *name, struct gaih_addrtuple **pat, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp) argument
187 fill_in_hostent( const char *canonical, const char *additional, int af, struct local_address *addresses, unsigned n_addresses, uint32_t local_address_ipv4, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int32_t *ttlp, char **canonp) argument
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/libudev/
H A Dlibudev-monitor.c595 ssize_t buflen; local
612 buflen = recvmsg(udev_monitor->sock, &smsg, 0);
613 if (buflen < 0) {
619 if (buflen < 32 || (smsg.msg_flags & MSG_TRUNC)) {
658 if (buf.nlh.properties_off+32 > (size_t)buflen) {
660 buf.nlh.properties_off+32, buflen);
671 if ((size_t)bufpos < sizeof("a@/d") || bufpos >= buflen) {
683 udev_device = udev_device_new_from_nulstr(udev_monitor->udev, &buf.raw[bufpos], buflen - bufpos);
H A Dlibudev-device-private.c260 struct udev_device *udev_device_new_from_nulstr(struct udev *udev, char *nulstr, ssize_t buflen) { argument
268 r = device_new_from_nulstr(&device->device, (uint8_t*)nulstr, buflen);
H A Dlibudev-private.h41 struct udev_device *udev_device_new_from_nulstr(struct udev *udev, char *nulstr, ssize_t buflen);
/systemd/src/udev/scsi_id/
H A Dscsi_serial.c316 unsigned char *buf, unsigned int buflen)
319 { INQUIRY_CMD, evpd, page, 0, buflen, 0 };
327 if (buflen > SCSI_INQ_BUFF_LEN) {
328 log_debug("buflen %d too long", buflen);
342 io_v4.din_xfer_len = buflen;
351 io_hdr.dxfer_len = buflen;
391 retval = buflen;
313 scsi_inquiry(struct udev *udev, struct scsi_id_device *dev_scsi, int fd, unsigned char evpd, unsigned char page, unsigned char *buf, unsigned int buflen) argument
/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);

Completed in 2985 milliseconds