Читаем Linux программирование в примерах полностью

Copyright (С) год имя автора

Эта программа является свободным программным продуктом; вы можете

распространять и/или изменять ее на условиях Общедоступной

лицензии GNU в том виде, как это опубликовано Фондом свободного

программного обеспечения; либо версии 2 Лицензии, либо

(по вашему выбору) любой последующей версии.

Данная программа распространяется в надежде, что она будет полезной,

но БЕЗ ВСЯКИХ ГАРАНТИЙ; в том числе без подразумеваемых гарантий

ПОЛЕЗНОСТИ или ПРИГОДНОСТИ ДЛЯ ОПРЕДЕЛЕННОЙ ЦЕЛИ. Дополнительные

подробности см. в Общедоступной лицензии GNU.

Вместе с данной программой вы должны были получить копию

Общедоступной лицензии GNU; если вы ее не получили, напишите

в Фонд свободного программного обеспечения:

Free Software Foundation, Inc., 59 Temple Place,

Suite 330, Boston, MA 20111, USA.

Добавьте также сведения о том, как связаться с вами по электронной или обычной почте.

Если программа интерактивная, вставьте в ее вывод при запуске краткое уведомление, подобное данному:

Gnomovision version 69, Copyright (С) год имя_автора

Gnomovision поставляется БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ; чтобы получить

подробности, наберите 'show w'. Это свободный программный продукт,

и вы можете распространять его при определенных условиях;

наберите 'show c', чтобы получить дополнительные сведения.

Гипотетические команды 'show w' и 'show c' должны отображать соответствующие части Общедоступной лицензии. Конечно, используемые вами команды могут называться как-нибудь иначе, а не 'show w' и 'show c'; они могут быть даже щелчками мышью или пунктами меню — всем, что лучше подходит вашей программе.

Вам следует также получить от вашего нанимателя (если вы работаете программистом) или учебного заведения, если оно имеется, заявление об «отказе от авторских прав» для программы, если это необходимо. Вот образец; измените имена:

Yoyodyne, Inc., настоящим отказывается от всех авторских прав

на программу 'Gnomovision' (которая работает с компиляторами),

написанной James Hacker.

подпись Ty Coon, 1 апреля 1989

Ty Coon, вице-президент

Данная Общедоступная лицензия не разрешает включать вашу программу в частные программы. Если ваша программа представляет собой библиотеку процедур, вы можете счесть более полезным разрешить компоновку частных приложений с данной библиотекой. Если это то, что вам нужно, используйте вместо данной Лицензии Малую общедоступную библиотечную лицензию GNU.

Пример использования

Данный раздел не является частью GPL. Здесь мы показываем комментарий с заявлением об авторских правах из программы GNU env:

/* env - run a program in a modified environment

Copyright (C) 1986, 1991-2002 Free Software Foundation, Inc.

This program is free software; you can redistribute it and/or modify

it under the terms of the GNU General Public License as published by

the Free Software Foundation; either version 2, or (at your option)

any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

GNU General Public License for more details.

Перейти на страницу:

Похожие книги

C++ Primer Plus
C++ Primer Plus

C++ Primer Plus is a carefully crafted, complete tutorial on one of the most significant and widely used programming languages today. An accessible and easy-to-use self-study guide, this book is appropriate for both serious students of programming as well as developers already proficient in other languages.The sixth edition of C++ Primer Plus has been updated and expanded to cover the latest developments in C++, including a detailed look at the new C++11 standard.Author and educator Stephen Prata has created an introduction to C++ that is instructive, clear, and insightful. Fundamental programming concepts are explained along with details of the C++ language. Many short, practical examples illustrate just one or two concepts at a time, encouraging readers to master new topics by immediately putting them to use.Review questions and programming exercises at the end of each chapter help readers zero in on the most critical information and digest the most difficult concepts.In C++ Primer Plus, you'll find depth, breadth, and a variety of teaching techniques and tools to enhance your learning:• A new detailed chapter on the changes and additional capabilities introduced in the C++11 standard• Complete, integrated discussion of both basic C language and additional C++ features• Clear guidance about when and why to use a feature• Hands-on learning with concise and simple examples that develop your understanding a concept or two at a time• Hundreds of practical sample programs• Review questions and programming exercises at the end of each chapter to test your understanding• Coverage of generic C++ gives you the greatest possible flexibility• Teaches the ISO standard, including discussions of templates, the Standard Template Library, the string class, exceptions, RTTI, and namespaces

Стивен Прата

Программирование, программы, базы данных