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

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

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:
    387
  2. fitwell
    Replies:
    2
    Views:
    618
    fitwell
    Nov 13, 2003
  3. Replies:
    0
    Views:
    397
  4. yawgmoth7

    List of files to be opened

    yawgmoth7, Jan 25, 2006, in forum: Python
    Replies:
    5
    Views:
    283
    Fredrik Lundh
    Jan 26, 2006
  5. japss
    Replies:
    0
    Views:
    292
    japss
    Apr 29, 2009
Loading...

Share This Page