Merge branch 'v5-stable' into v6-stable

Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
	plugins/imptcp/imptcp.c
This commit is contained in:
Rainer Gerhards 2012-01-18 13:55:16 +01:00
commit c9b70abf1a
70 changed files with 954 additions and 1055 deletions

View File

@ -245,7 +245,7 @@ Version 5.9.0 [V5-DEVEL] (rgerhards), 2011-03-??
affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on affected directive was: $ActionExecOnlyWhenPreviousIsSuspended on
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=236 closes: http://bugzilla.adiscon.com/show_bug.cgi?id=236
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Version 5.8.7 [V5-stable] 2011-??-?? Version 5.8.7 [V5-stable] 2012-01-17
- bugfix: instabilities when using RFC5424 header fields - bugfix: instabilities when using RFC5424 header fields
Thanks to Kaiwang Chen for the patch Thanks to Kaiwang Chen for the patch
- bugfix: imuxsock did truncate part of received message if it did not - bugfix: imuxsock did truncate part of received message if it did not
@ -256,6 +256,8 @@ Version 5.8.7 [V5-stable] 2011-??-??
closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290 closes: http://bugzilla.adiscon.com/show_bug.cgi?id=290
Thanks to Tomas Heinrich for the patch Thanks to Tomas Heinrich for the patch
- bugfix: stats counter were not properly initialized on creation - bugfix: stats counter were not properly initialized on creation
- FQDN hostname for multihomed host was not always set to the correct name
if multiple aliases existed. Thanks to Tomas Heinreich for the patch.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Version 5.8.6 [V5-stable] 2011-10-21 Version 5.8.6 [V5-stable] 2011-10-21
- bugfix: missing whitespace after property-based filter was not detected - bugfix: missing whitespace after property-based filter was not detected
@ -1110,6 +1112,8 @@ Version 4.8.1 [v4-stable], 2011-09-??
- bugfix: potential fatal abort in omgssapi - bugfix: potential fatal abort in omgssapi
Thanks to Tomas Heinrich for the patch. Thanks to Tomas Heinrich for the patch.
- added doc for omprog - added doc for omprog
- FQDN hostname for multihomed host was not always set to the correct name
if multiple aliases existed. Thanks to Tomas Heinreich for the patch.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Version 4.8.0 [v4-stable] (rgerhards), 2011-09-07 Version 4.8.0 [v4-stable] (rgerhards), 2011-09-07
*************************************************************************** ***************************************************************************

View File

