On Sat, Dec 15, 2012 at 3:18 AM, Tom Tromey wrote: >>>>>> "Hui" == Hui Zhu writes: > > Hui> +static int > Hui> +null_file_fseek (struct ui_file *stream, long offset, int whence) > Hui> +{ > Hui> + return -1; > Hui> +} > > It seems like this should set errno as well. > > Tom OK. Set errno to EBADF in new patch because its means "The stream specified is not a seekable stream". Thanks, Hui