Re: Correction to fopencookie man page.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ralph,

On Sat, Mar 16, 2013 at 10:40 PM, Ralph Loader <suckfish@xxxxxxxxxx> wrote:
> Hi,
>
> The fopencookie man page says that cookie_io_functions_t is a C struct:
>
> "struct cookie_io_functions_t { ... };"
>
> That is not quite right, [at least in Fedora glibc-2.16-28.fc18] it is a typedef for an anonymous struct:
>
> "typedef struct { ... } cookie_io_functions_t;"

Il found it a little unclear your report what fix you'd like to see
precisely. Perhaps it is the patch =below, which I have applied.

Thanks,

Michael


diff --git a/man3/fopencookie.3 b/man3/fopencookie.3
index ed371a3..9582d50 100644
--- a/man3/fopencookie.3
+++ b/man3/fopencookie.3
@@ -107,12 +107,12 @@ The structure is defined as follows
 .in +4n
 .nf

-struct cookie_io_functions_t {
+typedef struct {
     cookie_read_function_t  *read;
     cookie_write_function_t *write;
     cookie_seek_function_t  *seek;
     cookie_close_function_t *close;
-};
+} cookie_io_functions_t;

 .fi
 .in
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux