02.07.2013 Views

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

A/UX® System Administrator's Reference Sections 1M, 7, and 8

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

gd(7) gd(7)<br />

7<br />

for writing.<br />

ioctl (fd, GD SPARE, blocknum)<br />

This ioctl causes hardware-specific bad blocking of the<br />

block number given as the third argument (blocknum) to the<br />

function. The block number is always relative to the start of<br />

a partition. This ioctl call may only be used by the superuser,<br />

or if the file descriptor is open for writing.<br />

ioctl (fd, GD UNSETPNAME, 0)<br />

The partition name, if any, assigned to the minor device<br />

number is removed. If the minor number is assigned a partition<br />

by default, the partition name assignment is recalculated<br />

on next access. Otherwise, an error (ENXIO) is returned on<br />

next access. This function may only be invoked by the superuser,<br />

or if the file descriptor is open for writing.<br />

ioctl (fd, UIOCEXTE, 0)<br />

This ioctl activates error printing on the system console.<br />

The file descriptor may correspond to any character device<br />

file associated with the desired controller. This ioctl may<br />

only be performed by the superuser, or on a file descriptor<br />

that is open for writing.<br />

ioctl (fd, UIOCFORMAT, disk/ormat)<br />

This ioctl formats the disk. The placeholder fd should be<br />

an open file descriptor of the character device (that is,<br />

/ dev / rdsk/ c?d? s ?). The third parameter to the ioctl<br />

function call contains the address of a diskformat structure<br />

(defined in /usr / include/ sys/ diskformat. h).<br />

The d secsize field of this structure may be used to specify<br />

512-=-byte or 532-byte sector size for formatting. The 532byte<br />

sector size will not be supported in future versions of the<br />

driver <strong>and</strong> should not be used. The other fields of the diskformat<br />

structure are ignored. The ioctl may only be applied<br />

to partition 31 of a disk. The ioctl may only be used<br />

by the superuser, or if the file descriptor is open for writing.<br />

ioctl (fd, UIOCNEXTE, 0)<br />

This ioctl deactivates error printing. The file descriptor<br />

may correspond to any character device file associated with<br />

the desired controller. When deactivated, device errors continue<br />

to be logged by errdemon(lM) but do not disturb t.lte<br />

display on the console. This ioctl may only be performed<br />

February, 1990<br />

RevisionC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!