limits, types etc

Is there a place where the types and limits used are documented
and I don’t want to hear read the code :slight_smile:


e.g
the number of processes
number of open files
number of threads per process
max file sizes

uint32_t
etc

Some of these things can be gleaned from ksh’s command “ulimit -a”.

If you are in any doubt about the size of uint32_t, then I can
only suggest that you peruse (I didn’t say read) the code in the
header files :slight_smile:

dB


acellarius@yahoo.com wrote, ca. Thu, 27 Mar 2003 19:09:17 GMT:

Is there a place where the types and limits used are documented
and I don’t want to hear read the code :slight_smile:


e.g
the number of processes
number of open files
number of threads per process
max file sizes

uint32_t
etc

acellarius@yahoo.com wrote:

Is there a place where the types and limits used are documented
and I don’t want to hear read the code > :slight_smile:



e.g
the number of processes

Bounded by memory.

number of open files

I think, 1000.

number of threads per process

Bounded by memory (I think)

max file sizes

Dependent on the file system. fs-qnx4.so – 2G (last I heard).
fs-ext2.so is doc as not supporting large files, so it is 2G as well.
Don’t know for the others.

uint32_t

uint32_t is intended to be clear from its name. Unsigned Integer of
32 bits.

While <limits.h> is a common place to look for some of these things,
there are enough #defined sections in there it is hard to tell what
is going on.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

David Gibbs <dagibbs@qnx.com> wrote:

acellarius@yahoo.com > wrote:
Is there a place where the types and limits used are documented
and I don’t want to hear read the code > :slight_smile:
While <limits.h> is a common place to look for some of these things,
there are enough #defined sections in there it is hard to tell what
is going on.

You’d be suprised with what is spit out by “getconf -a” … :slight_smile:

On 27 Mar 2003 22:47:43 GMT, David Gibbs <dagibbs@qnx.com> wrote:

acellarius@yahoo.com > wrote:
Is there a place where the types and limits used are documented
and I don’t want to hear read the code > :slight_smile:

Thanks David
While I appreciate the answers, these are just examples of
the sort of things I was looking for (on behalf of a customer).
I would really like to be able to look in a few places in
the documentation and/or the helpviewer to see these things.
BTW According to the report by http://www.realtime-info.be/encyc/,
the number of processes are 4095, and threads 32767.
Which just brings me back to the question :where are these documented
officially.

e.g
the number of processes

Bounded by memory.

number of open files

I think, 1000.

number of threads per process

Bounded by memory (I think)

max file sizes

Dependent on the file system. fs-qnx4.so – 2G (last I heard).
fs-ext2.so is doc as not supporting large files, so it is 2G as well.
Don’t know for the others.

uint32_t

uint32_t is intended to be clear from its name. Unsigned Integer of
32 bits.

While <limits.h> is a common place to look for some of these things,
there are enough #defined sections in there it is hard to tell what
is going on.