.txt draft C standards
Hi,
I'm the maintainer of the Linux man-pages, and am interested in copying the following files from your website to the repository. I think that alone would already be useful to our users, but the main motivation goes beyond that. I developed a small tool to search for declarations in the standard:
stdc89()
{
grep "[[:alpha:]] \**\b$1([[:alnum:]*,. ]*);" /path/to/c89-draft.txt \
| sort \
| uniq;
}That will help a lot in maintaining the manual pages, and I'd like to have the draft in the same repository so I can have that script in the repo working for anyone who clones it. Or maybe we could even make it part of the installation, and install the files into <$prefix/share/doc/c/>, and some binary in <$prefix/bin>, so everybody could then check the standard from the command line.
Oskari even had the idea of being able to diff between different standards, which I think can be also quite useful.
My questions to you is:
- Is there any license that applies to the drafts of the standard? Are they in the public domain or at least open-source?
- Is there any license for your .txt variants? Did you create them, or were they picked from another source?
- I guess you don't mind if I mention you and your website as the source of the files when I copy them, but just in case I need to ask.
Thanks!
Alex
Signature · 2 lines
<http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Quoted 4 lines · Alejandro Colomar
Hi,
I'm the maintainer of the Linux man-pages, and am interested in copying the following files from your website to the repository. I think that
I forgot to copy the links for those "following files" :)
<https://port70.net/~nsz/c/c89/c89-draft.txt>
<https://port70.net/~nsz/c/c99/n1256.txt>
<https://port70.net/~nsz/c/c11/n1570.txt>
Signature · 2 lines
<http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Hi JeanHeyd!
I'd like to ask you too about this. You can read the entire thread in the Linux man-pages mailing list:
<https://lore.kernel.org/linux-man/[email protected]/T/>.
What license applies to the drafts of the standard? I've seen drafts published in many sites, but I'm not sure if that's correct or not. I'd like to redistribute the drafts of the C standards in plain-text version (probably autogenerated from the PDF), because I find them very useful for my work in the man pages.
We discussed recently that being able to grep(1) for function declarations is quite nice, as in:
$ ./stdc89 gets
char *gets(char *s);
$ ./stdc89 printf
int printf(const char *format, ...);
$ ./stdc89 asm
asm ( character-string-literal );Do you know what we can do legally? The plan is to at least ship the drafts in a package that distros would install somewhere like </usr/share/doc/c/{c89,c99,c11,c23}/>, and we could also ship some scripts that grep declarations in them.
Another related thread:
<https://lore.kernel.org/linux-man/[email protected]/T/#m9e2b93ad9926a45b6f0b0cfed9376e1d7bab6a59>
Kind regards,
Alex
Signature · 2 lines
<http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5