Find the answer to your Linux question:
Results 1 to 2 of 2
i need to determine the buffer size of the cp in ... i dont even have a clue where to start... i wrote a program to copy a text file ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    1

    Exclamation determind cp buffer size

    i need to determine the buffer size of the cp in ... i dont even have a clue where to start... i wrote a program to copy a text file ... then used the strace to count how many times read was called... but i dont think its turning out right.... any suggestions!"?

  2. #2
    Just Joined!
    Join Date
    Mar 2008
    Location
    Chennai, India
    Posts
    26

    can you be more specific

    Quote Originally Posted by kathaleya View Post
    i need to determine the buffer size of the cp in ... i dont even have a clue where to start... i wrote a program to copy a text file ... then used the strace to count how many times read was called... but i dont think its turning out right.... any suggestions!"?
    Replace "..." with some words which explain your problem.

    BTW, I suggest you to use buffered io functions for cp implementation. Low level system calls overload the execution.

    Cheers,
    Sarma

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...