From: Russ Cox <rsc@swtch.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: Re: [9fans] tarfs & 2GB limit
Date: Sat, 14 Jan 2006 13:22:57 -0500 [thread overview]
Message-ID: <ee9e417a0601141022g720dd846q6e1148d6100c95b6@mail.gmail.com> (raw)
In-Reply-To: <20060114121550.4FD0134FFB@dexter-peak.quanstro.net>
> one question, with tpfs, there's a cast to vlong:
> seek(tapefile, 512*(vlong)r->data+off, 0);
> i cast to (int) because the size is only 3 bytes.
> is there anything drasticlly wrong with this?
the cast is there not because r->data is big,
but so that multiplying by 512 and adding
off doesn't overflow.
next prev parent reply other threads:[~2006-01-14 18:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 14:11 cej
2006-01-13 16:41 ` erik quanstrom
2006-01-13 22:33 ` geoff
2006-01-14 0:30 ` erik quanstrom
2006-01-13 22:36 ` C H Forsyth
2006-01-13 22:43 ` geoff
2006-01-14 0:03 ` erik quanstrom
2006-01-14 0:33 ` Devon H. O'Dell
2006-01-14 0:59 ` Paul Lalonde
2006-01-14 1:07 ` erik quanstrom
2006-01-14 12:15 ` erik quanstrom
2006-01-14 18:22 ` Russ Cox [this message]
2006-01-14 21:27 ` erik quanstrom
2006-01-16 2:57 ` erik quanstrom
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=ee9e417a0601141022g720dd846q6e1148d6100c95b6@mail.gmail.com \
--to=rsc@swtch.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).