From: Alexandre Oliva (oliva@dcc.unicamp.br)
Date: Thu Dec 10 1998 - 08:14:07 EST
On Dec 10, 1998, Godmar Back <gback@cs.utah.edu> wrote:
>>
>> For example, I almost checked in a patch that would make the class
>> reading code use <stdio.h> routines to get the advantage of buffering,
>> by replacing read(), write(), etc with fread(), fwrite(), etc.
>> But the I had no idea this would screw up threading because read()
>> and write() are actually not the normal system calls you know and love.
> Even though there is undoubtedly some convenience in simply writing
> "read(), open(), etc.", I tend to agree that for the sake of clarity,
> renaming would not be a bad idea. No preprocessor, it's the Java idea
> after all.
We could even have these `forbidden' names defined to some invalid
sequence of tokens if some symbol such as AVOID_LIBC is defined, to
avoid unnoticed misuses.
-- Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org} oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org} Universidade Estadual de Campinas, SP, Brasil
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:11 EDT