All of lore.kernel.org
 help / color / mirror / Atom feed
* .txt draft C standards
@ 2023-03-15 12:30 Alejandro Colomar
  2023-03-15 12:35 ` Alejandro Colomar
  2023-03-16  2:00 ` Alejandro Colomar
  0 siblings, 2 replies; 3+ messages in thread
From: Alejandro Colomar @ 2023-03-15 12:30 UTC (permalink / raw)
  To: mnagy, nsz; +Cc: linux-man, Oskari Pirhonen, Brian Inglis, Matt Jolly


[-- Attachment #1.1: Type: text/plain, Size: 1493 bytes --]

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

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: .txt draft C standards
  2023-03-15 12:30 .txt draft C standards Alejandro Colomar
@ 2023-03-15 12:35 ` Alejandro Colomar
  2023-03-16  2:00 ` Alejandro Colomar
  1 sibling, 0 replies; 3+ messages in thread
From: Alejandro Colomar @ 2023-03-15 12:35 UTC (permalink / raw)
  To: mnagy, nsz; +Cc: linux-man, Oskari Pirhonen, Brian Inglis, Matt Jolly


[-- Attachment #1.1: Type: text/plain, Size: 508 bytes --]

On 3/15/23 13:30, Alejandro Colomar wrote:
> 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>


-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: .txt draft C standards
  2023-03-15 12:30 .txt draft C standards Alejandro Colomar
  2023-03-15 12:35 ` Alejandro Colomar
@ 2023-03-16  2:00 ` Alejandro Colomar
  1 sibling, 0 replies; 3+ messages in thread
From: Alejandro Colomar @ 2023-03-16  2:00 UTC (permalink / raw)
  To: JeanHeyd Meneide
  Cc: linux-man, Oskari Pirhonen, Brian Inglis, Matt Jolly, nsz, mnagy


[-- Attachment #1.1: Type: text/plain, Size: 1345 bytes --]

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/ebd2141a-c535-6288-1f2b-497bed043880@gmail.com/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/b73a9636-1a17-36f3-3718-d9ca3b9293ed@gmail.com/T/#m9e2b93ad9926a45b6f0b0cfed9376e1d7bab6a59>

Kind regards,

Alex

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2023-03-16  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 12:30 .txt draft C standards Alejandro Colomar
2023-03-15 12:35 ` Alejandro Colomar
2023-03-16  2:00 ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.