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;
}
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++
New contributor
add a comment |
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++
New contributor
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
add a comment |
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++
New contributor
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++
linux c c++
New contributor
New contributor
New contributor
asked 50 mins ago
thinkthink
1
1
New contributor
New contributor
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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