linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES
       [not found] ` <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-04-03 16:37   ` Zsbán Ambrus
  2013-09-07 23:23   ` Zsbán Ambrus
  1 sibling, 0 replies; 3+ messages in thread
From: Zsbán Ambrus @ 2010-04-03 16:37 UTC (permalink / raw)
  Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

Dear linux man-pages,

The attached patch adds four ioctls from linux/msdos_fs.h to the
ioctl_list(2) manpage.

The ioctl FAT_IOCTL_GET_ATTRIBUTES reads FAT attributes of a file a
mounted vfat file system.  I tested this on Linux 2.6.33, an example
script can be found at "http://www.perlmonks.com/?node_id=832623".

The constants are a bit difficult to access, you may need to include
the following headers to get them defined correctly (and the order
matters; and even then they are defined the have the wrong type,
unsigned long instead of int): <sys/types.h> <sys/ioctl.h>
<linux/types.h> <linux/dirent.h> <linux/msdos_fs.h>.  Do you suppose
this should be mentioned in the manpage?

Ambrus

[-- Attachment #2: fatioc.diff --]
[-- Type: text/x-diff, Size: 587 bytes --]

--- ./ioctl_list.2	2010-04-03 17:52:39.000000000 +0200
+++ ./ioctl_list.2	2010-04-03 18:23:31.000000000 +0200
@@ -430,8 +430,17 @@
 0x000089E0	SIOCGETVIFCNT	struct sioc_vif_req *	// I-O
 0x000089E1	SIOCGETSGCNT	struct sioc_sg_req *	// I-O
 .TE
 
+// <include/linux/msdos_fs.h>
+.TS
+l l l l.
+0x82307201	VFAT_IOCTL_READDIR_BOTH	struct dirent [2]
+0x82307202	VFAT_IOCTL_READDIR_SHORT	struct dirent [2]
+0x80047210	FAT_IOCTL_GET_ATTRIBUTES	__u32 *
+0x40047211	FAT_IOCTL_SET_ATTRIBUTES	const __u32 *
+.TE
+
 // <include/linux/mtio.h>
 .TS
 l l l l.
 0x40086D01	MTIOCTOP	const struct mtop *

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

* Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES
       [not found] ` <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2010-04-03 16:37   ` Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES Zsbán Ambrus
@ 2013-09-07 23:23   ` Zsbán Ambrus
       [not found]     ` <CAHku1CHPnGMze526X0KUVUxtixRr8qxPg+-Q75ZqjB03HWKkKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 3+ messages in thread
From: Zsbán Ambrus @ 2013-09-07 23:23 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]

Dear Linux man-pages.

I'd like to ask about the status of this patch I'd sent years ago,
which doesn't seem to be applied as of man-pages 3.53.  Should I
modify the patch somehow or supply more information?

Thanks in advance,

Ambrus

---------- Forwarded message ----------
From: Zsbán Ambrus <ambrus-4iFmikrsyIeT9ig0jae3mg@public.gmane.org>
Date: Sat, 3 Apr 2010 18:36:32 +0200
Subject: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

Dear linux man-pages,

The attached patch adds four ioctls from linux/msdos_fs.h to the
ioctl_list(2) manpage.

The ioctl FAT_IOCTL_GET_ATTRIBUTES reads FAT attributes of a file a
mounted vfat file system.  I tested this on Linux 2.6.33, an example
script can be found at "http://www.perlmonks.com/?node_id=832623".

The constants are a bit difficult to access, you may need to include
the following headers to get them defined correctly (and the order
matters; and even then they are defined the have the wrong type,
unsigned long instead of int): <sys/types.h> <sys/ioctl.h>
<linux/types.h> <linux/dirent.h> <linux/msdos_fs.h>.  Do you suppose
this should be mentioned in the manpage?

Ambrus

[-- Attachment #2: fatioc.diff --]
[-- Type: text/x-diff, Size: 587 bytes --]

--- ./ioctl_list.2	2010-04-03 17:52:39.000000000 +0200
+++ ./ioctl_list.2	2010-04-03 18:23:31.000000000 +0200
@@ -430,8 +430,17 @@
 0x000089E0	SIOCGETVIFCNT	struct sioc_vif_req *	// I-O
 0x000089E1	SIOCGETSGCNT	struct sioc_sg_req *	// I-O
 .TE
 
+// <include/linux/msdos_fs.h>
+.TS
+l l l l.
+0x82307201	VFAT_IOCTL_READDIR_BOTH	struct dirent [2]
+0x82307202	VFAT_IOCTL_READDIR_SHORT	struct dirent [2]
+0x80047210	FAT_IOCTL_GET_ATTRIBUTES	__u32 *
+0x40047211	FAT_IOCTL_SET_ATTRIBUTES	const __u32 *
+.TE
+
 // <include/linux/mtio.h>
 .TS
 l l l l.
 0x40086D01	MTIOCTOP	const struct mtop *

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

* Re: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES
       [not found]     ` <CAHku1CHPnGMze526X0KUVUxtixRr8qxPg+-Q75ZqjB03HWKkKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-09-08  5:59       ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2013-09-08  5:59 UTC (permalink / raw)
  To: Zsbán Ambrus; +Cc: linux-man

Hello Ambrus,

On Sun, Sep 8, 2013 at 1:23 AM, Zsbán Ambrus <ambrus-4iFmikrsyIeT9ig0jae3mg@public.gmane.org> wrote:
> Dear Linux man-pages.
>
> I'd like to ask about the status of this patch I'd sent years ago,
> which doesn't seem to be applied as of man-pages 3.53.  Should I
> modify the patch somehow or supply more information?
>
> Thanks in advance,

> ---------- Forwarded message ----------
> From: Zsbán Ambrus <ambrus-4iFmikrsyIeT9ig0jae3mg@public.gmane.org>
> Date: Sat, 3 Apr 2010 18:36:32 +0200
> Subject: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES
> To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
>
> Dear linux man-pages,
>
> The attached patch adds four ioctls from linux/msdos_fs.h to the
> ioctl_list(2) manpage.
>
> The ioctl FAT_IOCTL_GET_ATTRIBUTES reads FAT attributes of a file a
> mounted vfat file system.  I tested this on Linux 2.6.33, an example
> script can be found at "http://www.perlmonks.com/?node_id=832623".
>
> The constants are a bit difficult to access, you may need to include
> the following headers to get them defined correctly (and the order
> matters; and even then they are defined the have the wrong type,
> unsigned long instead of int): <sys/types.h> <sys/ioctl.h>
> <linux/types.h> <linux/dirent.h> <linux/msdos_fs.h>.  Do you suppose
> this should be mentioned in the manpage?
>
> Ambrus

I've applied the patch now.

Thanks,

Michael



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-09-08  5:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693@mail.gmail.com>
     [not found] ` <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-03 16:37   ` Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES Zsbán Ambrus
2013-09-07 23:23   ` Zsbán Ambrus
     [not found]     ` <CAHku1CHPnGMze526X0KUVUxtixRr8qxPg+-Q75ZqjB03HWKkKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-08  5:59       ` Michael Kerrisk (man-pages)

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).