public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/289] New: Mandatory use of xdrec_skiprecord undocumented
@ 2004-07-28 16:14 redhat at elektrono dot com
  2004-08-10  4:19 ` [Bug libc/289] " drepper at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: redhat at elektrono dot com @ 2004-07-28 16:14 UTC (permalink / raw)
  To: glibc-bugs

I have spent about 15 hours debugging xdrrec streams, and finally came across my problem when  
reading xdr_rec.c.  In a comment before xdrrec_skiprecord(), it mentions that this function should be  
called before trying to use the stream.  In fact, this record must be called otherwise reading from  
the stream will always fail.  I strongly encourage you to point this out in the rpc/xdr.h header 
file, so it saves some programmer some time in the future.

-- 
           Summary: Mandatory use of xdrec_skiprecord undocumented
           Product: glibc
           Version: 2.3.2
            Status: NEW
          Severity: minor
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: redhat at elektrono dot com
                CC: glibc-bugs at sources dot redhat dot com


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/289] Mandatory use of xdrec_skiprecord undocumented
  2004-07-28 16:14 [Bug libc/289] New: Mandatory use of xdrec_skiprecord undocumented redhat at elektrono dot com
@ 2004-08-10  4:19 ` drepper at redhat dot com
  2004-08-10 16:28 ` redhat at elektrono dot com
  2004-09-26 21:33 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2004-08-10  4:19 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2004-08-10 04:19 -------
Then propose some wording.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/289] Mandatory use of xdrec_skiprecord undocumented
  2004-07-28 16:14 [Bug libc/289] New: Mandatory use of xdrec_skiprecord undocumented redhat at elektrono dot com
  2004-08-10  4:19 ` [Bug libc/289] " drepper at redhat dot com
@ 2004-08-10 16:28 ` redhat at elektrono dot com
  2004-09-26 21:33 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: redhat at elektrono dot com @ 2004-08-10 16:28 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From redhat at elektrono dot com  2004-08-10 16:28 -------
Ok, in the man page for xdr(3), append to this note under xdrrec_create:

Note:  the  XDR stream's op field must be set by the caller.

so that it reads

Note:  the  XDR stream's op field must be set by the caller.  The caller must call xdrrec_skiprecord() on 
this stream before reading from it.

That seems straightforward enough.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/289] Mandatory use of xdrec_skiprecord undocumented
  2004-07-28 16:14 [Bug libc/289] New: Mandatory use of xdrec_skiprecord undocumented redhat at elektrono dot com
  2004-08-10  4:19 ` [Bug libc/289] " drepper at redhat dot com
  2004-08-10 16:28 ` redhat at elektrono dot com
@ 2004-09-26 21:33 ` drepper at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper at redhat dot com @ 2004-09-26 21:33 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2004-09-26 21:33 -------
Man page changes are completely wrong here.  Bring this up with the man page
maintainer.  glibc does not come with man pages and the info pages don't
document rpc.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


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

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-09-26 21:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-28 16:14 [Bug libc/289] New: Mandatory use of xdrec_skiprecord undocumented redhat at elektrono dot com
2004-08-10  4:19 ` [Bug libc/289] " drepper at redhat dot com
2004-08-10 16:28 ` redhat at elektrono dot com
2004-09-26 21:33 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).