getrlimit problem

Greetings,

I have …

struct rlimit rlp;
int result;

result = getrlimit(RLIMIT_NOFILE, &rlp);

After the call result is -1 and errno says “Invalid argument”

What am I doing wrong?

]{ristoph

“]{ristoph” wrote:

Greetings,

I have …

struct rlimit rlp;
int result;

result = getrlimit(RLIMIT_NOFILE, &rlp);

After the call result is -1 and errno says “Invalid argument”

What am I doing wrong?

You’re calling getrlimit() that’s wrong :wink:
It is unsupported (but advertized, hehe)

  • igor

That’s rather lame


*** Hello QNX documentation people ***

Do you think that you could perhaps note where a particular function listed
in the documentation is not supported (or what arguments are not supported).
Maybe a “Unsupported library routines.” section in the technotes at least.

]{


“Igor Kovalenko” <Igor.Kovalenko@motorola.com> wrote in message
news:3AA8146F.EBE764D3@motorola.com

“]{ristoph” wrote:

Greetings,

I have …

struct rlimit rlp;
int result;

result = getrlimit(RLIMIT_NOFILE, &rlp);

After the call result is -1 and errno says “Invalid argument”

What am I doing wrong?


You’re calling getrlimit() that’s wrong > :wink:
It is unsupported (but advertized, hehe)

  • igor

I think this one is equivalent to sysconf(_SC_OPEN_MAX)
if you’re looking for a workaround.

-seanb

]{ristoph <news2@kristoph.net> wrote:
: Greetings,

: I have …

: struct rlimit rlp;
: int result;

: result = getrlimit(RLIMIT_NOFILE, &rlp);

: After the call result is -1 and errno says “Invalid argument”

: What am I doing wrong?

: ]{ristoph

]{ristoph <news2@kristoph.net> wrote:

That’s rather lame

The functions that are documented SHOULD reflect those that ARE supported
(conversely, those that aren’t doc’d are “use at your own risk”
– they’re probably unsupported).

However, since we create the doc’s in parallel with development, there
are times during beta that the documentation is ahead of development,
and vice versa. We’re trying to automate the “what should be doc’d” lists
vs actual development implementation to make the documentation more accurate
for future releases.

BTW, the printed Neutrino 2.0 docs for getrlimit() specifically note at the
beginning of the description that it wasn’t implemented for that release.
(We even used a pointy finger note so that it would stand out!)

However, in March 2000, I removed the note from the online docs because the
development guys told me that it had been implemented for 2.1.

Time for some development guru to step in and help you!!!

-Donna


*** Hello QNX documentation people ***

Do you think that you could perhaps note where a particular function listed
in the documentation is not supported (or what arguments are not supported).
Maybe a “Unsupported library routines.” section in the technotes at least.

]{



“Igor Kovalenko” <> Igor.Kovalenko@motorola.com> > wrote in message
news:> 3AA8146F.EBE764D3@motorola.com> …
“]{ristoph” wrote:

Greetings,

I have …

struct rlimit rlp;
int result;

result = getrlimit(RLIMIT_NOFILE, &rlp);

After the call result is -1 and errno says “Invalid argument”

What am I doing wrong?


You’re calling getrlimit() that’s wrong > :wink:
It is unsupported (but advertized, hehe)

  • igor