> ! ftruncate(fileno(tmpfd), (off_t)0); Why not include include the proper prototypes and let the compiler do all the mirky casting? This will keep down the number and size of patches required. ------------------------------------------------------------------------------