Date: Thu, 3 Nov 2005 00:04:54 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 645 ************************************************** Wednesday 02 November 2005 Number 645 ************************************************** Subjects for today 1 Re: Help me understand this code : Stefan.Neis at t-online.de 2 Re: Amateur porter got stuck : Dave Yeo" 3 Re: Amateur porter got stuck : Dave Bamford **= Email 1 ==========================** Date: Tue, 1 Nov 2005 16:29:20 +0100 From: Stefan.Neis at t-online.de Subject: Re: Help me understand this code Hi, > This is the values and what happens - is this expected behaviour? > flags before = 2 (result of flags = fcntl(fd, F_GETFL, 0); ) > O_NONBLOCK = 4 (from Innotek GCC fcntl.h) > flags after = 6 (after flags |= O_NONBLOCK;) Looks correct... > Seems to have just added the two values together? And results in an > invalid parameter? Might be worth checking exactly what "fcntl" does support. For example EMX documentation says that "O_NONBLOCK" is not supported with "-Zsys" or "F_GETFL should return the access mode but does not" and some other restrictions, I don't know about Innotek... Regards, Stefan **= Email 2 ==========================** Date: Tue, 01 Nov 2005 12:41:14 -0800 (PST) From: "Dave Yeo" Subject: Re: Amateur porter got stuck On Tue, 01 Nov 2005 11:13:21 +0000, Dave Bamford wrote: >Hi > >For a few weeks now I have been fighting with getting a port of a backup >application completed. I have got it to compile with gcc 3.3.5 but I always >get a ssl error 5 when trying to connect the client with the server. >At this time I am only trying to port the client. >I think the problem is with the implimentation of sockets and I don't >know enough about the differences between os2 and unix sockets. >I am using AF_INET and I have looked at the windows port of this app >for some guidance. > >Perhaps it is my environment setup. > >If there is anyone who has some time to help it would be greatly >appreciated. > >I have put the files on our website at >http://www.logical-progress.com/downloads.php > >The configuration and keys are set up to use our server as the >backup server. The author and website of the code is at >http://www.fluffy.co.uk/boxbackup. What command line parametres are you passing to bbackupd.exe? After doing a make clean and rebuilding boxbackup.os2.zip I get I:\...\boxbackup-0.09-backup-client-os2>bbackupd.exe No random device -- additional seeding of random number generator not performed. Box Backup Client v0.09, (c) Ben Summers 2003, 2004 bbackupd: exception Common OSFileOpenError (Can't open a file -- attempted to load a non-existant config file or bad file referenced within?) (1/2) Dave **= Email 3 ==========================** Date: Tue, 01 Nov 2005 21:13:26 +0000 From: Dave Bamford Subject: Re: Amateur porter got stuck Dave Yeo wrote: >On Tue, 01 Nov 2005 11:13:21 +0000, Dave Bamford wrote: > > > >>Hi >> >>For a few weeks now I have been fighting with getting a port of a backup >>application completed. I have got it to compile with gcc 3.3.5 but I always >>get a ssl error 5 when trying to connect the client with the server. >>At this time I am only trying to port the client. >>I think the problem is with the implimentation of sockets and I don't >>know enough about the differences between os2 and unix sockets. >>I am using AF_INET and I have looked at the windows port of this app >>for some guidance. >> >>Perhaps it is my environment setup. >> >>If there is anyone who has some time to help it would be greatly >>appreciated. >> >>I have put the files on our website at >>http://www.logical-progress.com/downloads.php >> >>The configuration and keys are set up to use our server as the >>backup server. The author and website of the code is at >>http://www.fluffy.co.uk/boxbackup. >> >> > >What command line parametres are you passing to bbackupd.exe? After doing a make clean and rebuilding boxbackup.os2.zip I get >I:\...\boxbackup-0.09-backup-client-os2>bbackupd.exe >No random device -- additional seeding of random number generator not performed. > >Box Backup Client v0.09, (c) Ben Summers 2003, 2004 >bbackupd: exception Common OSFileOpenError (Can't open a file -- attempted to load a non-existant config file or bad file referenced within?) (1/2) > >Dave > > > > Boxbackup reads a conf file from the top level of C:\ called bbackupd.conf. Its in the keys_conf.zip file on the site. The "no random device" is normal for win and os2 as there is no /dev/random Also you need all the other files in keys_conf.zip at the c:\ level. They are referenced in the conf file. Dave.