You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by co...@apache.org on 2005/11/13 16:58:25 UTC

svn commit: r333035 - in /apr/examples/trunk: LICENSE README build/ helloworld/ helloworld/helloworld.c

Author: colm
Date: Sun Nov 13 07:58:21 2005
New Revision: 333035

URL: http://svn.apache.org/viewcvs?rev=333035&view=rev
Log:
Initial content for the examples repository.

    * LICENSE is taken directly from;
      http://creativecommons.org/licenses/publicdomain/

    * README should contain a brief paragraph on each
      example.

    * helloworld.c is a new clean-room APR hello world, though
      significant overlap with other "hello world"s is entirely
      likely.


Added:
    apr/examples/trunk/LICENSE   (with props)
    apr/examples/trunk/README   (with props)
    apr/examples/trunk/build/
    apr/examples/trunk/helloworld/
    apr/examples/trunk/helloworld/helloworld.c   (with props)

Added: apr/examples/trunk/LICENSE
URL: http://svn.apache.org/viewcvs/apr/examples/trunk/LICENSE?rev=333035&view=auto
==============================================================================
--- apr/examples/trunk/LICENSE (added)
+++ apr/examples/trunk/LICENSE Sun Nov 13 07:58:21 2005
@@ -0,0 +1,31 @@
+                      Public Domain Certification
+
+Copyright-Only Dedication (based on United States law) or Public Domain
+Certification
+
+The person or persons who have associated work with this document (the
+"Dedicator" or "Certifier") hereby either (a) certifies that, to the best of
+his knowledge, the work of authorship identified is in the public domain of the
+country from which the work is published, or (b) hereby dedicates whatever
+copyright the dedicators holds in the work of authorship identified below (the
+"Work") to the public domain. A certifier, moreover, dedicates any copyright
+interest he may have in the associated work, and for these purposes, is
+described as a "dedicator" below.
+
+A certifier has taken reasonable steps to verify the copyright status of this
+work. Certifier recognizes that his good faith efforts may not shield him from
+liability if in fact the work certified is not in the public domain.
+
+Dedicator makes this dedication for the benefit of the public at large and to
+the detriment of the Dedicator's heirs and successors. Dedicator intends this
+dedication to be an overt act of relinquishment in perpetuity of all present
+and future rights under copyright law, whether vested or contingent, in the
+Work. Dedicator understands that such relinquishment of all rights includes the
+relinquishment of all rights to enforce (by lawsuit or otherwise) those
+copyrights in the Work.
+
+Dedicator recognizes that, once placed in the public domain, the Work may be
+freely reproduced, distributed, transmitted, used, modified, built upon, or
+otherwise exploited by anyone for any purpose, commercial or non-commercial,
+and in any way, including by methods that have not yet been invented or
+conceived.

Propchange: apr/examples/trunk/LICENSE
------------------------------------------------------------------------------
    svn:eol-style = native

Added: apr/examples/trunk/README
URL: http://svn.apache.org/viewcvs/apr/examples/trunk/README?rev=333035&view=auto
==============================================================================
--- apr/examples/trunk/README (added)
+++ apr/examples/trunk/README Sun Nov 13 07:58:21 2005
@@ -0,0 +1,10 @@
+Apache Portable Runtime Examples
+================================
+
+We have put together a small collection of example program implementations
+utilising the Apache Portable Runtime libraries. These examples and their build
+environment have been released to the public domain, and you may take them as a
+starting point for new applications or as a reference work.
+
+helloworld
+    The ubiquitous first-example. 

Propchange: apr/examples/trunk/README
------------------------------------------------------------------------------
    svn:eol-style = native

Added: apr/examples/trunk/helloworld/helloworld.c
URL: http://svn.apache.org/viewcvs/apr/examples/trunk/helloworld/helloworld.c?rev=333035&view=auto
==============================================================================
--- apr/examples/trunk/helloworld/helloworld.c (added)
+++ apr/examples/trunk/helloworld/helloworld.c Sun Nov 13 07:58:21 2005
@@ -0,0 +1,22 @@
+/* This code is PUBLIC DOMAIN, and is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND. See the accompanying 
+ * LICENSE file.
+ */
+#include "apr.h"
+#include "apr_file_io.h"
+#include <stdlib.h>
+    
+int main(int argc, const char * const argv[])
+{
+    apr_pool_t *pool;
+    apr_file_t *out;
+
+    apr_initialize();
+    atexit(apr_terminate);
+    apr_pool_create(&pool, NULL);
+    
+    apr_file_open_stdout(&out, pool);
+    apr_file_puts("Hello World!" APR_EOL_STR, out);
+
+    return 0;
+}

Propchange: apr/examples/trunk/helloworld/helloworld.c
------------------------------------------------------------------------------
    svn:eol-style = native



Re: svn commit: r333035 - in /apr/examples/trunk: LICENSE README build/ helloworld/ helloworld/helloworld.c

Posted by Colm MacCarthaigh <co...@stdlib.net>.
On Sun, Nov 13, 2005 at 06:15:56PM +0100, Maxime Petazzoni wrote:
> >     * helloworld.c is a new clean-room APR hello world, though
> >       significant overlap with other "hello world"s is entirely
> >       likely.
> 
> Some information on how to compile and link with the APR would be most
> welcome, too. It may not be trivial for everyone, especially if you're
> running on a custom APR & APU installation.

That's the whole point of this repository; to provide just that :-) I
just havn't written/committed all of it. I want to do it clean-room, so
it's taking me a while.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

Re: svn commit: r333035 - in /apr/examples/trunk: LICENSE README build/ helloworld/ helloworld/helloworld.c

Posted by Maxime Petazzoni <ma...@bulix.org>.
Hi,

>     * helloworld.c is a new clean-room APR hello world, though
>       significant overlap with other "hello world"s is entirely
>       likely.

Some information on how to compile and link with the APR would be most
welcome, too. It may not be trivial for everyone, especially if you're
running on a custom APR & APU installation.

- Sam

-- 
Maxime Petazzoni (http://www.bulix.org)
 -- gone crazy, back soon. leave message.