473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

what's the meaning of 64 in fopen64

what's the meaning of the number 64 in the function fopen64?!!!
i know fopen64 used to open big files but what 64 refer to
and how much the usual fopen can open
-
pls explain
Jul 2 '08 #1
7 7786
On Jul 2, 3:35 am, Medvedev <3D.v.Wo...@gmail.comwrote:
what's the meaning of the number 64 in the function fopen64?!!!
i know fopen64 used to open big files but what 64 refer to
and how much the usual fopen can open
fopen64() is not a standard function.
Presumably it means that this function can open files as large as 2^64
bytes.
That particular implementation/standard probably also offers ftell64()
or similar.
With a google I find that fopen64 is part of the Large File Spec,
something about SuS.
It would be better for you to ask about fopen64() in
comp.unix.programmer, because it's topical there.

The C standard deals with this in another way, with fgetpos() and
fsetpos().
fopen() works fine with files of any size - it's ftell for example
that doesn't.
See question 12.25 of the C-FAQ.
<http://c-faq.com/>
Jul 2 '08 #2
Hi

On Tue, 01 Jul 2008 17:43:51 -0700, vippstar wrote:
On Jul 2, 3:35 am, Medvedev <3D.v.Wo...@gmail.comwrote:
>how much the usual fopen can open
There is no one answer to that, but see below about 32 bit off_t.
>what's the meaning of the number 64 in the function fopen64?!!!
Presumably it means that this function can open files as large as
2^64 bytes. That particular implementation/standard probably also
offers ftell64() or similar.
I guess it is analogous to fopen but implemented in terms of off64_t
wherever off_t might have been used (if at all). It would be able to
handle files of up to ~2^63 bytes since off_t is signed (to allow one to
seek backwards).
With a google I find that fopen64 is part of the Large File Spec,
something about SuS.
It was (or is) an interim measure to allow *nix programs to handle files
larger than 2GB while still being ABI compatible with libc's where off_t
is 32 bits. Almost all new (desktop & server, at least) architectures
have off_t as 64 bits, so new programs may decide to ignore the
extensions, at a cost of compatibility with large files on older or
unusual systems. In such cases smaller files will still work, but the
process gets delivered a signal if a file grows to big.

RTFM:
man lseek64

HTH
viza
Jul 2 '08 #3
On Jul 2, 12:43 pm, viza <tom.v...@gmil.comwrote:
<snip off-topic>
viza, since you seem to be fond of helping people asking UNIX
questions here on comp.lang.c, the next time you are going to answer
one, set the follow-ups to comp.unix.programmer.
Jul 2 '08 #4
Hi

On Wed, 02 Jul 2008 05:56:04 -0700, vippstar wrote:
On Jul 2, 12:43 pm, viza <tom.v...@gmil.comwrote: <snip off-topic>
viza, since you seem to be fond of helping people asking UNIX questions
here on comp.lang.c, the next time you are going to answer one, set the
follow-ups to comp.unix.programmer.
If you had followed your own advice then my reply to your post would have
gone there! :-D

viza
Jul 2 '08 #5
On Jul 2, 4:27 pm, viza <tom.v...@gmil.comwrote:
Hi

On Wed, 02 Jul 2008 05:56:04 -0700, vippstar wrote:
On Jul 2, 12:43 pm, viza <tom.v...@gmil.comwrote: <snip off-topic>
viza, since you seem to be fond of helping people asking UNIX questions
here on comp.lang.c, the next time you are going to answer one, set the
follow-ups to comp.unix.programmer.

If you had followed your own advice then my reply to your post would have
gone there! :-D
Wrong, my reply was about the topicality of this newsgroup.
Please don't post off-topic UNIX advice here.
Jul 2 '08 #6
On Tue, 1 Jul 2008 17:35:56 -0700 (PDT), Medvedev
<3D********@gmail.comwrote:
>what's the meaning of the number 64 in the function fopen64?!!!
i know fopen64 used to open big files but what 64 refer to
and how much the usual fopen can open
The first 63 versions of the function did not work properly or did not
sell well.
Remove del for email
Jul 3 '08 #7
Barry Schwarz wrote:
Medvedev <3D********@gmail.comwrote:
>what's the meaning of the number 64 in the function fopen64?!!!
i know fopen64 used to open big files but what 64 refer to
and how much the usual fopen can open

The first 63 versions of the function did not work properly or
did not sell well.
I assume you are trying to contest Antonius Twink for his position
of glory? :-)

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Jul 3 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jinal jhaveri | last post by:
Hi All, I have one question regarding circular inheritance I have 3 files 1) A.py , having module A and some other modules 2) B.py having module B and some other modules 3) C.py having...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
17
by: candy_init | last post by:
I sometimes comes across statements which invloves the use of size_t.But I dont know exactly that what is the meaning of size_t.What I know about it is that it is used to hide the platform...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
132
by: Frederick Gotham | last post by:
If we look at a programming language such as C++: When an updated Standard comes out, everyone adopts it and abandons the previous one. It seems though that things aren't so clear-cut in the C...
22
by: nospam_news | last post by:
I currently get asked about my usage of "auto". What is it for? The keyword is clearly superflous here. In contrast to the huge majority of C/C++ developers I write definitions very explicitly...
4
by: Virtual_X | last post by:
it's only language confusion i am non-english speaker so i heard about stream in alot of c++ tutorials ie: in iostream and in sstream headers in sstream we use the class stringstream to...
5
by: =?Utf-8?B?Sm9seW5pY2U=?= | last post by:
Hi everyone, I am learning c# and i don´t understand a piece of code , can anyone explain the meaning of this code please. public class vector { public double? R = null; //I suppose this...
6
by: Antoninus Twink | last post by:
On 2 Jul 2008 at 10:35, Jens Thoms Toerring wrote: Rightly so? Only according you your solipsistic view of what should be "topical" in clc. As this thread demonstrates, this stupid insistence of...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.