Search:

Type: Posts; User: kodax

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    in that case, all the files from the user's...

    in that case,
    all the files from the user's directory.
  2. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    Mostly reading and writing..

    Mostly reading and writing..
  3. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    From my observations, speed is reduced with large...

    From my observations, speed is reduced with large 8mb buffers, as compared to 256kb buffers..
    Without a doubt, large buffers decrease speed significantly.
  4. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    8.6. Obtaining Large Buffers...

    8.6. Obtaining Large Buffers
  5. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    c++ - Is using a bigger buffer useful? - Software...

    c++ - Is using a bigger buffer useful? - Software Engineering Stack Exchange


    This guy describes the correct theoretical scenario,
    which in itself is a paradox.

    How can one carry a giant sand...
  6. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    Usually bufsize is 1024 and sometimes 4096. The...

    Usually bufsize is 1024 and sometimes 4096.
    The point was about the chance of a larger buffer failing..
  7. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    I am not sure, but a larger buffer will have...

    I am not sure, but a larger buffer will have quite an impact,
    especially if you are short on RAM..

    fwrite consume free memory continuously - C++ Forum
  8. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    He could be right. In fact, there is a...

    He could be right.

    In fact, there is a possibility that write()
    returns partial writes for larger buffers.
  9. Thread: Handling f-write

    by kodax
    Replies
    21
    Views
    606

    Handling f-write

    @hamster_nz
    The possibility of fwrite() / write() failing increases the larger the buffer ??
  10. Replies
    7
    Views
    236

    IBM Documentation...

    IBM Documentation


    IBM Documentation


    off_t is 32 / 64 bit integer,
    and with a large file, it will overflow.

    Author may be misinformed..
  11. Replies
    7
    Views
    236

    c++ - How does _stat() under Windows exactly work...

    c++ - How does _stat() under Windows exactly work - Stack Overflow
  12. Replies
    7
    Views
    236

    Also one has to take into account a performance...

    Also one has to take into account a performance issue,
    since fread / read requires a buffer.
  13. Replies
    7
    Views
    236

    Stat is posix. Even if fread / read can...

    Stat is posix.

    Even if fread / read can determine file size,
    is it a good approach ?
  14. Replies
    4
    Views
    202

    How do you know what I did not study, did you...

    How do you know what I did not study,
    did you examine my lab papers back then ??
  15. Replies
    4
    Views
    202

    If you do not understand a particular context,...

    If you do not understand a particular context,
    just don't add your half-formed opinion..
  16. Replies
    4
    Views
    202

    Two's Complement Exception or Flaw.

    Can this be considered a design flaw,
    or a regular exception ??


    int a = -2147483648;
    int b = ~a;

    b = 1 + b;
    printf("%d\n", a); /* Prints -2147483648. */
    printf("%d\n", b); /* Also...
  17. Replies
    7
    Views
    236

    Fseek Ftell Non-Compliant

    FIO19-C. Do not use fseek() and ftell() to compute the size of a regular file - SEI CERT C Coding Standard - Confluence


    Is a buffered fread / read to obtain size considered a bad approach,...
  18. Replies
    8
    Views
    468

    There's also a possibility that write() fails,...

    There's also a possibility that write() fails,
    and errno is 0.
  19. Replies
    8
    Views
    468

    Absolutely, it is poor code, it goes against the...

    Absolutely, it is poor code, it goes against the documentation,
    write() returns a value for a reason.

    The idea was to use write() without checking it's return value,
    and relying on errno...
  20. Replies
    8
    Views
    468

    Is there a possibility that write() is successful...

    Is there a possibility that write() is successful and errno may still be set,
    errno is a global..
  21. Thread: paw options

    by kodax
    Replies
    7
    Views
    533

    Why are you going through such pain, Given the...

    Why are you going through such pain,
    Given the fact that people will reject your work.
    Even folks like us, who go through the same thing, don't care.

    Unless there is serious financial...
  22. Replies
    8
    Views
    468

    Ignore Return Value of write()

    The conventional way to use write(),
    is to verify that the return value matches the number of bytes.

    But what could possibly go wrong,
    if the return value is ignored and errno is used..

    errno...
  23. Replies
    6
    Views
    672

    The one who is great is immense, therefore he is...

    The one who is great is immense, therefore he is feared by the masses.
    How can one who is formidable and mighty not arise..
  24. Replies
    6
    Views
    672

    This is a simple question, but a good one.. At...

    This is a simple question, but a good one..

    At some point, when you look back,
    there's always the "what if",
    even if you avoid it.
  25. Replies
    6
    Views
    672

    What about those people who cast malloc ?

    What about those people who cast malloc ?
Results 1 to 25 of 110
Page 1 of 5 1 2 3 4