/glibc-2.36/resolv/ |
D | ns_parse.c | 31 static void setsection(ns_msg *msg, ns_sect sect); 90 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in libresolv_hidden_def() 91 const u_char *eom = msg + msglen; in libresolv_hidden_def() 95 handle->_msg = msg; in libresolv_hidden_def() 97 if (msg + NS_INT16SZ > eom) in libresolv_hidden_def() 99 NS_GET16(handle->_id, msg); in libresolv_hidden_def() 100 if (msg + NS_INT16SZ > eom) in libresolv_hidden_def() 102 NS_GET16(handle->_flags, msg); in libresolv_hidden_def() 104 if (msg + NS_INT16SZ > eom) in libresolv_hidden_def() 106 NS_GET16(handle->_counts[i], msg); in libresolv_hidden_def() [all …]
|
D | ns_name_pack.c | 39 dn_find (const unsigned char *domain, const unsigned char *msg, in dn_find() argument 52 while (*sp != 0 && (*sp & NS_CMPRSFLGS) == 0 && (sp - msg) < 0x4000) in dn_find() 70 return sp - msg; in dn_find() 75 cp = msg + (((n & 0x3f) << 8) | *cp); in dn_find() 108 const unsigned char **cpp, **lpp, *eob, *msg; in ___ns_name_pack() local 118 if ((msg = *dnptrs++) != NULL) in ___ns_name_pack() 126 msg = NULL; in ___ns_name_pack() 154 if (n != 0 && msg != NULL) in ___ns_name_pack() 156 l = dn_find (srcp, msg, dnptrs, lpp); in ___ns_name_pack() 167 && (dstp - msg) < 0x4000 && first) in ___ns_name_pack() [all …]
|
/glibc-2.36/mach/ |
D | msg.c | 34 __mach_msg_trap (mach_msg_header_t *msg, in __mach_msg_trap() argument 42 return __mach_msg_overwrite_trap (msg, option, send_size, in __mach_msg_trap() 50 __mach_msg_overwrite (mach_msg_header_t *msg, in weak_alias() 70 ret = __mach_msg_overwrite_trap (msg, option, send_size, in weak_alias() 78 ret = __mach_msg_overwrite_trap (msg, option, send_size, in weak_alias() 84 ret = __mach_msg_overwrite_trap (msg, option & ~MACH_SEND_MSG, in weak_alias() 94 __mach_msg (mach_msg_header_t *msg, in weak_alias() 111 ret = __mach_msg_trap (msg, option, send_size, in weak_alias() 118 ret = __mach_msg_trap (msg, option, send_size, in weak_alias() 123 ret = __mach_msg_trap (msg, option & ~MACH_SEND_MSG, in weak_alias() [all …]
|
D | msg-destroy.c | 61 __mach_msg_destroy (mach_msg_header_t *msg) in __mach_msg_destroy() argument 63 mach_msg_bits_t mbits = msg->msgh_bits; in __mach_msg_destroy() 70 mach_msg_destroy_port(msg->msgh_remote_port, MACH_MSGH_BITS_REMOTE(mbits)); in __mach_msg_destroy() 77 body = (mach_msg_body_t *) (msg + 1); in __mach_msg_destroy() 79 ((mach_msg_base_t *) msg + 1); in __mach_msg_destroy() 139 saddr = (vm_offset_t) (msg + 1); in __mach_msg_destroy() 140 eaddr = (vm_offset_t) msg + msg->msgh_size; in __mach_msg_destroy()
|
/glibc-2.36/catgets/ |
D | xopen-msg.awk | 37 if (msg && msg !~ /<PRI.*>/) { 40 gsub(/\n/, "\n$ ", msg) 41 printf "$ Original Message: %s\n", msg 43 gsub(/\n/, "\\\n", msg) 44 printf "%d %s\n", ++num, msg 47 msg = 0 55 sub(/^msg(id|str)[ \t]*"/, "", $0) 57 msg = $0 70 msg = msg "\n" $0
|
/glibc-2.36/misc/ |
D | tst-syslog.c | 85 char msg[msg_length]; member 129 check_syslog_message (const struct msg_t *msg, int msgnum, int options, in check_syslog_message() argument 144 TEST_COMPARE (msg->facility, expected_facility); in check_syslog_message() 145 TEST_COMPARE (msg->priority, expected_priority); in check_syslog_message() 183 check_openlog_message (const struct msg_t *msg, int msgnum, in check_openlog_message() argument 190 TEST_COMPARE (msg->priority, expected_priority); in check_openlog_message() 202 TEST_COMPARE (msg->pid, pid); in check_openlog_message() 203 TEST_COMPARE_STRING (msg->ident, expected_ident); in check_openlog_message() 204 TEST_COMPARE (msg->facility, LOG_LOCAL0); in check_openlog_message() 207 TEST_COMPARE (msg->facility, LOG_LOCAL7); in check_openlog_message() [all …]
|
/glibc-2.36/sunrpc/ |
D | svc_unix.c | 328 struct msghdr msg; in __msgread() local 334 msg.msg_iov = &iov; in __msgread() 335 msg.msg_iovlen = 1; in __msgread() 336 msg.msg_name = NULL; in __msgread() 337 msg.msg_namelen = 0; in __msgread() 339 msg.msg_control = (caddr_t) &cm; in __msgread() 340 msg.msg_controllen = sizeof (struct cmessage); in __msgread() 342 msg.msg_flags = 0; in __msgread() 353 len = __recvmsg (sock, &msg, 0); in __msgread() 356 if (msg.msg_flags & MSG_CTRUNC || len == 0) in __msgread() [all …]
|
D | pmap_rmt.c | 235 struct rpc_msg msg; in clnt_broadcast() local 264 msg.rm_xid = xid = _create_xid (); in clnt_broadcast() 266 msg.rm_direction = CALL; in clnt_broadcast() 267 msg.rm_call.cb_rpcvers = RPC_MSG_VERSION; in clnt_broadcast() 268 msg.rm_call.cb_prog = PMAPPROG; in clnt_broadcast() 269 msg.rm_call.cb_vers = PMAPVERS; in clnt_broadcast() 270 msg.rm_call.cb_proc = PMAPPROC_CALLIT; in clnt_broadcast() 271 msg.rm_call.cb_cred = unix_auth->ah_cred; in clnt_broadcast() 272 msg.rm_call.cb_verf = unix_auth->ah_verf; in clnt_broadcast() 282 if ((!xdr_callmsg (xdrs, &msg)) in clnt_broadcast() [all …]
|
D | clnt_raw.c | 57 char msg[MCALL_MSG_SIZE]; member 109 xdrmem_create (xdrs, clp->mashl_callmsg.msg, MCALL_MSG_SIZE, XDR_ENCODE); in clntraw_create() 137 struct rpc_msg msg; in libc_hidden_nolink_sunrpc() local 153 if ((!XDR_PUTBYTES (xdrs, clp->mashl_callmsg.msg, clp->mcnt)) || in libc_hidden_nolink_sunrpc() 173 msg.acpted_rply.ar_verf = _null_auth; in libc_hidden_nolink_sunrpc() 174 msg.acpted_rply.ar_results.where = resultsp; in libc_hidden_nolink_sunrpc() 175 msg.acpted_rply.ar_results.proc = xresults; in libc_hidden_nolink_sunrpc() 176 if (!xdr_replymsg (xdrs, &msg)) in libc_hidden_nolink_sunrpc() 178 _seterr_reply (&msg, &error); in libc_hidden_nolink_sunrpc() 183 if (!AUTH_VALIDATE (h->cl_auth, &msg.acpted_rply.ar_verf)) in libc_hidden_nolink_sunrpc() [all …]
|
D | clnt_perr.c | 54 clnt_sperror (CLIENT * rpch, const char *msg) in clnt_sperror() argument 80 res = __asprintf (&str, "%s: %s\n", msg, errstr); in clnt_sperror() 86 msg, errstr, __strerror_r (e.re_errno, in clnt_sperror() 93 msg, errstr, e.re_vers.low, e.re_vers.high); in clnt_sperror() 99 res = __asprintf (&str, _("%s: %s; why = %s\n"), msg, errstr, tmpstr); in clnt_sperror() 103 msg, errstr, (int) e.re_why); in clnt_sperror() 109 msg, errstr, e.re_vers.low, e.re_vers.high); in clnt_sperror() 114 msg, errstr, e.re_lb.s1, e.re_lb.s2); in clnt_sperror() 130 clnt_perror (CLIENT * rpch, const char *msg) in libc_hidden_nolink_sunrpc() 132 (void) __fxprintf (NULL, "%s", clnt_sperror (rpch, msg)); in libc_hidden_nolink_sunrpc() [all …]
|
D | clnt_unix.c | 439 struct msghdr msg; in __msgread() local 448 msg.msg_iov = &iov; in __msgread() 449 msg.msg_iovlen = 1; in __msgread() 450 msg.msg_name = NULL; in __msgread() 451 msg.msg_namelen = 0; in __msgread() 453 msg.msg_control = (caddr_t) &cm; in __msgread() 454 msg.msg_controllen = CMSG_SPACE(sizeof (struct ucred)); in __msgread() 456 msg.msg_flags = 0; in __msgread() 467 len = __recvmsg (sock, &msg, 0); in __msgread() 470 if (msg.msg_flags & MSG_CTRUNC || len == 0) in __msgread() [all …]
|
D | rpc_prot.c | 232 _seterr_reply (struct rpc_msg *msg, in _seterr_reply() argument 236 switch (msg->rm_reply.rp_stat) in _seterr_reply() 239 if (msg->acpted_rply.ar_stat == SUCCESS) in _seterr_reply() 244 accepted (msg->acpted_rply.ar_stat, error); in _seterr_reply() 248 rejected (msg->rjcted_rply.rj_stat, error); in _seterr_reply() 253 error->re_lb.s1 = (long) (msg->rm_reply.rp_stat); in _seterr_reply() 260 error->re_vers.low = msg->rjcted_rply.rj_vers.low; in _seterr_reply() 261 error->re_vers.high = msg->rjcted_rply.rj_vers.high; in _seterr_reply() 265 error->re_why = msg->rjcted_rply.rj_why; in _seterr_reply() 269 error->re_vers.low = msg->acpted_rply.ar_vers.low; in _seterr_reply() [all …]
|
D | svc_authux.c | 48 _svcauth_unix (struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_unix() argument 69 auth_len = (u_int) msg->rm_call.cb_cred.oa_length; in _svcauth_unix() 70 xdrmem_create (&xdrs, msg->rm_call.cb_cred.oa_base, auth_len, XDR_DECODE); in _svcauth_unix() 117 if ((u_int)msg->rm_call.cb_verf.oa_length) in _svcauth_unix() 120 msg->rm_call.cb_verf.oa_flavor; in _svcauth_unix() 122 msg->rm_call.cb_verf.oa_base; in _svcauth_unix() 124 msg->rm_call.cb_verf.oa_length; in _svcauth_unix() 144 _svcauth_short (struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_short() argument
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | convert_scm_timestamps.c | 38 __convert_scm_timestamps (struct msghdr *msg, socklen_t msgsize) in __convert_scm_timestamps() argument 40 if (msg->msg_control == NULL || msg->msg_controllen == 0) in __convert_scm_timestamps() 53 for (cmsg = CMSG_FIRSTHDR (msg); in __convert_scm_timestamps() 55 cmsg = CMSG_NXTHDR (msg, cmsg)) in __convert_scm_timestamps() 85 if (CMSG_SPACE (sizeof tvts) > msgsize - msg->msg_controllen) in __convert_scm_timestamps() 87 msg->msg_flags |= MSG_CTRUNC; in __convert_scm_timestamps() 93 memset (msg->msg_control + msg->msg_controllen, 0, in __convert_scm_timestamps() 95 msg->msg_controllen += CMSG_SPACE (sizeof tvts); in __convert_scm_timestamps() 96 cmsg = CMSG_NXTHDR (msg, last); in __convert_scm_timestamps()
|
D | recvmsg.c | 24 __recvmsg_syscall (int fd, struct msghdr *msg, int flags) in __recvmsg_syscall() argument 27 return SYSCALL_CANCEL (recvmsg, fd, msg, flags); in __recvmsg_syscall() 29 return SOCKETCALL_CANCEL (recvmsg, fd, msg, flags); in __recvmsg_syscall() 34 __libc_recvmsg64 (int fd, struct msghdr *msg, int flags) in __libc_recvmsg64() argument 38 socklen_t orig_controllen = msg != NULL ? msg->msg_controllen : 0; in __libc_recvmsg64() 41 r = __recvmsg_syscall (fd, msg, flags); in __libc_recvmsg64() 45 __convert_scm_timestamps (msg, orig_controllen); in __libc_recvmsg64() 54 __libc_recvmsg (int fd, struct msghdr *msg, int flags) in weak_alias() 56 return __recvmsg_syscall (fd, msg, flags); in weak_alias()
|
D | tst-getcwd-smallbuff.c | 57 struct msghdr msg = {0}; in send_fd() local 68 msg.msg_control = &cmsgbuf.buf; in send_fd() 69 msg.msg_controllen = sizeof (cmsgbuf.buf); in send_fd() 71 cmsg = CMSG_FIRSTHDR (&msg); in send_fd() 79 msg.msg_iov = &vec; in send_fd() 80 msg.msg_iovlen = 1; in send_fd() 82 while ((n = sendmsg (sock, &msg, 0)) == -1 && errno == EINTR); in send_fd() 90 struct msghdr msg = {0}; in recv_fd() local 104 msg.msg_iov = &vec; in recv_fd() 105 msg.msg_iovlen = 1; in recv_fd() [all …]
|
/glibc-2.36/intl/ |
D | po2test.awk | 23 if (msg && msg !~ /<PRI.*>/) 24 printf ("%s(%s)\n", msgtype == "msgid" ? "INPUT" : "OUTPUT", msg) 25 msg = 0 28 $1 ~ /msg(id|str)/ { 33 sub(/^msg(id|str)[ \t]*/, "", $0) 34 msg = $0 40 msg = msg "\n" $0
|
/glibc-2.36/sysdeps/mach/hurd/i386/ |
D | intr-msg.h | 24 #define INTR_MSG_TRAP(msg, option, send_size, rcv_size, rcv_name, timeout, notify, cancel_p, intr_p… argument 77 : "r" (&msg), "m" (*cancel_p), "i" (EINTR) \ 115 mach_msg_header_t *msg; member 129 mach_msg_header_t *msg; \ 132 msg = args->msg; \ 137 if (msg == 0) \ 144 if (_hurdsig_catch_memory_fault (msg)) \ 146 *(send_name) = msg->msgh_remote_port; \ 147 *(msgid) = msg->msgh_id; \
|
/glibc-2.36/hurd/ |
D | hurdselect.c | 419 } msg; in _hurd_select() local 437 while ((msgerr = __mach_msg (&msg.head, in _hurd_select() 439 0, sizeof msg, portset, to, in _hurd_select() 452 if (sigport != MACH_PORT_NULL && sigport == msg.head.msgh_local_port) in _hurd_select() 461 if (msg.head.msgh_id == reply_msgid in _hurd_select() 462 && msg.head.msgh_size >= sizeof msg.error in _hurd_select() 463 && !(msg.head.msgh_bits & MACH_MSGH_BITS_COMPLEX) in _hurd_select() 465 && msg.error.err_type.word == inttype.word in _hurd_select() 471 if (msg.error.err == EINTR in _hurd_select() 472 && msg.head.msgh_size == sizeof msg.error) in _hurd_select() [all …]
|
D | intr-msg.c | 32 _hurd_intr_rpc_mach_msg (mach_msg_header_t *msg, in _hurd_intr_rpc_mach_msg() argument 54 union msg in _hurd_intr_rpc_mach_msg() union 74 union msg *const m = (void *) msg; in _hurd_intr_rpc_mach_msg() 118 err = INTR_MSG_TRAP (msg, option, send_size, in _hurd_intr_rpc_mach_msg() 157 if (MACH_MSGH_BITS_REMOTE (msg->msgh_bits) == MACH_MSG_TYPE_MOVE_SEND) in _hurd_intr_rpc_mach_msg() 159 __mach_port_deallocate (__mach_task_self (), msg->msgh_remote_port); in _hurd_intr_rpc_mach_msg() 160 msg->msgh_bits in _hurd_intr_rpc_mach_msg() 162 MACH_MSGH_BITS_LOCAL (msg->msgh_bits)) in _hurd_intr_rpc_mach_msg() 163 | MACH_MSGH_BITS_OTHER (msg->msgh_bits)); in _hurd_intr_rpc_mach_msg() 165 if (msg->msgh_bits & MACH_MSGH_BITS_COMPLEX) in _hurd_intr_rpc_mach_msg() [all …]
|
/glibc-2.36/elf/ |
D | dl-minimal.c | 124 char *msg; in __strerror_r() local 129 msg = (char *) "Cannot allocate memory"; in __strerror_r() 132 msg = (char *) "Invalid argument"; in __strerror_r() 135 msg = (char *) "No such file or directory"; in __strerror_r() 138 msg = (char *) "Operation not permitted"; in __strerror_r() 141 msg = (char *) "Input/output error"; in __strerror_r() 144 msg = (char *) "Permission denied"; in __strerror_r() 150 msg = _itoa (errnum, buf + buflen - 1, 10, 0); in __strerror_r() 151 msg = memcpy (msg - (sizeof ("Error ") - 1), "Error ", in __strerror_r() 156 return msg; in __strerror_r()
|
/glibc-2.36/rt/ |
D | tst-mqueue10.c | 42 char msg[8] = { 0x55 }; in do_test() local 44 struct mq_attr attr = { .mq_maxmsg = 1, .mq_msgsize = sizeof (msg) }; in do_test() 60 TEST_COMPARE (mq_timedreceive (q, msg, sizeof (msg), NULL, &ts), -1); in do_test() 68 TEST_COMPARE (mq_timedsend (q, msg, sizeof (msg), 0, in do_test() 70 TEST_COMPARE (mq_timedsend (q, msg, sizeof (msg), 0, &ts), -1); in do_test()
|
D | tst-bz28213.c | 31 static const char msg[] = "hello"; variable 36 char buf[sizeof (msg)]; in check_bz28213_cb() 42 TEST_VERIFY_EXIT (memcmp (buf, msg, sizeof (buf)) == 0); in check_bz28213_cb() 66 TEST_VERIFY_EXIT (mq_send (m, msg, sizeof (msg), 1) == 0); in check_bz28213() 80 m_attr.mq_msgsize = sizeof (msg); in do_test()
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | ioctl.c | 81 } msg; in __ioctl() local 82 mach_msg_header_t *const m = &msg.header.Head; in __ioctl() 101 mach_msg_type_t *t = &msg.header.RetCodeType; in __ioctl() 103 void *p = &msg.header.RetCode; in __ioctl() 167 - (char *) &msg); in __ioctl() 174 m->msgh_size, sizeof (msg), in __ioctl() 204 && m->msgh_size != sizeof msg.header) in __ioctl() 208 if (msg.header_typecheck.RetCodeType in __ioctl() 210 { t: io2mach_type (1, _IOTS (msg.header.RetCode)) }).i) in __ioctl() 213 return msg.header.RetCode; in __ioctl() [all …]
|
/glibc-2.36/string/ |
D | test-strerror-errno.c | 51 char *msg; in do_test() local 54 msg = strerror (-3); in do_test() 55 (void) msg; in do_test() 59 msg = strerror_l (-3, l); in do_test() 60 (void) msg; in do_test()
|