Re: Trouble executing example translator from Hurd Hacking Guide

2019-07-28 Thread Samuel Thibault
Hello, Andrew Eggenberger, le dim. 28 juil. 2019 04:21:21 -0500, a ecrit: > It's working now, Good :) > Both putting #define _FILE_OFFSET_BITS 64 and switching the offset > type in the read function to loff_t ? Only one of the two should be needed. Note that the #define needs to be very first,

Re: Trouble executing example translator from Hurd Hacking Guide

2019-07-28 Thread Andrew Eggenberger
Thanks Samuel, It's working now, with a few small tweaks. Both putting #define _FILE_OFFSET_BITS 64 and switching the offset type in the read function to loff_t caused the translator to output what appears to be the contents of some memory instead of a string of '1's. But compiling with -D_FILE_

Re: Trouble executing example translator from Hurd Hacking Guide

2019-07-28 Thread Andrew Eggenberger
Thank you. Yes, I misunderstood. All three methods work (independently) now. Samuel Thibault writes: > Hello, > > Andrew Eggenberger, le dim. 28 juil. 2019 04:21:21 -0500, a ecrit: >> It's working now, > > Good :) > >> Both putting #define _FILE_OFFSET_BITS 64 and switching the offset >> type i