C language file operationSamba system calls for reading/writing files from/to NAS issued from Windows desktop...

Where is read command?

Is there any way for a Half-Orc Sorcerer to get proficiency with a heavy weapon?

Who pays for increased security measures on flights to the US?

What could a Medieval society do with excess animal blood?

Old story where computer expert digitally animates The Lord of the Rings

Can you use a reaction to affect initiative rolls?

Phrasing "it says" or "it reads"

Will greasing clutch parts make it softer

Did Stalin kill all Soviet officers involved in the Winter War?

3D nonogram – What's going on?

Fine-tuning parameters for existing methods

What do you call the motor that fuels the movement of a robotic arm?

What instances can be solved today by modern solvers (pure LP)?

Does a reference have a storage location?

What does "another" mean in this case?

Wrong Output in self defined Quaternionic Multiplication

what is the meaning of "stock" dilution on the Massive Dev Chart Website?

Can I deep fry food in butter instead of vegetable oil?

Why are symbols not written in words?

Who are the police in Hong Kong?

Show that there are infinitely more problems than we will ever be able to compute

What is the right way to query an I2C device from an interrupt service routine?

Is my background sufficient to start Quantum Computing

Which are more efficient in putting out wildfires: planes or helicopters?



C language file operation


Samba system calls for reading/writing files from/to NAS issued from Windows desktop clientDoes opening a regular file by `open()` in a C program create a file `/proc/$pid/fd/$number`?C programming language in every operating systems bookWhat was the reason for lseek function to return file descriptors as long integer?Restore file ownership after running chown by accidentStart a remote process using sshpass not workingMutual exclusion between all Linux threads and processesWhen do we jump into kernel part of our process virtual memory other than when we use system calls? (In Linux)is `write()` asynchronous write?Byte swap question (Bitwise operation)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















One of my requirements is to encapsulate a layer of logic on the open functions at the bottom of the system. For example, if a file is opened and its filename is a, open the B file and return it to the caller. If the file name is not a, it is returned directly to the open function of the calling system. May I ask who can help me write the same example? I know it's easy.










share|improve this question







New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Hi and welcome. Please edit your question and include some details about (1) what you've tried and (2) what happened when you tried it.

    – Andy Dalton
    34 mins ago


















0















One of my requirements is to encapsulate a layer of logic on the open functions at the bottom of the system. For example, if a file is opened and its filename is a, open the B file and return it to the caller. If the file name is not a, it is returned directly to the open function of the calling system. May I ask who can help me write the same example? I know it's easy.










share|improve this question







New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Hi and welcome. Please edit your question and include some details about (1) what you've tried and (2) what happened when you tried it.

    – Andy Dalton
    34 mins ago














0












0








0








One of my requirements is to encapsulate a layer of logic on the open functions at the bottom of the system. For example, if a file is opened and its filename is a, open the B file and return it to the caller. If the file name is not a, it is returned directly to the open function of the calling system. May I ask who can help me write the same example? I know it's easy.










share|improve this question







New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











One of my requirements is to encapsulate a layer of logic on the open functions at the bottom of the system. For example, if a file is opened and its filename is a, open the B file and return it to the caller. If the file name is not a, it is returned directly to the open function of the calling system. May I ask who can help me write the same example? I know it's easy.







linux c c++






share|improve this question







New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question







New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question






New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 50 mins ago









thinkthink

1




1




New contributor



think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




think is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • Hi and welcome. Please edit your question and include some details about (1) what you've tried and (2) what happened when you tried it.

    – Andy Dalton
    34 mins ago



















  • Hi and welcome. Please edit your question and include some details about (1) what you've tried and (2) what happened when you tried it.

    – Andy Dalton
    34 mins ago

















Hi and welcome. Please edit your question and include some details about (1) what you've tried and (2) what happened when you tried it.

– Andy Dalton
34 mins ago





Hi and welcome. Please edit your question and include some details about (1) what you've tried and (2) what happened when you tried it.

– Andy Dalton
34 mins ago










0






active

oldest

votes














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






think is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f527962%2fc-language-file-operation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








think is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















think is a new contributor. Be nice, and check out our Code of Conduct.













think is a new contributor. Be nice, and check out our Code of Conduct.












think is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f527962%2fc-language-file-operation%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...