How to aviod a process from deleting an opened file

From: murthy (vanjina_murthy_at_rediffmail.com)
Date: 07/29/04

  • Next message: rnwvr: "Re: What is this .sheep/ that appeared in my home folder?"
    Date: 28 Jul 2004 21:32:02 -0700
    
    

    I am developing an application using C

    I am facing a problem , when a file is opened by one process either in
    read/write mode using open function , at the same time the other
    process can delete the same file using unlink function.

    What i want is that if a file is opened by one process either for
    reading/writing it should not be deleted or even can be opened by
    other process(i.e open should fail). Anyone knows, how it can
    achieved.

    The purpose is that i want to open a file in exclusive mode.

    Thanks in adavance

    Murthy


  • Next message: rnwvr: "Re: What is this .sheep/ that appeared in my home folder?"

    Relevant Pages

    • Re: How to aviod a process from deleting an opened file
      ... In article, murthy wrote: ... > I am facing a problem, when a file is opened by one process either in ... > read/write mode using open function, at the same time the other ...
      (comp.os.linux.development.apps)
    • Re: How to aviod a process from deleting an opened file
      ... > I am facing a problem, when a file is opened by one process either in ... > read/write mode using open function, at the same time the other ... > The purpose is that i want to open a file in exclusive mode. ...
      (comp.os.linux.development.system)
    • How to aviod a process from deleting an opened file
      ... I am facing a problem, when a file is opened by one process either in ... read/write mode using open function, at the same time the other ... Murthy ...
      (comp.os.linux.development.apps)
    • How to aviod a process from deleting an opened file
      ... I am facing a problem, when a file is opened by one process either in ... read/write mode using open function, at the same time the other ... Murthy ...
      (comp.os.linux.development.system)
    • Opening a file in exclusive mode
      ... I am facing a problem, when a file is opened by one process either in ... read/write mode using open function, at the same time the other ... Murthy ...
      (comp.os.linux)