From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,2bb1f01ee77dfda1 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-03-28 09:48:10 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: emuntean@newlog.com (Eugen Muntean) Newsgroups: comp.unix.tru64 Subject: Re: does tru64 v.4.g support long long int (%lld)? Date: 28 Mar 2002 09:48:10 -0800 Organization: http://groups.google.com/ Message-ID: <304099f8.0203280948.38d5731@posting.google.com> References: <304099f8.0203270912.60536a8e@posting.google.com> NNTP-Posting-Host: 212.11.46.11 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1017337690 11743 127.0.0.1 (28 Mar 2002 17:48:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Mar 2002 17:48:10 GMT Xref: archiver1.google.com comp.unix.tru64:7139 Bob Harris wrote in message news:... > In article <304099f8.0203270912.60536a8e@posting.google.com>, > emuntean@newlog.com (Eugen Muntean) wrote: > > X I tried to compile with cc, a tcp code for communication between > X machines tru64 and a linux backup server. The client (tru64) code > X contains a statement like: > X > X sprintf(buf, "%lld", st_size); > X > X where st_size contain the size of the file to be backed up (it may be > X >2GO) > X > X The compiler works well, but the binary code made a lot of damage in > X the memory. > X > X I am asking if tru64 support the long long int type? > X I didn't also find the cc compiler option "FILE_OFFSET_BITS" (like in > X 7.2 RH Linux). > X > X Could anyone help me? > X Eugen > > a 'long' in Tru64 UNIX is 64 bits. > > "%ld" formats a 64 bit long. > > I do not know what FILE_OFFSET_BITS is, but there is a pathconf() > _PC_FILESIZEBITS in Tru64 UNIX v5.*, is this similar to what you are > looking for? > > Bob Harris Yes, you are right. The FILE_OFFSET_BITS is an -Dname preprocessor option for cc compiler, defined in a Rules.make file. Unfortunately these option is not considered by tru64 cc compiler. (I forced it using an explicit #define) Thank you, Eugen