From: "Zsbán Ambrus" <ambrus-4iFmikrsyIeT9ig0jae3mg@public.gmane.org>
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES
Date: Sat, 3 Apr 2010 18:37:21 +0200 [thread overview]
Message-ID: <z2h25d4951c1004030937xf216955aja619eb4322125e59@mail.gmail.com> (raw)
In-Reply-To: <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
[-- 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 *
next parent reply other threads:[~2010-04-03 16:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693@mail.gmail.com>
[not found] ` <j2n25d4951c1004030936ia8b558e9w8951691fb29a6693-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-03 16:37 ` Zsbán Ambrus [this message]
2013-09-07 23:23 ` Fwd: [PATCH] linux man-pages ioctl_list(2) FAT_IOCTL_GET_ATTRIBUTES Zsbán Ambrus
[not found] ` <CAHku1CHPnGMze526X0KUVUxtixRr8qxPg+-Q75ZqjB03HWKkKw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-08 5:59 ` Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=z2h25d4951c1004030937xf216955aja619eb4322125e59@mail.gmail.com \
--to=ambrus-4ifmikrsyiet9ig0jae3mg@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).