TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: William F. McGill/CA 73177,3433 (X)
from: Mark Griffith 76070,41
date: 1993-03-27 02:56:16
subject: #17800-Bigger read/write buffer

#: 17810 S12/OS9/68000 (OSK)
    27-Mar-93  02:56:16
Sb: #17800-Bigger read/write buffer
Fm: Mark Griffith 76070,41
To: William F. McGill/CA 73177,3433 (X)

Bill,

 > Can anyone tell me how to increase the size of the system buffer associated
 > with the read() and write() commands in C 3.2?

You must be talking about fread() and fwrite().  There is no internal buffering
on read() and write() since they are low-level functions:

        read (path, buffer, count)

should explain it.  You can make the buffer in your code any size you want.
Actually, 32768 is the largest you can predefine.  You need to use malloc() or
something like that to make a larger buffer.

Hope this helps.


                  /************* /\/\ark ************/

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.