10-13-2012
what is the main difference between difference between using nonatomic lseek and O_APPEND
I think both write at the end of the file ......
but is there a sharp difference between those 2 instruction .....
thank you
this is my 3rd question today forgive me
10 More Discussions You Might Find Interesting
1. Linux
samba:/home/backup # df -h /home/
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 34G 8.6G 26G 26% /home
samba:/home/backup # df -H /home/
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 37GB 9.2GB 28GB 26% /home
what... (2 Replies)
Discussion started by: cw1972
2 Replies
2. UNIX for Dummies Questions & Answers
What is the main difference between grep and sed (1 Reply)
Discussion started by: ss4u
1 Replies
3. UNIX for Dummies Questions & Answers
Many times over the years, I've noticed that if I accidentally type 'cd //', my bash prompt will display that I am in // instead of /. If I do an ls command, it looks just like I'm in /. So this morning I decided to try and do 'cd ///' all the way up to a full 'cd //////'. None of those attempts... (1 Reply)
Discussion started by: deckard
1 Replies
4. Shell Programming and Scripting
Hi
what is the difference between following:
if
then
//some code
fi
AND
if test
then
//some code
fi (3 Replies)
Discussion started by: skyineyes
3 Replies
5. Shell Programming and Scripting
please explain in detail (2 Replies)
Discussion started by: crackthehit007
2 Replies
6. Shell Programming and Scripting
just wondering what the difference is between 1,$ and /g when doing a substitution in vi. doesn't seem to be much difference from what i can see. (2 Replies)
Discussion started by: bigubosu
2 Replies
7. UNIX for Dummies Questions & Answers
scp 123.txt user1@computer1.com:..//john_x1/lab
scp 123.txt user1@computer1.com:../john_x1/lab
What is the difference between single and slash here and in general?
How to copy if we have a unique directory somewhere? Is some of above ways more prefered or... better solutions exists???
... (8 Replies)
Discussion started by: c_lady
8 Replies
8. UNIX for Dummies Questions & Answers
$x=10
and providing the spaces between = and 10
$x= 10 (4 Replies)
Discussion started by: shashank1311
4 Replies
9. Shell Programming and Scripting
Heyas
I'm reworking tui-dd atm, and having a similar issue with a 'weird formated tempfile'.
I've already applied what seemed to help from: https://www.unix.com/unix-for-dummies-questions-and-answers/261156-awk-should-work-shouldnt-2.html
However, it is weird...
The mini-dd works as... (2 Replies)
Discussion started by: sea
2 Replies
10. Shell Programming and Scripting
In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13.
I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT PHP
xml_set_processing_instruction_handler
XML_SET_PROCESSING_INSTRUCTION_HANDLER(3) 1 XML_SET_PROCESSING_INSTRUCTION_HANDLER(3)
xml_set_processing_instruction_handler - Set up processing instruction (PI) handler
SYNOPSIS
bool xml_set_processing_instruction_handler (resource $parser, callable $handler)
DESCRIPTION
Sets the processing instruction (PI) handler function for the XML parser $parser.
A processing instruction has the following format:
target data?>
?>) can not be quoted, so this character sequence should not appear in the PHP code you embed with PIs in XML documents.If it does, the
rest of the PHP code, as well as the "real" PI end tag, will be treated as character data.
PARAMETERS
o $parser
- A reference to the XML parser to set up processing instruction (PI) handler function.
o $handler
-$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function
named by $handler must accept three parameters:
handler (resource $parser, string $target, string $data)
o $parser
- The first parameter, parser, is a reference to the XML parser calling the handler.
o $target
- The second parameter, $target, contains the PI target.
o $data
- The third parameter, $data, contains the PI data.
If a handler function is set to an empty string, or FALSE, the handler in question is disabled.
Note
Instead of a function name, an array containing an object reference and a method name can also be supplied.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
PHP Documentation Group XML_SET_PROCESSING_INSTRUCTION_HANDLER(3)