Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 1995 16:18:30 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@freebsd.org, mpp@mpp.minn.net
Subject:   Re: subyte()
Message-ID:  <199507240618.QAA04367@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I was looking into PR# 462 (uname system call doesn't return
>uts.version), and it appears to me that the problem is that
>the subyte() routine isn't writing the bytes back to the 
>correct address in the caller's memory.  Subyte() isn't
>called in very many places, so it is possible that
>it has been broken for a while and no one would have
>ever really noticed.

It is called a lot for tty input via ureadc().

>Could someone go double check me on this and make sure
>I'm not hallucinating about this?

The uname() in kern_xxx.c is a mirage.  It is now only for
compatibility.  uname() is now implemented in the library
by calling sysctl() for each component.

There is also compatibility cruft for a the BSDI uname().

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507240618.QAA04367>