@ -10,24 +10,23 @@
* *
* File begun on 2010-08-10 by RGerhards * File begun on 2010-08-10 by RGerhards
* *
* Copyright 2007-2011 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of rsyslog. * This file is part of rsyslog.
* *
* Rsyslog is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* Rsyslog is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with Rsyslog. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
*/ */
#include "config.h" #include "config.h"
#if !defined(HAVE_EPOLL_CREATE) #if !defined(HAVE_EPOLL_CREATE)
@ -1175,11 +1174,11 @@ CODESTARTwillRun
ABORT_FINALIZE(RS_RET_NO_RUN); ABORT_FINALIZE(RS_RET_NO_RUN);
} }
#if defined(EPOLL_CLOEXEC) && defined(HAVE_EPOLL_CREATE1) # if defined(EPOLL_CLOEXEC) && defined(HAVE_EPOLL_CREATE1)
DBGPRINTF("imptcp uses epoll_create1()\n"); DBGPRINTF("imptcp uses epoll_create1()\n");
epollfd = epoll_create1(EPOLL_CLOEXEC); epollfd = epoll_create1(EPOLL_CLOEXEC);
if(epollfd < 0 && errno == ENOSYS) if(epollfd < 0 && errno == ENOSYS)
#endif # endif
{ {
DBGPRINTF("imptcp uses epoll_create()\n"); DBGPRINTF("imptcp uses epoll_create()\n");
/* reading the docs, the number of epoll events passed to /* reading the docs, the number of epoll events passed to

View File

@ -11,25 +11,23 @@
* *
* THESE MACROS MUST ONLY BE USED WITH WORD-SIZED DATA TYPES! * THESE MACROS MUST ONLY BE USED WITH WORD-SIZED DATA TYPES!
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_ATOMIC_H #ifndef INCLUDED_ATOMIC_H
#define INCLUDED_ATOMIC_H #define INCLUDED_ATOMIC_H

View File

@ -3,27 +3,25 @@
* *
* File begun on 2007-07-30 by RGerhards * File begun on 2007-07-30 by RGerhards
* *
* Copyright (C) 2007, 2008 by Rainer Gerhards and Adiscon GmbH. * Copyright (C) 2007-2012 Adiscon GmbH.
* *
* This file is part of rsyslog. * This file is part of rsyslog.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* Definition of the cfsysline (config file system line) object. /* Definition of the cfsysline (config file system line) object.
* *
* Copyright 2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef CFSYSLINE_H_INCLUDED #ifndef CFSYSLINE_H_INCLUDED

View File

@ -6,30 +6,26 @@
* because the config file handler will by dynamically be loaded and be * because the config file handler will by dynamically be loaded and be
* kept in memory only as long as the config file is actually being * kept in memory only as long as the config file is actually being
* processed. Thereafter, it shall be unloaded. -- rgerhards * processed. Thereafter, it shall be unloaded. -- rgerhards
* Please note that the original syslogd.c source was under BSD license
* at the time of the rsyslog fork from sysklogd.
* *
* TODO: the license MUST be changed to LGPL. However, we can not * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* currently do that, because we use some sysklogd code to crunch
* the selector lines (e.g. *.info). That code is scheduled for removal
* as part of RainerScript. After this is done, we can change licenses.
*
* Copyright 2008 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of rsyslog. * This file is part of rsyslog.
* *
* Rsyslog is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* Rsyslog is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with Rsyslog. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
*/ */
#define CFGLNSIZ 4096 /* the maximum size of a configuraton file line, after re-combination */ #define CFGLNSIZ 4096 /* the maximum size of a configuraton file line, after re-combination */
#include "config.h" #include "config.h"

View File

@ -1,23 +1,22 @@
/* Definitions for config file handling (not yet an object). /* Definitions for config file handling (not yet an object).
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of rsyslog. * This file is part of rsyslog.
* *
* Rsyslog is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* Rsyslog is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with Rsyslog. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
*/ */
#ifndef INCLUDED_CONF_H #ifndef INCLUDED_CONF_H
#define INCLUDED_CONF_H #define INCLUDED_CONF_H

View File

@ -8,25 +8,23 @@
* *
* Module begun 2008-02-19 by Rainer Gerhards * Module begun 2008-02-19 by Rainer Gerhards
* *
* Copyright (C) 2008 by Rainer Gerhards and Adiscon GmbH. * Copyright (C) 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* The ctok object (implements a config file tokenizer). /* The ctok object (implements a config file tokenizer).
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_CTOK_H #ifndef INCLUDED_CTOK_H
#define INCLUDED_CTOK_H #define INCLUDED_CTOK_H

View File

@ -2,25 +2,23 @@
* *
* Module begun 2008-02-20 by Rainer Gerhards * Module begun 2008-02-20 by Rainer Gerhards
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* The ctok_token object /* The ctok_token object
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_CTOK_TOKEN_H #ifndef INCLUDED_CTOK_TOKEN_H
#define INCLUDED_CTOK_TOKEN_H #define INCLUDED_CTOK_TOKEN_H

View File

@ -5,25 +5,23 @@
* in a useful manner. It is still undecided if all functions will continue * in a useful manner. It is still undecided if all functions will continue
* to stay here or some will be moved into parser modules (once we have them). * to stay here or some will be moved into parser modules (once we have them).
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* The datetime object. Contains time-related functions. /* The datetime object. Contains time-related functions.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_DATETIME_H #ifndef INCLUDED_DATETIME_H
#define INCLUDED_DATETIME_H #define INCLUDED_DATETIME_H

View File

@ -13,25 +13,23 @@
* *
* For details, visit doc/debug.html * For details, visit doc/debug.html
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" /* autotools! */ #include "config.h" /* autotools! */
#include <stdio.h> #include <stdio.h>

View File

@ -3,25 +3,23 @@
* Definitions for the debug and run-time analysis support module. * Definitions for the debug and run-time analysis support module.
* Contains a lot of macros. * Contains a lot of macros.
* *
* Copyright 2008, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef DEBUG_H_INCLUDED #ifndef DEBUG_H_INCLUDED
#define DEBUG_H_INCLUDED #define DEBUG_H_INCLUDED

View File

@ -3,26 +3,27 @@
* Module begun 2008-03-05 by Rainer Gerhards, based on some code * Module begun 2008-03-05 by Rainer Gerhards, based on some code
* from syslogd.c. I converted this module to lgpl and have checked that * from syslogd.c. I converted this module to lgpl and have checked that
* all contributors agreed to that step. * all contributors agreed to that step.
* Now moving to ASL 2.0, and contributor checks tell that there is no need
* to take further case, as the code now boils to be either my own or, a few lines,
* of the original BSD-licenses sysklogd code. rgerhards, 2012-01-16
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* The errmsg object. It is used to emit error message inside rsyslog. /* The errmsg object. It is used to emit error message inside rsyslog.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_ERRMSG_H #ifndef INCLUDED_ERRMSG_H
#define INCLUDED_ERRMSG_H #define INCLUDED_ERRMSG_H

View File

@ -6,25 +6,23 @@
* *
* Module begun 2007-11-30 by Rainer Gerhards * Module begun 2007-11-30 by Rainer Gerhards
* *
* Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* The expr object. /* The expr object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_EXPR_H #ifndef INCLUDED_EXPR_H
#define INCLUDED_EXPR_H #define INCLUDED_EXPR_H

View File

@ -11,25 +11,23 @@
* *
* File begun on 2007-07-31 by RGerhards * File begun on 2007-07-31 by RGerhards
* *
* Copyright (C) 2007, 2008 by Rainer Gerhards and Adiscon GmbH. * Copyright (C) 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* Definition of the linkedlist object. /* Definition of the linkedlist object.
* *
* Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef LINKEDLIST_H_INCLUDED #ifndef LINKEDLIST_H_INCLUDED

View File

@ -4,25 +4,25 @@
* *
* File begun on 2007-07-25 by RGerhards * File begun on 2007-07-25 by RGerhards
* *
* Copyright 2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2007 Adiscon GmbH. This is Adiscon-exclusive code without any other
* contributions. *** GPLv3 ***
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Rsyslog is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by * it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version. * (at your option) any later version.
* *
* The rsyslog runtime library is distributed in the hope that it will be useful, * Rsyslog is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU Lesser General Public License * You should have received a copy of the GNU General Public License
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * along with Rsyslog. If not, see <http://www.gnu.org/licenses/>.
* *
* A copy of the GPL can be found in the file "COPYING" in this distribution. * A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef MODULE_TEMPLATE_H_INCLUDED #ifndef MODULE_TEMPLATE_H_INCLUDED
#define MODULE_TEMPLATE_H_INCLUDED 1 #define MODULE_TEMPLATE_H_INCLUDED 1

View File

@ -4,25 +4,23 @@
* implemented by concrete classes. As such, no nsd data type itself * implemented by concrete classes. As such, no nsd data type itself
* is defined. * is defined.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_NSD_H #ifndef INCLUDED_NSD_H
#define INCLUDED_NSD_H #define INCLUDED_NSD_H

View File

@ -1,24 +1,22 @@
/* An implementation of the nsd interface for GnuTLS. /* An implementation of the nsd interface for GnuTLS.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_NSD_GTLS_H #ifndef INCLUDED_NSD_GTLS_H

View File

@ -1,24 +1,22 @@
/* An implementation of the nsd interface for plain tcp sockets. /* An implementation of the nsd interface for plain tcp sockets.
* *
* Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_NSD_PTCP_H #ifndef INCLUDED_NSD_PTCP_H

View File

@ -2,25 +2,23 @@
* *
* An implementation of the nsd select() interface for GnuTLS. * An implementation of the nsd select() interface for GnuTLS.
* *
* Copyright (C) 2008 Rainer Gerhards and Adiscon GmbH. * Copyright (C) 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* An implementation of the nsd select interface for GnuTLS. /* An implementation of the nsd select interface for GnuTLS.
* *
* Copyright (C) 2008 Rainer Gerhards and Adiscon GmbH. * Copyright (C) 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_NSDSEL_GTLS_H #ifndef INCLUDED_NSDSEL_GTLS_H

View File

@ -9,25 +9,23 @@
* *
* Work on this module begun 2008-04-22 by Rainer Gerhards. * Work on this module begun 2008-04-22 by Rainer Gerhards.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* Definitions for the nssel IO waiter. /* Definitions for the nssel IO waiter.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_NSSEL_H #ifndef INCLUDED_NSSEL_H

View File

@ -5,25 +5,23 @@
* that loop somehow and I've done that by moving the typedefs * that loop somehow and I've done that by moving the typedefs
* into this file here. * into this file here.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef OBJ_TYPES_H_INCLUDED #ifndef OBJ_TYPES_H_INCLUDED

View File

@ -48,25 +48,23 @@
* *
* File begun on 2008-01-04 by RGerhards * File begun on 2008-01-04 by RGerhards
* *
* Copyright 2008, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -21,25 +21,23 @@
* *
* pThis always references to a pointer of the object. * pThis always references to a pointer of the object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef OBJ_H_INCLUDED #ifndef OBJ_H_INCLUDED

View File

@ -3,25 +3,23 @@
* *
* File begun on 2007-07-27 by RGerhards * File begun on 2007-07-27 by RGerhards
* *
* Copyright 2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* Definition of the omsr (omodStringRequest) object. /* Definition of the omsr (omodStringRequest) object.
* *
* Copyright 2007, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef OBJOMSR_H_INCLUDED #ifndef OBJOMSR_H_INCLUDED

View File

@ -1,23 +1,22 @@
/* header for parser.c /* header for parser.c
* *
* Copyright 2008,2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_PARSER_H #ifndef INCLUDED_PARSER_H
#define INCLUDED_PARSER_H #define INCLUDED_PARSER_H

View File

@ -12,25 +12,23 @@
* *
* Module begun 2009-06-17 by Rainer Gerhards * Module begun 2009-06-17 by Rainer Gerhards
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -2,25 +2,23 @@
* *
* This implements props within rsyslog. * This implements props within rsyslog.
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_PROP_H #ifndef INCLUDED_PROP_H
#define INCLUDED_PROP_H #define INCLUDED_PROP_H

View File

@ -3,25 +3,23 @@
* Module begun 2008-03-05 by Rainer Gerhards, based on some code * Module begun 2008-03-05 by Rainer Gerhards, based on some code
* from syslogd.c * from syslogd.c
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -2,25 +2,23 @@
* purpose of this wrapper class is to enable rsyslogd core to be build without * purpose of this wrapper class is to enable rsyslogd core to be build without
* regexp libraries. * regexp libraries.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_REGEXP_H #ifndef INCLUDED_REGEXP_H
#define INCLUDED_REGEXP_H #define INCLUDED_REGEXP_H

View File

@ -4,25 +4,23 @@
* *
* Module begun 2009-06-10 by Rainer Gerhards * Module begun 2009-06-10 by Rainer Gerhards
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -2,25 +2,23 @@
* *
* This implements rules within rsyslog. * This implements rules within rsyslog.
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_RULE_H #ifndef INCLUDED_RULE_H
#define INCLUDED_RULE_H #define INCLUDED_RULE_H

View File

@ -2,25 +2,23 @@
* *
* This implements rulesets within rsyslog. * This implements rulesets within rsyslog.
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_RULESET_H #ifndef INCLUDED_RULESET_H
#define INCLUDED_RULESET_H #define INCLUDED_RULESET_H

View File

@ -5,25 +5,23 @@
* \date 2003-09-09 * \date 2003-09-09
* Coding begun. * Coding begun.
* *
* Copyright 2003-2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2003-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef __SRUTILS_H_INCLUDED__ #ifndef __SRUTILS_H_INCLUDED__
#define __SRUTILS_H_INCLUDED__ 1 #define __SRUTILS_H_INCLUDED__ 1

View File

@ -54,6 +54,8 @@
* to do it, but over here is also not ideal... -- rgerhards, 2008-02-14 * to do it, but over here is also not ideal... -- rgerhards, 2008-02-14
* rgerhards, 2008-04-16: note in LGPL move: the code tables below exist in * rgerhards, 2008-04-16: note in LGPL move: the code tables below exist in
* the same way in BSD, so it is not a problem to move them from GPLv3 to LGPL. * the same way in BSD, so it is not a problem to move them from GPLv3 to LGPL.
* And nobody modified them since it was under LGPL, so we can also move it
* to ASL 2.0.
*/ */
syslogName_t syslogPriNames[] = { syslogName_t syslogPriNames[] = {
{"alert", LOG_ALERT}, {"alert", LOG_ALERT},

View File

@ -8,25 +8,23 @@
* begun 2005-09-07 rgerhards * begun 2005-09-07 rgerhards
* did some optimization (read: bugs!) rgerhards, 2009-06-16 * did some optimization (read: bugs!) rgerhards, 2009-06-16
* *
* Copyright (C) 2007-2009 by Rainer Gerhards and Adiscon GmbH * Copyright (C) 2007-2012 Adiscon GmbH
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -11,26 +11,23 @@
* \date 2005-09-07 * \date 2005-09-07
* Initial version begun. * Initial version begun.
* *
* Copyright 2005-2009 * Copyright 2005-2012 Adiscon GmbH. All Rights Reserved.
* Rainer Gerhards and Adiscon GmbH. All Rights Reserved.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef _STRINGBUF_H_INCLUDED__ #ifndef _STRINGBUF_H_INCLUDED__
#define _STRINGBUF_H_INCLUDED__ 1 #define _STRINGBUF_H_INCLUDED__ 1

View File

@ -3,25 +3,23 @@
* This implements a session of the strmsrv object. For general * This implements a session of the strmsrv object. For general
* comments, see header of strmsrv.c. * comments, see header of strmsrv.c.
* *
* Copyright 2007, 2008, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,25 +1,23 @@
/* Definitions for strms_sess class. This implements a session of the /* Definitions for strms_sess class. This implements a session of the
* generic stream server. * generic stream server.
* *
* Copyright 2008, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_STRMS_SESS_H #ifndef INCLUDED_STRMS_SESS_H
#define INCLUDED_STRMS_SESS_H #define INCLUDED_STRMS_SESS_H

View File

@ -22,25 +22,23 @@
* machine to a separate module which then is called via the DoCharRcvd() interface * machine to a separate module which then is called via the DoCharRcvd() interface
* of this class here. -- rgerhards, 2009-06-01 * of this class here. -- rgerhards, 2009-06-01
* *
* Copyright 2007, 2008, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* Definitions for strmsrv class. /* Definitions for strmsrv class.
* *
* Copyright 2008, 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_STRMSRV_H #ifndef INCLUDED_STRMSRV_H
#define INCLUDED_STRMSRV_H #define INCLUDED_STRMSRV_H

View File

@ -1,25 +1,23 @@
/* synrchonization-related stuff. In theory, that should /* synrchonization-related stuff. In theory, that should
* help porting to something different from pthreads. * help porting to something different from pthreads.
* *
* Copyright 2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,25 +1,23 @@
/* Definitions syncrhonization-related stuff. In theory, that should /* Definitions syncrhonization-related stuff. In theory, that should
* help porting to something different from pthreads. * help porting to something different from pthreads.
* *
* Copyright 2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_SYNC_H #ifndef INCLUDED_SYNC_H

View File

@ -4,25 +4,23 @@
* *
* File begun on 2007-07-13 by RGerhards (extracted from syslogd.c) * File begun on 2007-07-13 by RGerhards (extracted from syslogd.c)
* *
* Copyright 2007 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef SYSLOGD_TYPES_INCLUDED #ifndef SYSLOGD_TYPES_INCLUDED
#define SYSLOGD_TYPES_INCLUDED 1 #define SYSLOGD_TYPES_INCLUDED 1

View File

@ -5,25 +5,23 @@
* *
* Module begun 2008-02-25 by Rainer Gerhards * Module begun 2008-02-25 by Rainer Gerhards
* *
* Copyright (C) 2008 by Rainer Gerhards and Adiscon GmbH. * Copyright (C) 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,7 +1,7 @@
/* The sysvar object. So far, no instance can be defined (makes logically no /* The sysvar object. So far, no instance can be defined (makes logically no
* sense). * sense).
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *

View File

@ -9,25 +9,23 @@
* *
* Begun 2009-05-21 RGerhards * Begun 2009-05-21 RGerhards
* *
* Copyright (C) 2009 by Rainer Gerhards and Adiscon GmbH * Copyright (C) 2009-2012 by Rainer Gerhards and Adiscon GmbH
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_UNICODE_HELPER_H #ifndef INCLUDED_UNICODE_HELPER_H
#define INCLUDED_UNICODE_HELPER_H #define INCLUDED_UNICODE_HELPER_H

View File

@ -1,24 +1,22 @@
/* The var object. /* The var object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_VAR_H #ifndef INCLUDED_VAR_H
#define INCLUDED_VAR_H #define INCLUDED_VAR_H

View File

@ -10,25 +10,23 @@
* single operations defined in vmop (which hold the instruction and the * single operations defined in vmop (which hold the instruction and the
* data). * data).
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_VM_H #ifndef INCLUDED_VM_H
#define INCLUDED_VM_H #define INCLUDED_VM_H

View File

@ -3,25 +3,23 @@
* *
* Module begun 2008-02-20 by Rainer Gerhards * Module begun 2008-02-20 by Rainer Gerhards
* *
* Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,26 +1,24 @@
/* The vmop object. /* The vmop object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of rsyslog. * This file is part of rsyslog.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_VMOP_H #ifndef INCLUDED_VMOP_H
#define INCLUDED_VMOP_H #define INCLUDED_VMOP_H

View File

@ -2,25 +2,23 @@
* *
* Module begun 2008-02-20 by Rainer Gerhards * Module begun 2008-02-20 by Rainer Gerhards
* *
* Copyright 2007, 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2007-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -14,25 +14,23 @@
* correct place, we have opted this time in favor of performance, which * correct place, we have opted this time in favor of performance, which
* made them go there. * made them go there.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_VMPRG_H #ifndef INCLUDED_VMPRG_H
#define INCLUDED_VMPRG_H #define INCLUDED_VMPRG_H

View File

@ -2,25 +2,23 @@
* *
* Module begun 2008-02-21 by Rainer Gerhards * Module begun 2008-02-21 by Rainer Gerhards
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* The vmstk object. /* The vmstk object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_VMSTK_H #ifndef INCLUDED_VMSTK_H
#define INCLUDED_VMSTK_H #define INCLUDED_VMSTK_H

View File

@ -9,25 +9,23 @@
* (and in the web doc set on http://www.rsyslog.com/doc). Be sure to read it * (and in the web doc set on http://www.rsyslog.com/doc). Be sure to read it
* if you are getting aquainted to the object. * if you are getting aquainted to the object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -1,24 +1,22 @@
/* Definition of the worker thread instance (wti) class. /* Definition of the worker thread instance (wti) class.
* *
* Copyright 2008, 2009 by Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef WTI_H_INCLUDED #ifndef WTI_H_INCLUDED

View File

@ -1,24 +1,22 @@
/* Definition of the worker thread pool (wtp) object. /* Definition of the worker thread pool (wtp) object.
* *
* Copyright 2008 Rainer Gerhards and Adiscon GmbH. * Copyright 2008-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef WTP_H_INCLUDED #ifndef WTP_H_INCLUDED

View File

@ -2,25 +2,23 @@
* *
* This is an rsyslog object wrapper around zlib. * This is an rsyslog object wrapper around zlib.
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Rainer Gerhards and Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#include "config.h" #include "config.h"

View File

@ -2,25 +2,23 @@
* purpose of this wrapper class is to enable rsyslogd core to be build without * purpose of this wrapper class is to enable rsyslogd core to be build without
* zlib libraries. * zlib libraries.
* *
* Copyright 2009 Rainer Gerhards and Adiscon GmbH. * Copyright 2009-2012 Adiscon GmbH.
* *
* This file is part of the rsyslog runtime library. * This file is part of the rsyslog runtime library.
* *
* The rsyslog runtime library is free software: you can redistribute it and/or modify * Licensed under the Apache License, Version 2.0 (the "License");
* it under the terms of the GNU Lesser General Public License as published by * you may not use this file except in compliance with the License.
* the Free Software Foundation, either version 3 of the License, or * You may obtain a copy of the License at
* (at your option) any later version. *
* * http://www.apache.org/licenses/LICENSE-2.0
* The rsyslog runtime library is distributed in the hope that it will be useful, * -or-
* but WITHOUT ANY WARRANTY; without even the implied warranty of * see COPYING.ASL20 in the source distribution
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU Lesser General Public License for more details. * Unless required by applicable law or agreed to in writing, software
* * distributed under the License is distributed on an "AS IS" BASIS,
* You should have received a copy of the GNU Lesser General Public License * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* along with the rsyslog runtime library. If not, see <http://www.gnu.org/licenses/>. * See the License for the specific language governing permissions and
* * limitations under the License.
* A copy of the GPL can be found in the file "COPYING" in this distribution.
* A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
*/ */
#ifndef INCLUDED_ZLIBW_H #ifndef INCLUDED_ZLIBW_H
#define INCLUDED_ZLIBW_H #define INCLUDED_ZLIBW_H

View File

@ -2680,8 +2680,28 @@ int realMain(int argc, char **argv)
*/ */
hent = gethostbyname((char*)LocalHostName); hent = gethostbyname((char*)LocalHostName);
if(hent) { if(hent) {
int i = 0;
if(hent->h_aliases) {
size_t hnlen;
hnlen = strlen((char *) LocalHostName);
for (i = 0; hent->h_aliases[i]; i++) {
if (!strncmp(hent->h_aliases[i], (char *) LocalHostName, hnlen)
&& hent->h_aliases[i][hnlen] == '.') {
/* found a matching hostname */
break;
}
}
}
free(LocalHostName); free(LocalHostName);
CHKmalloc(LocalHostName = (uchar*)strdup(hent->h_name)); if(hent->h_aliases && hent->h_aliases[i]) {
CHKmalloc(LocalHostName = (uchar*)strdup(hent->h_aliases[i]));
} else {
CHKmalloc(LocalHostName = (uchar*)strdup(hent->h_name));
}
if((p = (uchar*)strchr((char*)LocalHostName, '.'))) if((p = (uchar*)strchr((char*)LocalHostName, '.')))
{ {