Re: lseek on /proc/kmsg

From: H. Peter Anvin
Date: Wed Mar 23 2005 - 05:28:28 EST


Followup to: <Pine.LNX.4.61.0503230811020.21578@xxxxxxxxxxxxxxx>
By author: Jan Engelhardt <jengelh@xxxxxxxxxxxxxxx>
In newsgroup: linux.dev.kernel
>
> Well, what does lseek(fd, >0, SEEK_END) do on normal files?
>

Sets the file pointer beyond the end of the file (a write() there will
extend the file.)

-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/