From: rinku rathore <rinku_ques@yahoo.com>
To: Suciu Flavius <suciuflavius@tiscali.de>,
Vger Kernel <linux-c-programming@vger.kernel.org>
Subject: Re: corrected:what is fcntl function
Date: Mon, 4 Oct 2004 04:33:52 -0700 (PDT) [thread overview]
Message-ID: <20041004113352.23628.qmail@web53008.mail.yahoo.com> (raw)
In-Reply-To: <cjra7o$4qb$1@sea.gmane.org>
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
next prev parent reply other threads:[~2004-10-04 11:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-04 8:37 rinku rathore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041004113352.23628.qmail@web53008.mail.yahoo.com \
--to=rinku_ques@yahoo.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=suciuflavius@tiscali.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).