Re: stdint.h

2010-05-19 Thread John Plevyak
I hate to say it, but the simplest thing is to use long long int for all this junk. In practice that is what it is on most systems, or at least that covers their useful range. The unfortunate answer is that C/C++ is just plain ill considered. The argument that you should just use cout is

Using access instead stat for checking the resource existance

2010-05-19 Thread Mladen Turk
Hi, We use stat all over the places for checking the presence of the file or directory. I propose we use access(path, R_OK [| W_OK]) instead, since the check is done with the real user id. Comments? Regards -- ^TM

Re: stdint.h

2010-05-19 Thread Mladen Turk
On 05/19/2010 08:25 AM, John Plevyak wrote: I hate to say it, but the simplest thing is to use long long int for all this junk. In practice that is what it is on most systems, or at least that covers their useful range. Agreed. Think that Leif is working on 64-bit file API, and forcing that

Re: Using access instead stat for checking the resource existance

2010-05-19 Thread George Paul
+1 -George On 5/19/10 3:09 AM, Mladen Turk wrote: Hi, We use stat all over the places for checking the presence of the file or directory. I propose we use access(path, R_OK [| W_OK]) instead, since the check is done with the real user id. Comments? Regards

Re: stdint.h

2010-05-19 Thread Leif Hedstrom
On 05/19/2010 04:17 AM, Mladen Turk wrote: On 05/19/2010 08:25 AM, John Plevyak wrote: I hate to say it, but the simplest thing is to use long long int for all this junk. In practice that is what it is on most systems, or at least that covers their useful range. Agreed. Think that Leif is

Re: stdint.h please vote

2010-05-19 Thread John Plevyak
I propose that we change ink64 - int64 inku64 - uint64 ink32 - int32 inku32 - uint32 ink16 - int16 inku16 - uint16 ink8 - int8 inku8 - uint8 because 1) we decided to move from ink - ts 2) tsu64 doesn't scan like an integer 3) int64_t is long on linux which is incompatible with %lld the

Re: stdint.h please vote

2010-05-19 Thread Leif Hedstrom
On 05/19/2010 08:23 AM, John Plevyak wrote: I propose that we change ink64 - int64 inku64 - uint64 ink32 - int32 inku32 - uint32 ink16 - int16 inku16 - uint16 ink8 - int8 inku8 - uint8 because 1) we decided to move from ink - ts 2) tsu64 doesn't scan like an integer 3) int64_t is

Re: stdint.h please vote

2010-05-19 Thread John Plevyak
Yes we will change INXXX_MAX etc. Unfortunately int64 is not standard. So we have a couple alternatives. 1) use nonstandard types where typedef long long int int64; typedef int int32; typedef short int16; typedef char int8; etc. which work on every system and which permit seamless

Re: stdint.h please vote

2010-05-19 Thread Bryan Call
On 05/19/2010 09:14 AM, John Plevyak wrote: Yes we will change INXXX_MAX etc. Unfortunately int64 is not standard. So we have a couple alternatives. 1) use nonstandard types where typedef long long int int64; typedef int int32; typedef short int16; typedef char int8; etc.

Re: stdint.h please vote

2010-05-19 Thread Leif Hedstrom
On 05/19/2010 10:31 AM, Bryan Call wrote: On 05/19/2010 09:14 AM, John Plevyak wrote: Yes we will change INXXX_MAX etc. Unfortunately int64 is not standard. So we have a couple alternatives. 1) use nonstandard types where typedef long long int int64; typedef int int32; typedef

Re: stdint.h please vote

2010-05-19 Thread Jason
+1, against type casting for this On Wed, May 19, 2010 at 12:31 PM, Bryan Call bc...@yahoo-inc.com wrote: On 05/19/2010 09:14 AM, John Plevyak wrote: Yes we will change INXXX_MAX etc. Unfortunately int64 is not standard. So we have a couple alternatives. 1) use nonstandard types where

Re: stdint.h please vote

2010-05-19 Thread Alan M. Carroll
+1 Wednesday, May 19, 2010, 11:31:50 AM, you wrote: On 05/19/2010 09:14 AM, John Plevyak wrote: Yes we will change INXXX_MAX etc. Unfortunately int64 is not standard. So we have a couple alternatives. 1) use nonstandard types where typedef long long int int64; typedef int int32;

Re: stdint.h please vote

2010-05-19 Thread George Paul
Late but +1 -George On 5/19/10 9:57 AM, Leif Hedstrom wrote: On 05/19/2010 10:31 AM, Bryan Call wrote: On 05/19/2010 09:14 AM, John Plevyak wrote: Yes we will change INXXX_MAX etc. Unfortunately int64 is not standard. So we have a couple alternatives. 1) use nonstandard types where

2.1.0 Segfaulting in regression tests

2010-05-19 Thread Alan M. Carroll
I am trying to run regression tests (traffic_server -R 1) but it segfaults in Cache_part. According to TS-74 for the 'Cache_part' regression test to pass a cache storage has to be allocated 128MB. I checked there is a cache.db file that is 144M. Does this really mean a cache storage