* corrected:what is fcntl function
@ 2004-10-04 8:38 rinku rathore
2004-10-04 20:06 ` Suciu Flavius
0 siblings, 1 reply; 4+ messages in thread
From: rinku rathore @ 2004-10-04 8:38 UTC (permalink / raw)
To: Vger Kernel
Hello,
Actually,I wanted specifically about the following
fcntl functions,listed below,here fd is file
descriptor
fcntl (fd, F_SETOWN, getpid());
fcntl (fd, F_SETFL,fcntl (fd, F_GETFL, NULL) |
O_ASYNC));
Rinku
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: corrected:what is fcntl function
2004-10-04 8:38 corrected:what is fcntl function rinku rathore
@ 2004-10-04 20:06 ` Suciu Flavius
2004-10-04 11:33 ` rinku rathore
0 siblings, 1 reply; 4+ messages in thread
From: Suciu Flavius @ 2004-10-04 20:06 UTC (permalink / raw)
To: linux-c-programming
fcntl (fd, F_SETOWN, getpid());
the user of the program will became the owner of the opened file
fcntl (fd, F_SETFL, fcntl (fd, F_GETFL, NULL) | O_ASYNC));
when somebody are reading / writing or delete your file, the operating
system will generate a SIGNAL to your program (default is SIGIO )
check man 2 fcntl for more detailed explanation.
rinku rathore wrote:
> Hello,
> Actually,I wanted specifically about the following
> fcntl functions,listed below,here fd is file
> descriptor
>
> fcntl (fd, F_SETOWN, getpid());
>
> fcntl (fd, F_SETFL,fcntl (fd, F_GETFL, NULL) |
> O_ASYNC));
>
> Rinku
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!
> http://promotions.yahoo.com/new_mail
> -
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: corrected:what is fcntl function
2004-10-04 20:06 ` Suciu Flavius
@ 2004-10-04 11:33 ` rinku rathore
0 siblings, 0 replies; 4+ messages in thread
From: rinku rathore @ 2004-10-04 11:33 UTC (permalink / raw)
To: Suciu Flavius, Vger Kernel
hello,
fcntl (fd, F_SETFL, fcntl (fd, F_GETFL, NULL) |
O_ASYNC));
when somebody are reading / writing or delete your
file, the operating
system will generate a SIGNAL to your program
(default is SIGIO )
basically fcntl handle the file descriptor that means
when system generate a Signal SIGIO it is handled by
that fd(file descriptor),passed as first argument can
I get more information about O_ASYNC
--- Suciu Flavius <suciuflavius@tiscali.de> wrote:
> fcntl (fd, F_SETOWN, getpid());
>
> the user of the program will became the owner of the
> opened file
>
> fcntl (fd, F_SETFL, fcntl (fd, F_GETFL, NULL) |
> O_ASYNC));
>
> when somebody are reading / writing or delete your
> file, the operating
> system will generate a SIGNAL to your program
> (default is SIGIO )
>
> check man 2 fcntl for more detailed explanation.
>
>
> rinku rathore wrote:
> > Hello,
> > Actually,I wanted specifically about the following
> > fcntl functions,listed below,here fd is file
> > descriptor
> >
> > fcntl (fd, F_SETOWN, getpid());
> >
> > fcntl (fd, F_SETFL,fcntl (fd, F_GETFL, NULL) |
> > O_ASYNC));
> >
> > Rinku
> >
> >
> >
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail is new and improved - Check it out!
> > http://promotions.yahoo.com/new_mail
> > -
> > To unsubscribe from this list: send the line
> "unsubscribe linux-c-programming" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at
> http://vger.kernel.org/majordomo-info.html
> >
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
> http://vger.kernel.org/majordomo-info.html
>
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* corrected:what is fcntl function
@ 2004-10-04 8:37 rinku rathore
0 siblings, 0 replies; 4+ messages in thread
From: rinku rathore @ 2004-10-04 8:37 UTC (permalink / raw)
To: Vger Kernel
Hello,
Actually,I wanted specifically about the following
fcntl functions,listed below,here fd is file
descriptor
fcntl (fd, F_SETOWN, getpid()
fcntl (fd, F_SETFL,fcntl (fd, F_GETFL, NULL) |
O_ASYNC))
Rinku
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-04 20:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-04 8:38 corrected:what is fcntl function rinku rathore
2004-10-04 20:06 ` Suciu Flavius
2004-10-04 11:33 ` rinku rathore
-- strict thread matches above, loose matches on Subject: below --
2004-10-04 8:37 rinku rathore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).