From: "Ivan A. Melnikov" <iv@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Полтергейст в gcc/i586
Date: Tue, 5 Jul 2016 09:48:37 +0300
Message-ID: <CANR-VvwUw6rjA=6j0aNFJxd5pCmcP+vmfN-TtwuSW_1a6P43LQ@mail.gmail.com> (raw)
In-Reply-To: <201607041809.19928.asy@altlinux.ru>
2016-07-04 17:09 GMT+03:00 Sergey Afonin <asy@altlinux.ru>:
> Да, работает правильно, если сделать size_t bufsz вместо off_t. Но, вроде
> как, есть off64_t же ? Хотя фиг с ним, дальше пусть апстрим разбирается.
> Спасибо.
off_t и off64_t -- синонимы если определён макрос __USE_FILE_OFFSET64.
У нас это так, и это очень правильно в современном мире. Проблемный
код мог быть написан в системе, где этот макрос не определён, и тогда
off_t был 32-битен и код работал правильно.
Btw, правильно распечатать off_t printf-подобными функциями это то ещё
веселье. В C99 рекомендуют что-то вроде
printf("%jd\n", (intmax_t)bufsz);
Для застрявших на C89 жизнь ещё печальнее.
--
WBR,
Ivan A. Melnikov
prev parent reply other threads:[~2016-07-05 6:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-03 15:51 [devel] Полтергейст в gcc/i586 (#define для =?utf-8?b?INC60L7QvdGB0YLQsNC90YLRiw==?=) Sergey Y. Afonin
2016-07-03 16:11 ` Hihin Ruslan
2016-07-03 16:39 ` [devel] Полтергейст в gcc/i586 (#define) Sergey Y. Afonin
2016-07-03 17:34 ` Hihin Ruslan
2016-07-04 13:21 ` Sergey Afonin
2016-07-04 13:54 ` [devel] Полтергейст в gcc/i586 (#define для =?utf-8?b?INC60L7QvdGB0YLQsNC90YLRiw==?=) Ivan A. Melnikov
2016-07-04 14:04 ` [devel] Полтергейст в gcc/i586 Sergey Afonin
2016-07-04 14:09 ` Sergey Afonin
2016-07-05 6:48 ` Ivan A. Melnikov [this message]
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='CANR-VvwUw6rjA=6j0aNFJxd5pCmcP+vmfN-TtwuSW_1a6P43LQ@mail.gmail.com' \
--to=iv@altlinux.org \
--cc=devel@lists.altlinux.org \
/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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git