All of lore.kernel.org
 help / color / mirror / Atom feed
* file creation detection
@ 2002-06-03 12:23 Luciano - igLnx
  2002-06-03 12:33 ` Stephen Rothwell
  0 siblings, 1 reply; 2+ messages in thread
From: Luciano - igLnx @ 2002-06-03 12:23 UTC (permalink / raw)
  To: linux-fsdevel

How to detect file creation in a directory ?

I need to do a program that stay monitoring a directory looking for new
files, but I think that use of "timers" is not the best pratice to build
efficient application. Then, I'm looking for resources (system calls, etc)
that keep the program in idle mode until a occurency of file creation
events, etc.

Thanks,
Luciano.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: file creation detection
  2002-06-03 12:23 file creation detection Luciano - igLnx
@ 2002-06-03 12:33 ` Stephen Rothwell
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2002-06-03 12:33 UTC (permalink / raw)
  To: Luciano - igLnx; +Cc: linux-fsdevel

Hi Luciano,

On Mon, 3 Jun 2002 09:23:01 -0300 "Luciano - igLnx" <lucianolnx@ig.com.br> wrote:
>
> How to detect file creation in a directory ?
> 
> I need to do a program that stay monitoring a directory looking for new
> files, but I think that use of "timers" is not the best pratice to build
> efficient application. Then, I'm looking for resources (system calls, etc)
> that keep the program in idle mode until a occurency of file creation
> events, etc.

See Documentation/dnotify.txt


-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-06-03 12:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-03 12:23 file creation detection Luciano - igLnx
2002-06-03 12:33 ` Stephen Rothwell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.