Re: fflush

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

 



  if it was for only stdout, then I am wondering why should we specify 
the argument. I have seen it being used on other file 
descriptors also. So it is only handled by the C library and does not get 
translated to any syscall??

 Thanks a lot,
 Raghu

On Sat, 6 Dec 2003, Rob Love wrote:

> On Fri, 2003-12-05 at 11:20, Raghu R. Arur wrote:
> 
> >  So when you call fflush(fp) what exactly happens.
> 
> fflush(3) is a user-space function for flushing the stdio buffers
> provided by the C library.
> 
> It has absolutely no relationship to the kernel, in any way whatsoever.
> 
> Perhaps you are thinking of sync(2) or fsync(2) ?
> 
> 	Rob Love
> 
> 

--
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