Thread (4 messages) 4 messages, 3 authors, 2025-08-25

Re: Issue in man page ioctl.2

From: Alejandro Colomar <alx@kernel.org>
Date: 2025-08-24 20:14:24

Hi Helge,

On Sun, Aug 24, 2025 at 02:48:42PM +0000, Helge Kreutzmann wrote:
Without further ado, the following was found:

Issue:    What is fildes?
It seems a weird way of saying file descriptor.  I'll change it to fd.

Also present in close(2), where it's a bug, because nothing else calls
it 'fildes':

	$ grep -rn \\bfildes\\b
	man2/close.2:219:.I fildes
	man2/ioctl.2:102:.BI "ioctl(int " fildes ", int " op ", struct sgttyb *" argp );
	man2/ioctl.2:139:.BI "int ioctl(int " fildes ", int " op ", ... /* " arg " */);"


Cheers,
Alex
"B<ioctl(int >I<fildes>B<, int >I<op>B<, struct sgttyb *>I<argp>B<);>\n"

"B<ioctl(int >I<fildes>B<, int >I<request>B<, struct sgttyb *>I<argp>B<);>\n"
-- 
<https://www.alejandro-colomar.es/>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help