LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   What function does linux call to save a file ? (https://www.linuxquestions.org/questions/programming-9/what-function-does-linux-call-to-save-a-file-189716/)

lostboy 06-04-2004 01:36 PM

What function does linux call to save a file ?
 
What system function does linux call when it saves a file. What I am trying to accomplish is having this function do something extra every time a file is saved.

jlliagre 06-04-2004 02:53 PM

usually: open, write, close

lostboy 06-04-2004 03:03 PM

Thanks for the reply. I looked at unistd.h and studied the write(2) function. Then a minute later it hit me that I was doing things the hard way. I have a server in which rsync will be doing all the writing, so what I need to hack is the rsync writing routine, and not linux write(2).


All times are GMT -5. The time now is 03:16 PM.