Re: rc and errno in apr api

2004-05-17 Thread Stas Bekman
Joe Orton wrote: On Sun, May 16, 2004 at 08:17:41PM -0700, Stas Bekman wrote: What I'm after is having APR API specify which apr functions have errno set, so one can rely on that and not do guessing which can change in the future. Do you mean, such that errno is guaranteed to be equal to the ap

Re: rc and errno in apr api

2004-05-17 Thread Nick Kew
On Mon, 17 May 2004, Joe Orton wrote: > Do you mean, such that errno is guaranteed to be equal to the > apr_status_t returned? I don't think APR does/could/should give that > guarantee anywhere. All your APR are belong to us They cited errno.h as an instance of their IP that had been - erm - il

Re: rc and errno in apr api

2004-05-17 Thread Joe Orton
On Sun, May 16, 2004 at 08:17:41PM -0700, Stas Bekman wrote: > What I'm after is having APR API specify which apr functions have errno > set, so one can rely on that and not do guessing which can change in the > future. Do you mean, such that errno is guaranteed to be equal to the apr_status_t

Re: rc and errno in apr api

2004-05-17 Thread rbb
On Sun, 16 May 2004, Cliff Woolley wrote: > On Sun, 16 May 2004, Stas Bekman wrote: > > > What I'm after is having APR API specify which apr functions have errno set, > > so one can rely on that and not do guessing which can change in the future. > > My gut reaction is that if we actually /need/ e

Re: rc and errno in apr api

2004-05-17 Thread Ben Laurie
Stas Bekman wrote: I have noticed that besides apr_status_t many of the apr api functions get errno set on error, since they perform system calls internally, which set errno. e.g. apr_file_read. While writing interfaces for other systems, that talk to libapr, and use errno for the errors handli

Re: rc and errno in apr api

2004-05-17 Thread Cliff Woolley
On Sun, 16 May 2004, Stas Bekman wrote: > What I'm after is having APR API specify which apr functions have errno set, > so one can rely on that and not do guessing which can change in the future. My gut reaction is that if we actually /need/ errno to be set to glean useful information about what

rc and errno in apr api

2004-05-17 Thread Stas Bekman
I have noticed that besides apr_status_t many of the apr api functions get errno set on error, since they perform system calls internally, which set errno. e.g. apr_file_read. While writing interfaces for other systems, that talk to libapr, and use errno for the errors handling, it's not possib