[tlbuild] dvi test?

Karl Berry karl at freefriends.org
Wed Feb 2 00:14:45 CET 2022


    How about doing things in the opposite order? I.e. move the fseek()
    call, that calls lseek(), _before_ ftruncate. 

>      3208/0x31ed:  ftruncate(0x6, 0x0, 0x0)		 = 0 0
>      3208/0x31ed:  lseek(0x6, 0xFFFFFFFFFFFFF7C7, 0x1)		 = -1 Err#22

Hi Bruno H - I think it's the implementation of ftruncate that is doing
that lseek, not the xdvi code. I.e., that's how the file is being
truncated, by seeking backward to the beginning. Per John's other
messages, too (SEEK_SET vs. SEEK_CUR) ... --thanks, karl.




More information about the tlbuild mailing list.