9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: William Ahern <william@25thandClement.com>
To: 9fans@cse.psu.edu
Subject: [9fans] fd2path(2)
Date: Mon,  5 May 2003 09:00:03 -0700	[thread overview]
Message-ID: <20030505160003.GA27502@wilbur.25thandClement.com> (raw)

why not make the return value of fd2path() similar to SUSv3's snprintf()?
that is, return the length of the logical string. i've read a few archived
posts on this. one was to make the return value the remainder of the logical
length and the buffer length. another pointed out that inferno just returned
a malloc'd string on its own.

but, why force superfluous use of strlen()? the semantics of snprintf() seem
quite reasonable. in fact, i can't really figure out a down side... anybody?

- Bill



             reply	other threads:[~2003-05-05 16:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-05 16:00 William Ahern [this message]
2003-05-05 16:18 ` rob pike, esq.
2003-05-05 17:32   ` William Ahern
2003-05-05 18:05     ` William Josephson
2003-05-05 18:12     ` rsc
2003-05-05 18:17       ` William Ahern

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=20030505160003.GA27502@wilbur.25thandClement.com \
    --to=william@25thandclement.com \
    --cc=9fans@cse.psu.edu \
    /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.
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).