9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: [9fans] fseek
Date: Fri, 18 Apr 2003 12:22:43 -0400	[thread overview]
Message-ID: <f830bc8332481b11a347582cb66a8d41@plan9.bell-labs.com> (raw)

It's been pointed out to me that the following functions in
ape/stdio.h are defined differently than POSIX:

extern int fseek(FILE *, long long, int);
extern long long ftell(FILE *);
extern int snprintf(char *, int, const char *, ...);
extern int vsnprintf(char *, int, const char *, va_list);

They should have been:

extern int fseek(FILE *, long, int);
extern long ftell(FILE *);
extern int snprintf(char *, size_t, const char *, ...);
extern int vsnprintf(char *, size_t, const char *, va_list);

I'm going to change them to the standard definitions.
To handle 64 bit offsets, the following are now defined:

extern int fseeko(FILE *, off_t, int);
extern off_t ftello(FILE *);


             reply	other threads:[~2003-04-18 16:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-18 16:22 David Presotto [this message]
2003-04-25 10:40 ` Douglas A. Gwyn

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=f830bc8332481b11a347582cb66a8d41@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --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).