mailing list of musl libc
 help / color / mirror / code / Atom feed
From: He X <xw897002528@gmail.com>
To: musl@lists.openwall.com
Subject: maybe a smaller HOST_NAME_MAX?
Date: Thu, 14 Feb 2019 16:59:05 +0800	[thread overview]
Message-ID: <CAPG2z0-8u=CVrfyupz_cQ8wrZWveHrHSi3ur1JOGPcHWwWau9A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

in limits.h, glibc defines it as 64, musl has a valueof 255.

according a man page:
http://man7.org/linux/man-pages/man2/gethostname.2.html. HOST_NAME_MAX is
defined as 64 since linux 1.0. include/uapi/asm-generic/param.h could
verify that.

as musl targeted on linux-based devices, i think it makes sense to use a
smaller HOST_NAME_MAX.

-- 
Best regards,
xhe

[-- Attachment #2: Type: text/html, Size: 794 bytes --]

             reply	other threads:[~2019-02-14  8:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-14  8:59 He X [this message]
2019-02-14 16:32 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPG2z0-8u=CVrfyupz_cQ8wrZWveHrHSi3ur1JOGPcHWwWau9A@mail.gmail.com' \
    --to=xw897002528@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).