MySQL 9.0.0
Source Code Documentation
welcome_copyright_notice.h
Go to the documentation of this file.
1/* Copyright (c) 2010, 2024, Oracle and/or its affiliates.
2
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6
7 This program is designed to work with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation. The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef _welcome_copyright_notice_h_
25#define _welcome_copyright_notice_h_
26
27/**
28 @file include/welcome_copyright_notice.h
29*/
30
31#include <string.h>
32
33#define COPYRIGHT_NOTICE_CURRENT_YEAR "2024"
34
35/*
36 This define specifies copyright notice which is displayed by every MySQL
37 program on start, or on help screen.
38*/
39#define ORACLE_WELCOME_COPYRIGHT_NOTICE(first_year) \
40 (strcmp(first_year, COPYRIGHT_NOTICE_CURRENT_YEAR) \
41 ? "Copyright (c) " first_year ", " COPYRIGHT_NOTICE_CURRENT_YEAR \
42 ", " \
43 "Oracle and/or its affiliates.\n\nOracle is a " \
44 "registered trademark of Oracle Corporation and/or its\naffiliates. " \
45 "Other names may be trademarks of their respective\nowners.\n" \
46 : "Copyright (c) " first_year \
47 ", Oracle and/or its affiliates." \
48 "\n\nOracle is a registered trademark of " \
49 "Oracle Corporation and/or its\naffiliates. Other names may be " \
50 "trademarks of their respective\nowners.\n")
51
52#define ORACLE_GPL_LICENSE_TEXT \
53 " This program is free software; you can redistribute it and/or modify\n" \
54 " it under the terms of the GNU General Public License, version 2.0,\n" \
55 " as published by the Free Software Foundation.\n" \
56 "\n" \
57 " This program is designed to work with certain software (including\n" \
58 " but not limited to OpenSSL) that is licensed under separate terms,\n" \
59 " as designated in a particular file or component or in included " \
60 "license\n" \
61 " documentation. The authors of MySQL hereby grant you an additional\n" \
62 " permission to link the program and your derivative works with the\n" \
63 " separately licensed software that they have either included with\n" \
64 " the program or referenced in the documentation.\n" \
65 "\n" \
66 " This program is distributed in the hope that it will be useful,\n" \
67 " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
68 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" \
69 " GNU General Public License, version 2.0, for more details.\n" \
70 "\n" \
71 " You should have received a copy of the GNU General Public License\n" \
72 " along with this program; if not, write to the Free Software\n" \
73 " Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 " \
74 "USA */\n"
75
76#define ORACLE_COPYRIGHT_NOTICE(first_year) \
77 (strcmp(first_year, COPYRIGHT_NOTICE_CURRENT_YEAR) \
78 ? "/* Copyright (c) " first_year ", " COPYRIGHT_NOTICE_CURRENT_YEAR \
79 ", Oracle and/or its affiliates. */\n" \
80 "\n" \
81 : "/* Copyright (c) " first_year \
82 ", Oracle and/or its affiliates. */\n")
83
84#define ORACLE_GPL_COPYRIGHT_NOTICE(first_year) \
85 (strcmp(first_year, COPYRIGHT_NOTICE_CURRENT_YEAR) \
86 ? "/* Copyright (c) " first_year ", " COPYRIGHT_NOTICE_CURRENT_YEAR \
87 ", Oracle and/or its affiliates.\n" \
88 "\n" ORACLE_GPL_LICENSE_TEXT \
89 : "/* Copyright (c) " first_year \
90 ", Oracle and/or its affiliates.\n" \
91 "\n" ORACLE_GPL_LICENSE_TEXT)
92
93#define ORACLE_GPL_FOSS_LICENSE_TEXT \
94 " This program is free software; you can redistribute it and/or modify\n" \
95 " it under the terms of the GNU General Public License, version 2.0,\n" \
96 " as published by the Free Software Foundation.\n" \
97 "\n" \
98 " This program is designed to work with certain software (including\n" \
99 " but not limited to OpenSSL) that is licensed under separate terms,\n" \
100 " as designated in a particular file or component or in included " \
101 "license\n" \
102 " documentation. The authors of MySQL hereby grant you an additional\n" \
103 " permission to link the program and your derivative works with the\n" \
104 " separately licensed software that they have either included with\n" \
105 " the program or referenced in the documentation.\n" \
106 "\n" \
107 " Without limiting anything contained in the foregoing, this file,\n" \
108 " which is part of C Driver for MySQL (Connector/C), is also subject to " \
109 "the\n" \
110 " Universal FOSS Exception, version 1.0, a copy of which can be found " \
111 "at\n" \
112 " http://oss.oracle.com/licenses/universal-foss-exception.\n" \
113 "\n" \
114 " This program is distributed in the hope that it will be useful,\n" \
115 " but WITHOUT ANY WARRANTY; without even the implied warranty of\n" \
116 " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" \
117 " GNU General Public License, version 2.0, for more details.\n" \
118 "\n" \
119 " You should have received a copy of the GNU General Public License\n" \
120 " along with this program; if not, write to the Free Software\n" \
121 " Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 " \
122 "USA */\n"
123
124#define ORACLE_GPL_FOSS_COPYRIGHT_NOTICE(first_year) \
125 (strcmp(first_year, COPYRIGHT_NOTICE_CURRENT_YEAR) \
126 ? "/* Copyright (c) " first_year ", " COPYRIGHT_NOTICE_CURRENT_YEAR \
127 ", Oracle and/or its affiliates.\n" \
128 "\n" ORACLE_GPL_FOSS_LICENSE_TEXT \
129 : "/* Copyright (c) " first_year \
130 ", Oracle and/or its affiliates.\n" \
131 "\n" ORACLE_GPL_FOSS_LICENSE_TEXT)
132
133#endif /* _welcome_copyright_notice_h_ */