Am Donnerstag, den 29.06.2006, 16:16 +0200 schrieb Marc Santhoff:
> How can i detect if sysutils.FindFirst() or FindNext() fails lacking
> permissions?
As a quick and dirty hack I added an addtitional "stat" on the starting
dir for FindFirst and let it bail out early for protecting
"ErrNo" ("open
Am Donnerstag, den 29.06.2006, 09:12 +0200 schrieb Marco van de Voort:
> > On 28 Jun 06, at 23:41, Marc Santhoff wrote:
> > > Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
> > .
> > .
> > > What I don't understand is why the var "errno" is not set or it's value
> > > is destroy
Marco van de Voort wrote:
>> Marco van de Voort wrote:
>> >
>> > (that is not really the problem, OS errorcodes can be hauled with
>> > getlastoserror, which is errno on *nix)
>>
>> Well, it is a problem, because not returning the error code directly in
>> return value violates SysUtils.FindFirst s
> Marco van de Voort wrote:
> >
> > (that is not really the problem, OS errorcodes can be hauled with
> > getlastoserror, which is errno on *nix)
>
> Well, it is a problem, because not returning the error code directly in
> return value violates SysUtils.FindFirst specification and most probably
>
Marco van de Voort wrote:
>> On 28 Jun 06, at 23:41, Marc Santhoff wrote:
>> > Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
>> .
>> .
>> > What I don't understand is why the var "errno" is not set or it's
>> value
>> > is destroyed before Findfirst/-Next return. Does this valu
> On 28 Jun 06, at 23:41, Marc Santhoff wrote:
> > Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
> .
> .
> > What I don't understand is why the var "errno" is not set or it's value
> > is destroyed before Findfirst/-Next return. Does this value has to be
> > set explicitely by
On 29 Jun 06, at 0:19, Marc Santhoff wrote:
> Am Donnerstag, den 29.06.2006, 00:04 +0200 schrieb Michael Van Canneyt:
.
.
> My approach to detect failing FindFirst/FindNext would be to do
> something like this:
>
> <--- rtl/unix/sysutils.pp:549 --->
> Function GlobToTSearchRec (Var Info : TSearc
On 28 Jun 06, at 23:41, Marc Santhoff wrote:
> Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
.
.
> What I don't understand is why the var "errno" is not set or it's value
> is destroyed before Findfirst/-Next return. Does this value has to be
> set explicitely by using fpseterr
Am Donnerstag, den 29.06.2006, 00:04 +0200 schrieb Michael Van Canneyt:
>
> On Wed, 28 Jun 2006, Marc Santhoff wrote:
>
> > Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
> > > If I remember correctly, the DOS FindFirst/Next only handles
> > > shortstring-sized path names.
> >
On Wed, 28 Jun 2006, Marc Santhoff wrote:
> Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
> > If I remember correctly, the DOS FindFirst/Next only handles
> > shortstring-sized path names.
>
> If possible at all I will not use DOS unit.
>
> > Another "quirk" about using Find
Am Mittwoch, den 28.06.2006, 12:17 -0500 schrieb Jeff Pohlmeyer:
> If I remember correctly, the DOS FindFirst/Next only handles
> shortstring-sized path names.
If possible at all I will not use DOS unit.
> Another "quirk" about using FindNext on Unix is that a
> symlink to a directory sets the fa
11 matches
Mail list logo