Opened files

Discussion in 'C Programming' started by KnUser, Dec 2, 2007.

  1. KnUser

    KnUser Guest

    Is there a way to get to know if a file is opened by a process?
     
    KnUser, Dec 2, 2007
    #1
    1. Advertisements

  2. In article <>,
    KnUser <> wrote:
    >Is there a way to get to know if a file is opened by a process?


    In the standard C library, there isn't even such a thing as a "process".

    Information about open files is operating system dependant. You will
    need to ask your question in a newsgroup or mailing list specific to
    your OS.

    Note: your question is ambiguous and can be interpreted in at least
    three ways. When you ask in the other newsgroup, you should be more
    specific:

    A) Is there at least one file that a specific process XYZ has open?
    (For some particular definition of 'file' -- e.g., are you including
    devices?)

    B) Does specific process XYZ have specific file ABC open?

    C) Is there some process which has specific file ABC open?


    Note: if your operating system of interest is derived from Windows NT
    then I suggest you check out the programs from sysinternals.com
    (a wholely owned Microsoft division.)
    --
    "History is a pile of debris" -- Laurie Anderson
     
    Walter Roberson, Dec 2, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. EC
    Replies:
    3
    Views:
    477
  2. fitwell
    Replies:
    2
    Views:
    728
    fitwell
    Nov 13, 2003
  3. Replies:
    0
    Views:
    486
  4. yawgmoth7

    List of files to be opened

    yawgmoth7, Jan 25, 2006, in forum: Python
    Replies:
    5
    Views:
    348
    Fredrik Lundh
    Jan 26, 2006
  5. japss
    Replies:
    0
    Views:
    365
    japss
    Apr 29, 2009
  6. KevinSimonson
    Replies:
    32
    Views:
    1,077
  7. Francis Hwang

    Closing files opened with Open3.popen

    Francis Hwang, Jun 2, 2004, in forum: Ruby
    Replies:
    2
    Views:
    278
    Paul Brannan
    Jun 2, 2004
  8. Prasanth

    Unlink command for opened files

    Prasanth, Apr 16, 2008, in forum: Perl Misc
    Replies:
    8
    Views:
    268
    Ben Morrow
    Apr 16, 2008
Loading...