Bug 33 - TIOCSTAT doesn't appear to work
Summary: TIOCSTAT doesn't appear to work
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 2.0-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: FreeBSD Core Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1994-11-30 06:10 UTC by Alan Judge
Modified: 1994-11-30 06:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Judge 1994-11-30 06:10:01 UTC
	The TIOCSTAT ioctl (which admittedly isn't documented) doesn't
	seem to work.  From a quick look at the kernel code, it looks like
	it should.

	The only program that I know of that is affected by the
	problem is bash, but I would guess that any shells with
	command line editing would also be hit.

How-To-Repeat: 
Run:

#include <sys/types.h>
#include <sys/ioctl.h>

main()
{
	ioctl(1, TIOCSTAT, (char *)0);
}
Comment 1 davidg freebsd_committer freebsd_triage 1994-11-30 15:09:54 UTC
State Changed
From-To: open->closed

The bug was caused by the ioctl requiring the address of an int 
to be copied in. This wasn't necessary - I've changed the ioctl 
to be a no-arg type. All things built using the TIOCSTAT ioctl will 
have to be re-compiled and linked.