diff options
| author | Eli Zaretskii | 2024-09-21 07:30:19 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2024-09-21 07:30:19 -0400 |
| commit | 83b0e604ce2587b7566d636b2e383e58ffc0a1c8 (patch) | |
| tree | 65993c4d2717f5eac083d77e37c56acd1ce5762a /src/process.c | |
| parent | 4c5ab949fb15f89596705704bfb90a2ee1e0aa82 (diff) | |
| parent | 4b9a8fd607423726aea390a5fe25fd2307c937b6 (diff) | |
| download | emacs-83b0e604ce2587b7566d636b2e383e58ffc0a1c8.tar.gz emacs-83b0e604ce2587b7566d636b2e383e58ffc0a1c8.zip | |
Merge from origin/emacs-30
4b9a8fd6074 etags-regen-file-extensions: Add .pm
956f14ae5e9 * src/treesit.c (treesit_debug_print_parser_list): Fix co...
300d05ecb4c Type-check argument to network-lookup-address-info
0f0f21b7f27 ; Improve doc strings of options related to numbered backups
f0daa2f2153 Conservative heuristic for tree-sitter parser ranges (bug...
035024b4e5a ; Fix treesit.c printing
8771310a10d ; * admin/notes/unicode: Need to run textsec-tests (bug#7...
4c6f45fa8ee Re-enable GC mark trace buffer by default
c6077015894 ; * src/haiku_support.cc: Correct last change.
ae22ad7f624 ; Add even more tests for previous commit
460b9d705ab Fix treesit_sync_visible_region's range fixup code (bug#7...
81347c1aaf2 ; * etc/PROBLEMS: Fix last change (bug#73207).
a82b7f3e823 Document unavailability of frame geometry on Wayland
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 557bdfc918c..b71ba3daf2d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4710,6 +4710,9 @@ network_lookup_address_info_1 (Lisp_Object host, const char *service, | |||
| 4710 | DEFUN ("network-lookup-address-info", Fnetwork_lookup_address_info, | 4710 | DEFUN ("network-lookup-address-info", Fnetwork_lookup_address_info, |
| 4711 | Snetwork_lookup_address_info, 1, 3, 0, | 4711 | Snetwork_lookup_address_info, 1, 3, 0, |
| 4712 | doc: /* Look up Internet Protocol (IP) address info of NAME. | 4712 | doc: /* Look up Internet Protocol (IP) address info of NAME. |
| 4713 | NAME must be an ASCII-only string. For looking up internationalized | ||
| 4714 | hostnames, use `puny-encode-domain' on the string first. | ||
| 4715 | |||
| 4713 | Optional argument FAMILY controls whether to look up IPv4 or IPv6 | 4716 | Optional argument FAMILY controls whether to look up IPv4 or IPv6 |
| 4714 | addresses. The default of nil means both, symbol `ipv4' means IPv4 | 4717 | addresses. The default of nil means both, symbol `ipv4' means IPv4 |
| 4715 | only, symbol `ipv6' means IPv6 only. | 4718 | only, symbol `ipv6' means IPv6 only. |
| @@ -4729,6 +4732,8 @@ returned from the lookup. */) | |||
| 4729 | struct addrinfo *res, *lres; | 4732 | struct addrinfo *res, *lres; |
| 4730 | struct addrinfo hints; | 4733 | struct addrinfo hints; |
| 4731 | 4734 | ||
| 4735 | CHECK_STRING (name); | ||
| 4736 | |||
| 4732 | memset (&hints, 0, sizeof hints); | 4737 | memset (&hints, 0, sizeof hints); |
| 4733 | if (NILP (family)) | 4738 | if (NILP (family)) |
| 4734 | hints.ai_family = AF_UNSPEC; | 4739 | hints.ai_family = AF_UNSPEC; |