Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Oct 2000 14:14:01 +0900 (JST)
From:      nokubi@ff.iij4u.or.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/22175: kldstat(2) does not error return value, and kldstat(1) uses it.
Message-ID:  <200010210553.OAA03653@mfi00.iij.ad.jp>

next in thread | raw e-mail | index | archive | help

>Number:         22175
>Category:       kern
>Synopsis:       kldstat(2) does not return error value, and kldstat(1) uses it.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          wish
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 20 23:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     NOKUBI Hirotaka
>Release:        FreeBSD 4.0-STABLE i386
>Organization:
>Environment:

	FreeBSD sassaby.nokubi.or.jp 5.0-CURRENT FreeBSD 5.0-CURRENT #6: Fri Sep 15 18:57:36 JST 2000     root@:/usr/src/sys/compile/SASSABY  i386

>Description:

	Kldstat(2) man page saids it seems always returns 0, and kldstat(1)
	expects negative return value when some error condition occurs.
	It seems that klkstat() in src/sys/kern/kern_linker.c returns 0 on
	successful case, or some garbage on failed case (or, p_retval[0]'s
	initial value?).

>How-To-Repeat:

	

>Fix:

	I think kldstat(2) should return -1 when some error condition occurs.
	Kldnext(2) has same problem.


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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