NetBSD-Users archive

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

Re: Is use of 'binary' mode necessary to open files on NetBSD?



    Date:        Sat, 2 Dec 2023 09:18:56 +0530
    From:        Mayuresh <mayuresh%acm.org@localhost>
    Message-ID:  <ZWqpKE9fMGEFfRUn@localhost>

  | On NetBSD, the fopen man page clearly says 'b' is ignored. So wonder if
  | gcc layer introduces the need to use it in above usage pattern.

It is in stdio (see  src/lib/libc/stdio/flags.c) - that is in
fopen() and its siblings.   What some higher level library might
do is however entirly up to it.

kre


Home | Main Index | Thread Index | Old Index