LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-04-2004, 01:36 PM   #1
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
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.
 
Old 06-04-2004, 02:53 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
usually: open, write, close
 
Old 06-04-2004, 03:03 PM   #3
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Call of Duty won't save settings... BDiddy Linux - Games 1 09-14-2005 10:10 PM
How to call another function from a function? geminigal Programming 4 04-21-2005 10:41 PM
python call function in same file(very newbie question) rmanocha Programming 2 11-21-2004 12:04 AM
how to call function?? harpal Programming 3 04-29-2003 05:59 AM
The Call to the Linux to save the People chingasman Linux - General 6 12-30-2002 12:57 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration