From: Alexey Tourbin <at@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: [devel] Re: LFS
Date: Thu, 12 May 2005 19:50:56 +0400
Message-ID: <20050512155056.GM28372@solemn.turbinal.org> (raw)
In-Reply-To: <20050512153147.GC22519@immo.ru>
[-- Attachment #1: Type: text/plain, Size: 2654 bytes --]
On Thu, May 12, 2005 at 07:31:47PM +0400, Alexey I. Froloff wrote:
> * Alexey Tourbin <at@> [050512 19:08]:
> > > > По поводу https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125064
> > > > Не включить ли поддержку LFS в %optflags по умолчанию?
> > > Нет, спасибо.
> > Обоснование?
> А не сорвёт ли крышу произвольной программе от этого?
Обоснуй. Каким именно образом произвольной программе может сорвать крышу?
$ cat test.c
#include <stdio.h>
$ diff -u =(gcc -E test.c) =(gcc -E -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 test.c)
--- /proc/self/fd/11 2005-05-12 19:49:59 +0400
+++ /proc/self/fd/12 2005-05-12 19:49:59 +0400
@@ -518,9 +518,9 @@
# 86 "/usr/include/stdio.h" 3 4
-typedef _G_fpos_t fpos_t;
+typedef _G_fpos64_t fpos_t;
# 138 "/usr/include/stdio.h" 3 4
@@ -548,12 +548,8 @@
-
-
-
-
-
-extern FILE *tmpfile (void);
+# 169 "/usr/include/stdio.h" 3 4
+extern FILE *tmpfile (void) __asm__ ("" "tmpfile64");
# 180 "/usr/include/stdio.h" 3 4
extern char *tmpnam (char *__s) ;
@@ -584,21 +580,17 @@
extern int fflush_unlocked (FILE *__stream);
# 237 "/usr/include/stdio.h" 3 4
+# 254 "/usr/include/stdio.h" 3 4
+extern FILE *fopen (__const char *__restrict __filename, __const char *__restrict __modes) __asm__ ("" "fopen64");
+extern FILE *freopen (__const char *__restrict __filename, __const char *__restrict __modes, FILE *__restrict __stream) __asm__ ("" "freopen64");
-extern FILE *fopen (__const char *__restrict __filename,
- __const char *__restrict __modes);
-
-extern FILE *freopen (__const char *__restrict __filename,
- __const char *__restrict __modes,
- FILE *__restrict __stream);
-# 264 "/usr/include/stdio.h" 3 4
# 275 "/usr/include/stdio.h" 3 4
extern FILE *fdopen (int __fd, __const char *__modes) ;
@@ -823,20 +815,29 @@
extern void rewind (FILE *__stream);
-# 688 "/usr/include/stdio.h" 3 4
+# 677 "/usr/include/stdio.h" 3 4
+extern int fseeko (FILE *__stream, __off64_t __off, int __whence) __asm__ ("" "fseeko64");
+
+
+extern __off64_t ftello (FILE *__stream) __asm__ ("" "ftello64");
+
+
+
+
+
+# 702 "/usr/include/stdio.h" 3 4
+extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos) __asm__ ("" "fgetpos64");
+extern int fsetpos (FILE *__stream, __const fpos_t *__pos) __asm__ ("" "fsetpos64");
-extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos);
-extern int fsetpos (FILE *__stream, __const fpos_t *__pos);
-# 711 "/usr/include/stdio.h" 3 4
# 720 "/usr/include/stdio.h" 3 4
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-12 15:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 8:13 [devel] LFS Alexey Tourbin
2005-05-12 10:12 ` Victor Forsyuk
2005-05-12 13:12 ` Dmitry V. Levin
2005-05-12 14:17 ` [devel] LFS Alexey Tourbin
2005-05-12 15:31 ` Alexey I. Froloff
2005-05-12 15:50 ` Alexey Tourbin [this message]
2005-05-12 18:03 ` Dmitry V. Levin
2005-05-13 12:52 ` Victor Forsyuk
2005-05-14 12:46 ` Alexey Tourbin
2005-05-14 13:21 ` Dmitry V. Levin
2005-05-12 15:47 ` Dmitry V. Levin
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=20050512155056.GM28372@solemn.turbinal.org \
--to=at@altlinux.ru \
--cc=devel@altlinux.ru \
/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