discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
* uname() in mdoc_validate.c on Solaris
@ 2011-03-31 10:04 Yuri Pankov
  2011-03-31 10:23 ` Kristaps Dzonsons
  0 siblings, 1 reply; 3+ messages in thread
From: Yuri Pankov @ 2011-03-31 10:04 UTC (permalink / raw)
  To: discuss

Hi,

uname(2) on Solaris (OpenSolaris, OpenIndiana, Solaris 11 Express)
states:

RETURN VALUES
     Upon  successful  completion,  a   non-negative   value   is
     returned.  Otherwise,  -1  is  returned  and errno is set to
     indicate the error.

Could we possibly change

    if (uname(&utsname)) {

to

    if (uname(&utsname) == -1) {

to make .Os without arguments work on these OSes?


TIA,
Yuri
--
 To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv

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

end of thread, other threads:[~2011-04-02 22:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-31 10:04 uname() in mdoc_validate.c on Solaris Yuri Pankov
2011-03-31 10:23 ` Kristaps Dzonsons
2011-04-02 22:20   ` Ingo Schwarze

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 NNTP newsgroup(s).