open or fopen?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,
There is a question about file operation functions used in gcc source
code. I can't figure out why sometimes we use open function such as
load_specs in gcc.c,
static char *
load_specs (const char *filename)
{
 int desc;
 ...
 /* Open and stat the file.  */
 desc = open (filename, O_RDONLY, 0);
 ...
}
why not fopen?

Thanks


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux