irclog2html for uclibc on 2002.09.23

12:49:49bug1mjn3: i dotn understand your endian patch to get_header_zip
12:50:15bug1if strongarm and i386 are bothe little endian then shouldnt it work on both
12:50:59bug1i think cpio might have endian problems as well as its headers arent stored as ascii
12:51:01mjn3bug1: morning.  i just got a reply off to you.  the problem was that arm pads the end of the struct, so 2 extra bytes were being read with the header
12:51:08bug1k
12:52:50mjn3as i wrote you, i'm not all that happy with the patch, but i didn't have much time to spend on it.  so, i basicly did a quick hack to get things working... at least on arm.  i haven't tested it on big endian
12:55:01bug1mjn3: it seems like a bit of a minefield if a structure is different sizes on different architectures
12:57:46mjn3bug1: that's why you should never read or write a struct directly
12:58:22bug1im sure i read in the glibc docs that if you put __attribute__ ((packed)); at the end of the struct and it applies to every field, buti dotn know if it works in practice
13:00:06bug1hmm... i can see my unions are going to be cause portability problems becasue i read the .raw  part of it and union traslates it into the formated entries
13:00:52mjn3bug1: that should be true, but remember that thats for the members.  it was the struct itself that was being padded so that it's size was a multiple of 4
13:01:40bug1ahh yea ok, isnt there a compiler option to control that ?
13:02:57mjn3no idea... and even if there is, i try to avoid such things since it would be nonportable by definition.  some of the uCilbc stuff i've done also builds with bcc, the 16-bit compiler used for ELKS
13:05:08bug1how about the aproach cpio uses, it reads a 110 byte block and uses sscanf to convert it to the seperate fields.. that should be portable shouldnt it ?
13:18:55mjn3bug1: not sure.  i'd have to look at it and i need to be somewhere in 30 min.  don't have time to look at it right now
13:28:39bug1mjn3: fair enough, i have to cleep now anyway... talk to you later
13:28:43bug1sleep
16:04:43mjn3BZFlag: morning.  i sent an email about usbdnet to the address you gave me.  no reply as of yet
16:25:29BZFlagcool. copy me on any others you send so I can see how stuart reacts. ;-)
16:25:59mjn3ok
23:17:31mjn3bug1: glenn, i must be doing something wrong.  but the few times i've tried, i haven't gotten cpio in unstable busybox to work
23:22:04bug1mjn3: hmm... on i386
23:22:17bug1mjn3: cpio -iF filename.cpio
23:22:24bug1that extracts
23:22:54mjn3i'll try it again
23:23:06bug1i havent tried the unstable branch for a while, the version in my new unarchive code works if you want to give that a try :)
23:24:31mjn3ok.. later though.  got to go wash dishes...
23:59:46bug1mjn3: one think about cpio is that there are a few different standards

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with infobot logs, split per channel and by date, etc.