Re: pos != &file->f_pos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2004-01-05 at 13:08, Frank.A.Uepping@t-online.de wrote:
> Inside some file operations functions (read/write) I saw this:
> 
> size_t read(struct file *file, char *buf, size_t count loff_t *pos)
> {
> 	if (pos != &file->f_pos)
> 		return -ESPIPE;
> ...
> 
> What is this good for?

Using pread() gives an ESPIPE error.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux