Date: Sun, 21 May 2006 00:01:28 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 706 ************************************************** Saturday 20 May 2006 Number 706 ************************************************** Subjects for today 1 Re: utimes chown and xattr : Andreas =?iso-8859-1?Q?B=FCning?= 2 Re: utimes chown and xattr : Brendan Oakley" 3 Re: utimes chown and xattr : dave bamford **= Email 1 ==========================** Date: Thu, 18 May 2006 19:53:01 +0200 From: Andreas =?iso-8859-1?Q?B=FCning?= Subject: Re: utimes chown and xattr Dave Bamford wrote: > > Nearly finished the porting of this BoxBackup program but I have a few minor > issues to resolve. I cannot retrieve the file attributes from the backup > store > > ::utimes(Filename, times) returns an error which gives errno 13 Does the file exist, is it open? > The times structure has good data (I think) and Filename returns just > the filename (no path) > this statement > printf("BCFA.cpp:634\nfilename=%s\n0=%d\n1=%d\n",Filename,times[0],times[1]); This is illegal code. sizeof(times[0]) == 8 != sizeof(int). Use printf("BCFA.cpp:634\nfilename=%s\n0=%d.%d\n1=%d.%d\n",Filename,times[0].tv_sec, times[0].tv_usec, times[1].tv_sec, times[1].tv_usec); > Although I tried to set times[0] and times[1] to the same, but I realise > its a structure of > seconds in unixtime and milliseconds but I am not sure how to interrogate it > correctly. #include times[0].tv_sec = time(NULL); times[0].tv_usec = 0; times[1] = times[0]; should provide a useful value for times[i]. Not tested. > Finally is there any support for extended attributes, unix has some > xattr stuff but I can't > find anything in OS/2 emx libraries Old emx has sys/ea.h and sys/ead.h. Bye, Andreas **= Email 2 ==========================** Date: Fri, 19 May 2006 10:35:33 -0700 From: "Brendan Oakley" Subject: Re: utimes chown and xattr On 5/18/06, Andreas Büning wrote: > Old emx has sys/ea.h and sys/ead.h. But if he's using gcc-3.3.5 with latest libc, he can't mix, right? Or how would he go about making use of this? Brendan **= Email 3 ==========================** Date: Sat, 20 May 2006 11:19:59 +0100 From: dave bamford Subject: Re: utimes chown and xattr Brendan Oakley wrote: > On 5/18/06, Andreas Büning wrote: > >> Old emx has sys/ea.h and sys/ead.h. > > > But if he's using gcc-3.3.5 with latest libc, he can't mix, right? Or > how would he go about making use of this? > > Brendan > > What gets lost if I throw away the eas? I know rexx scripts precomile there but that can be recreated. This is a backup system so I only need to be able to restore what can't be recreated easily. I am using gcc-3.3.5 so are there any possibilities of making use od old-emx features? Or perhaps I should wait for xattr to be built into libc? Dave Bamford.