473,791 Members | 3,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7807
On Jul 2, 3:35 am, Medvedev <3D.v.Wo...@gma il.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.progr ammer, 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...@gma il.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.progr ammer.
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.progr ammer.
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.progr ammer.

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********@gma il.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********@gma il.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
5260
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 module C and some other modules
112
10368
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, share your experience in using IDENTITY as PK .
17
134459
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 details.I tried to find its meaning in the header files but did'nt got a good answer.So can somebody please tell me that what is the meaning of size_t and what are its possible values? Thanks
669
26234
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 paper written on this subject. On the Expressive Power of Programming Languages, by Matthias Felleisen, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf
132
4663
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 community. It would seem that C99 is the most up-to-date Standard, but far more people seem to be working off the C89 Standard. Could someone please explain to me why this is so? --
22
3085
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 like that: int main(char argc, char *argv, char *env) { try { auto Exception mainException(1); mainException.setErrNo(42);
4
7809
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 convert string to numerical and i know that stringstream class allows a string-based object to be treated as a
5
1614
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 is a Generic Type ??? ..........
6
1525
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 the clc "regulars" in trying to push perfectly sensible C questions into other groups only causes trouble, difficulty and confusion, and wastes the time of other posters. The question was topical both in clc (which discusses all of C, not just...
0
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10419
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10147
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9987
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7531
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2910
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.