This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/282] New: POSIX.1-2001:popen streams are byte-oriented


POSIX.1-2001 states that pipe streams created by popen() are byte-oriented
(1003.1 2004 edition p 874 l 28526)
Yet running a program such as the following extract shows they are not after
a call to popen.

 if ((fp = popen(cmd, "r")) == NULL)
        {
            /* popen failed */ ;
        }
                                                               
  
  if ((ret = fwide(fp, 0)) >= 0)
       {
         printf ("fail\n");
        /* fwide is expected to return < 0 to denote that
            the stream is byte oriented but is returning 0
            to denote no orientation */      
       }

-- 
           Summary: POSIX.1-2001:popen streams are byte-oriented
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: a dot josey at opengroup dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=282

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]