Pedro Simões wrote: > Hello, > I'm trying to figure out the unpack template for the AIX utmp struct. > > I've tried this templates: > A256 A14 A64 l s x2 l l s2 A256 l l2 l6 > A256 A14 A64 l s x2 l l s2 A256 l x8 x24 > A256 A14 A64 l s x2 l s2 A256 l l2 l6 > A256 A14 A64 l s x2 l s2 A256 l x8 x24 > > All of them gives the error: "x outside of string" > > > I think that the "#if defines" confuses a little. > > Any help?
I would try i instead of l to start with. l is exactly 32 and i is 'at least' 32. Then what I would do is just unpack it with C* and then dump the contents in hex and see if you can verify the structure. Then you could try modifying your unpack to match (assuming you can gleen further info from the dump as to the actual structure). _______________________________________________ Perl-Unix-Users mailing list Perl-Unix-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs