Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 146) sorted by relevance

123456

/glibc-2.36/resolv/
Dns_print.c40 char **buf, size_t *buflen);
43 char **buf, size_t *buflen);
44 static void addlen(size_t len, char **buf, size_t *buflen);
46 char **buf, size_t *buflen);
48 char **buf, size_t *buflen);
69 char *buf, size_t buflen) in ns_sprintrr() argument
76 name_ctx, origin, buf, buflen); in ns_sprintrr()
92 char *buf, size_t buflen) in libresolv_hidden_def()
107 T(addstr("\t\t\t", 3, &buf, &buflen)); in libresolv_hidden_def()
113 T(addstr("@\t\t\t", 4, &buf, &buflen)); in libresolv_hidden_def()
[all …]
Dres_mkquery.c101 unsigned char *buf, int buflen) in __res_context_mkquery() argument
112 if ((buf == NULL) || (buflen < HFIXEDSZ)) in __res_context_mkquery()
126 buflen -= HFIXEDSZ; in __res_context_mkquery()
136 if ((buflen -= QFIXEDSZ + (data == NULL ? 0 : RRFIXEDSZ)) < 0) in __res_context_mkquery()
141 if ((buflen -= QFIXEDSZ) < 0) in __res_context_mkquery()
144 n = __ns_name_compress (dname, cp, buflen, in __res_context_mkquery()
150 buflen -= n; in __res_context_mkquery()
158 n = __ns_name_compress ((char *)data, cp, buflen, in __res_context_mkquery()
164 buflen -= n; in __res_context_mkquery()
184 unsigned char *buf, int buflen) in libc_hidden_def()
[all …]
/glibc-2.36/nss/nss_compat/
Dcompat-pwd.c40 size_t buflen, int *errnop);
42 char *buffer, size_t buflen,
45 size_t buflen, int *errnop);
137 char *buffer, size_t buflen) in copy_pwd_changes() argument
151 buflen = buflen - (strlen (dest->pw_passwd) + 1); in copy_pwd_changes()
167 buflen = buflen - (strlen (dest->pw_gecos) + 1); in copy_pwd_changes()
181 buflen = buflen - (strlen (dest->pw_dir) + 1); in copy_pwd_changes()
197 buflen = buflen - (strlen (dest->pw_shell) + 1); in copy_pwd_changes()
318 char *group, char *buffer, size_t buflen, in getpwent_next_nss_netgr() argument
340 &ent->netgrdata, buffer, buflen, in getpwent_next_nss_netgr()
[all …]
Dcompat-grp.c36 size_t buflen, int *errnop);
38 char *buffer, size_t buflen,
41 size_t buflen, int *errnop);
194 size_t buflen, int *errnop) in getgrent_next_nss() argument
207 if ((status = getgrent_r_impl (result, buffer, buflen, errnop)) in getgrent_next_nss()
219 char *buffer, size_t buflen, int *errnop) in getgrnam_plusgroup() argument
224 enum nss_status status = getgrnam_r_impl (name, result, buffer, buflen, in getgrnam_plusgroup()
238 char *buffer, size_t buflen, int *errnop) in getgrent_next_file() argument
250 if (__glibc_unlikely (buflen < 3)) in getgrent_next_file()
258 buffer[buflen - 1] = '\xff'; in getgrent_next_file()
[all …]
Dcompat-spwd.c39 char *buffer, size_t buflen,
42 size_t buflen, int *errnop);
125 char *buffer, size_t buflen) in copy_spwd_changes() argument
139 buflen = buflen - (strlen (dest->sp_pwdp) + 1); in copy_spwd_changes()
273 char *group, char *buffer, size_t buflen, in getspent_next_nss_netgr() argument
298 &ent->netgrdata, buffer, buflen, in getspent_next_nss_netgr()
331 if (p2len > buflen) in getspent_next_nss_netgr()
336 p2 = buffer + (buflen - p2len); in getspent_next_nss_netgr()
337 buflen -= p2len; in getspent_next_nss_netgr()
339 if (getspnam_r_impl (user, result, buffer, buflen, errnop) in getspent_next_nss_netgr()
[all …]
Dcompat-initgroups.c41 size_t buflen, int *errnop);
43 char *buffer, size_t buflen,
47 size_t buflen, int *errnop);
228 getgrent_next_nss (ent_t *ent, char *buffer, size_t buflen, const char *user, in getgrent_next_nss() argument
270 size_t tmplen = buflen; in getgrent_next_nss()
344 if ((status = getgrent_r_impl (&grpbuf, buffer, buflen, errnop)) in getgrent_next_nss()
357 internal_getgrent_r (ent_t *ent, char *buffer, size_t buflen, const char *user, in internal_getgrent_r() argument
365 return getgrent_next_nss (ent, buffer, buflen, user, group, in internal_getgrent_r()
377 if (__glibc_unlikely (buflen < 3)) in internal_getgrent_r()
385 buffer[buflen - 1] = '\xff'; in internal_getgrent_r()
[all …]
/glibc-2.36/crypt/
Dsha512-crypt.c96 char *buffer, int buflen);
101 __sha512_crypt_r (const char *key, const char *salt, char *buffer, int buflen) in __sha512_crypt_r() argument
315 cp = __stpncpy (buffer, sha512_salt_prefix, MAX (0, buflen)); in __sha512_crypt_r()
316 buflen -= sizeof (sha512_salt_prefix) - 1; in __sha512_crypt_r()
320 int n = __snprintf (cp, MAX (0, buflen), "%s%zu$", in __sha512_crypt_r()
323 buflen -= n; in __sha512_crypt_r()
326 cp = __stpncpy (cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in __sha512_crypt_r()
327 buflen -= MIN ((size_t) MAX (0, buflen), salt_len); in __sha512_crypt_r()
329 if (buflen > 0) in __sha512_crypt_r()
332 --buflen; in __sha512_crypt_r()
[all …]
Dsha256-crypt.c96 char *buffer, int buflen);
101 __sha256_crypt_r (const char *key, const char *salt, char *buffer, int buflen) in __sha256_crypt_r() argument
316 cp = __stpncpy (buffer, sha256_salt_prefix, MAX (0, buflen)); in __sha256_crypt_r()
317 buflen -= sizeof (sha256_salt_prefix) - 1; in __sha256_crypt_r()
321 int n = __snprintf (cp, MAX (0, buflen), "%s%zu$", in __sha256_crypt_r()
324 buflen -= n; in __sha256_crypt_r()
327 cp = __stpncpy (cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in __sha256_crypt_r()
328 buflen -= MIN ((size_t) MAX (0, buflen), salt_len); in __sha256_crypt_r()
330 if (buflen > 0) in __sha256_crypt_r()
333 --buflen; in __sha256_crypt_r()
[all …]
Dmd5-crypt.c84 char *buffer, int buflen);
91 __md5_crypt_r (const char *key, const char *salt, char *buffer, int buflen) in __md5_crypt_r() argument
251 cp = __stpncpy (buffer, md5_salt_prefix, MAX (0, buflen)); in __md5_crypt_r()
252 buflen -= sizeof (md5_salt_prefix) - 1; in __md5_crypt_r()
254 cp = __stpncpy (cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in __md5_crypt_r()
255 buflen -= MIN ((size_t) MAX (0, buflen), salt_len); in __md5_crypt_r()
257 if (buflen > 0) in __md5_crypt_r()
260 --buflen; in __md5_crypt_r()
263 __b64_from_24bit (&cp, &buflen, in __md5_crypt_r()
265 __b64_from_24bit (&cp, &buflen, in __md5_crypt_r()
[all …]
Dsha256.c100 ctx->buflen = 0; in __sha256_init_ctx()
113 uint32_t bytes = ctx->buflen; in __sha256_finish_ctx()
147 if (ctx->buflen != 0) in __sha256_process_bytes()
149 size_t left_over = ctx->buflen; in __sha256_process_bytes()
153 ctx->buflen += add; in __sha256_process_bytes()
155 if (ctx->buflen > 64) in __sha256_process_bytes()
157 __sha256_process_block (ctx->buffer, ctx->buflen & ~63, ctx); in __sha256_process_bytes()
159 ctx->buflen &= 63; in __sha256_process_bytes()
162 ctx->buflen); in __sha256_process_bytes()
199 size_t left_over = ctx->buflen; in __sha256_process_bytes()
[all …]
Dmd5.c78 ctx->buflen = 0; in md5_init_ctx()
106 md5_uint32 bytes = ctx->buflen; in md5_finish_ctx()
207 if (ctx->buflen != 0) in md5_process_bytes()
209 size_t left_over = ctx->buflen; in md5_process_bytes()
213 ctx->buflen += add; in md5_process_bytes()
215 if (ctx->buflen > 64) in md5_process_bytes()
217 __md5_process_block (ctx->buffer, ctx->buflen & ~63, ctx); in md5_process_bytes()
219 ctx->buflen &= 63; in md5_process_bytes()
222 ctx->buflen); in md5_process_bytes()
259 size_t left_over = ctx->buflen; in md5_process_bytes()
[all …]
Dsha512.c121 ctx->buflen = 0; in __sha512_init_ctx()
134 uint64_t bytes = ctx->buflen; in __sha512_finish_ctx()
170 if (ctx->buflen != 0) in __sha512_process_bytes()
172 size_t left_over = ctx->buflen; in __sha512_process_bytes()
176 ctx->buflen += add; in __sha512_process_bytes()
178 if (ctx->buflen > 128) in __sha512_process_bytes()
180 __sha512_process_block (ctx->buffer, ctx->buflen & ~127, ctx); in __sha512_process_bytes()
182 ctx->buflen &= 127; in __sha512_process_bytes()
185 ctx->buflen); in __sha512_process_bytes()
223 size_t left_over = ctx->buflen; in __sha512_process_bytes()
[all …]
/glibc-2.36/nss/
Dnss_test1.c152 char *buffer, size_t buflen, int *errnop) in copy_passwd() argument
154 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_passwd()
174 NAME(getpwent_r) (struct passwd *result, char *buffer, size_t buflen, in NAME()
186 res = copy_passwd (result, &CURPWD, buffer, buflen, errnop); in NAME()
198 size_t buflen, int *errnop) in NAME()
203 return copy_passwd (result, &pwd_data[idx], buffer, buflen, errnop); in NAME()
211 size_t buflen, int *errnop) in NAME()
216 return copy_passwd (result, &pwd_data[idx], buffer, buflen, errnop); in NAME()
247 char *buffer, size_t buflen, int *errnop) in copy_group() argument
249 struct alloc_buffer buf = alloc_buffer_create (buffer, buflen); in copy_group()
[all …]
/glibc-2.36/nss/nss_files/
Dfiles-hosts.c120 struct hostent *result, char *buffer, size_t buflen, in gethostbyname3_multi() argument
149 outbuf = alloc_buffer_create (bufferend, buffer + buflen - bufferend); in gethostbyname3_multi()
326 char *buffer, size_t buflen, int *errnop, in _nss_files_gethostbyname3_r() argument
332 buflen = buflen > pad ? buflen - pad : 0; in _nss_files_gethostbyname3_r()
339 while ((status = internal_getent (stream, result, buffer, buflen, errnop, in _nss_files_gethostbyname3_r()
349 (stream, name, af, result, buffer, buflen, errnop, herrnop); in _nss_files_gethostbyname3_r()
363 char *buffer, size_t buflen, int *errnop, in libc_hidden_def()
366 return _nss_files_gethostbyname3_r (name, AF_INET, result, buffer, buflen, in libc_hidden_def()
373 char *buffer, size_t buflen, int *errnop, in libc_hidden_def()
376 return _nss_files_gethostbyname3_r (name, af, result, buffer, buflen, in libc_hidden_def()
[all …]
/glibc-2.36/string/
Dstrxfrm_l.c228 size_t buflen; in do_xfrm() local
271 buflen = utf8_encode (buf, val); in do_xfrm()
272 if (needed + buflen + len < n) in do_xfrm()
274 for (i = 0; i < buflen; ++i) in do_xfrm()
277 dest[needed + buflen + i] = in do_xfrm()
280 needed += buflen + len; in do_xfrm()
305 buflen = utf8_encode (buf, val); in do_xfrm()
306 if (needed + buflen + len < n) in do_xfrm()
308 for (i = 0; i < buflen; ++i) in do_xfrm()
311 dest[needed + buflen + i] = in do_xfrm()
[all …]
/glibc-2.36/resolv/nss_dns/
Ddns-host.c117 size_t buflen, int *errnop, int *h_errnop,
124 char *buffer, size_t buflen,
131 char *buffer, size_t buflen,
139 char *buffer, size_t buflen,
163 char *buffer, size_t buflen, int *errnop, in _nss_dns_gethostbyname3_r() argument
174 (ctx, name, af, result, buffer, buflen, errnop, h_errnop, ttlp, canonp); in _nss_dns_gethostbyname3_r()
183 char *buffer, size_t buflen, int *errnop, in libc_hidden_def()
280 (ctx, host_buffer.buf, n, name, type, result, buffer, buflen, in libc_hidden_def()
301 char *buffer, size_t buflen, int *errnop, in _nss_dns_gethostbyname2_r() argument
307 return _nss_dns_gethostbyname3_r (name, af, result, buffer, buflen, errnop, in _nss_dns_gethostbyname2_r()
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/
Dttyname_r.c33 static int getttyname_r (char *buf, size_t buflen,
39 getttyname_r (char *buf, size_t buflen, const struct __stat64_t64 *mytty, in getttyname_r() argument
63 if (needed > buflen) in getttyname_r()
93 __ttyname_r (int fd, char *buf, size_t buflen) in __ttyname_r() argument
109 if (buflen < sizeof ("/dev/pts/")) in __ttyname_r()
125 ssize_t ret = __readlink (__fd_to_filename (fd, &filename), buf, buflen - 1); in __ttyname_r()
156 buflen -= sizeof ("/dev/pts/") - 1; in __ttyname_r()
160 ret = getttyname_r (buf, buflen, &st, save, in __ttyname_r()
172 buflen += sizeof ("pts/") - 1; in __ttyname_r()
173 ret = getttyname_r (buf, buflen, &st, save, in __ttyname_r()
[all …]
/glibc-2.36/nscd/
Dnscd_proto.h40 char *buffer, size_t buflen,
43 char *buffer, size_t buflen,
46 char *buffer, size_t buflen,
49 char *buffer, size_t buflen,
53 char *buffer, size_t buflen,
58 char *buffer, size_t buflen,
63 char *buffer, size_t buflen,
73 size_t buflen, struct servent **result)
77 size_t buflen, struct servent **result)
/glibc-2.36/sysdeps/posix/
Dttyname_r.c34 static int getttyname_r (int fd, char *buf, size_t buflen,
39 getttyname_r (int fd, char *buf, size_t buflen, dev_t mydev, ino_t myino, in getttyname_r() argument
62 if (needed > buflen) in getttyname_r()
97 __ttyname_r (int fd, char *buf, size_t buflen) in __ttyname_r() argument
112 if (buflen < (int) (sizeof (dev) + 1)) in __ttyname_r()
130 buflen -= sizeof (dev); in __ttyname_r()
133 ret = getttyname_r (fd, buf, buflen, st.st_rdev, st.st_ino, save, in __ttyname_r()
136 ret = getttyname_r (fd, buf, buflen, st.st_dev, st.st_ino, save, in __ttyname_r()
144 ret = getttyname_r (fd, buf, buflen, st.st_rdev, st.st_ino, in __ttyname_r()
147 ret = getttyname_r (fd, buf, buflen, st.st_dev, st.st_ino, in __ttyname_r()
/glibc-2.36/sysdeps/mach/hurd/
Daccept4.c43 mach_msg_type_number_t buflen; in __libc_accept4() local
60 buflen = *addr_len; in __libc_accept4()
61 err = __socket_whatis_address (aport, &type, &buf, &buflen); in __libc_accept4()
67 buflen = 0; in __libc_accept4()
88 if (*addr_len > buflen) in __libc_accept4()
89 *addr_len = buflen; in __libc_accept4()
94 __vm_deallocate (__mach_task_self (), (vm_address_t) buf, buflen); in __libc_accept4()
97 if (buflen > 0) in __libc_accept4()
Drecvfrom.c61 mach_msg_type_number_t buflen = *addr_len; in __recvfrom() local
65 err = __socket_whatis_address (addrport, &type, &buf, &buflen); in __recvfrom()
72 buflen = 0; in __recvfrom()
82 if (*addr_len > buflen) in __recvfrom()
83 *addr_len = buflen; in __recvfrom()
88 __vm_deallocate (__mach_task_self (), (vm_address_t) buf, buflen); in __recvfrom()
91 if (buflen > 0) in __recvfrom()
/glibc-2.36/posix/
Dtst-chmod.c48 size_t buflen; in do_test() local
60 buflen = strlen (builddir) + 50; in do_test()
70 buf = (char *) alloca (buflen); in do_test()
73 snprintf (buf, buflen, "%s/chmoddirXXXXXX", builddir); in do_test()
140 snprintf (buf, buflen, "%s/file", testdir); in do_test()
231 snprintf (buf, buflen, "%s/..", testdir); in do_test()
237 snprintf (buf, buflen, "./%s/../%s/file", in do_test()
245 snprintf (buf, buflen, "./%s//file", basename (testdir)); in do_test()
296 snprintf (buf, buflen, "./%s/no-such-file", basename (testdir)); in do_test()
308 snprintf (buf, buflen, "%s/", basename (testdir)); in do_test()
[all …]
/glibc-2.36/hesiod/nss_hesiod/
Dhesiod-pwd.c48 char *buffer, size_t buflen, int *errnop) in lookup() argument
70 linebuflen = buffer + buflen - data->linebuffer; in lookup()
84 parse_res = _nss_files_parse_pwent (buffer, pwd, data, buflen, errnop); in lookup()
96 char *buffer, size_t buflen, int *errnop) in _nss_hesiod_getpwnam_r() argument
98 return lookup (name, "passwd", pwd, buffer, buflen, errnop); in _nss_hesiod_getpwnam_r()
103 char *buffer, size_t buflen, int *errnop) in _nss_hesiod_getpwuid_r() argument
110 return lookup (uidstr, "uid", pwd, buffer, buflen, errnop); in _nss_hesiod_getpwuid_r()
Dhesiod-proto.c60 char *buffer, size_t buflen, int *errnop) in lookup() argument
82 linebuflen = buffer + buflen - data->linebuffer; in lookup()
100 parse_res = parse_line (buffer, proto, data, buflen, errnop); in lookup()
129 char *buffer, size_t buflen, int *errnop) in _nss_hesiod_getprotobyname_r() argument
131 return lookup (name, "protocol", proto, buffer, buflen, errnop); in _nss_hesiod_getprotobyname_r()
136 char *buffer, size_t buflen, int *errnop) in _nss_hesiod_getprotobynumber_r() argument
142 return lookup (protostr, "protonum", proto, buffer, buflen, errnop); in _nss_hesiod_getprotobynumber_r()
/glibc-2.36/include/
Dnetdb.h218 char *buffer, size_t buflen,
226 (struct protoent *proto, char *buffer, size_t buflen, \
230 char *buffer, size_t buflen, int *errnop); \
233 char *buffer, size_t buflen, int *errnop); \
237 (struct hostent *host, char *buffer, size_t buflen, \
241 char *buffer, size_t buflen, int *errnop, \
245 size_t buflen, int *errnop, int *h_errnop); \
248 struct hostent *host, char *buffer, size_t buflen, \
253 (struct servent *serv, char *buffer, size_t buflen, \
257 struct servent *serv, char *buffer, size_t buflen, \
[all …]

123456