1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Add $PostgreSQL$ markers to a lot of files that were missing them.

This particular batch was just for *.c and *.h file.

The changes were made with the following 2 commands:

find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | while read file ; do head -n 1 < $file | grep -q '^/\*' && echo $file; done | xargs -l sed -i -e '1s/^\// /' -e '1i/*\n * $PostgreSQL:$ \n *'

find . \( \( -name 'libstemmer' -o -name 'expected' -o -name 'ppport.h' \) -prune \) -o  \( -name '*.[ch]'  \) \( -exec grep -q '\$PostgreSQL' {} \; -o -print \) | xargs -l sed -i -e '1i/*\n * $PostgreSQL:$ \n */'
This commit is contained in:
Andrew Dunstan
2008-05-17 01:28:26 +00:00
parent caede71b44
commit 53972b460c
99 changed files with 321 additions and 24 deletions

View File

@ -1,4 +1,7 @@
/* only needed in OS X 10.1 and possibly early 10.2 releases */
/*
* $PostgreSQL: pgsql/src/backend/port/darwin/system.c,v 1.7 2008/05/17 01:28:22 adunstan Exp $
*
* only needed in OS X 10.1 and possibly early 10.2 releases */
#include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_2 || !defined(MAC_OS_X_VERSION_10_2)

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/aix.c,v 1.20 2008/05/17 01:28:23 adunstan Exp $
*
*
* @(#)dlfcn.c 1.7 revision of 95/08/14 19:08:38
* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
* 30159 Hannover, Germany

View File

@ -1,4 +1,7 @@
/* Dummy file used for nothing at this point
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/sco.c,v 1.2 2008/05/17 01:28:23 adunstan Exp $
*
* Dummy file used for nothing at this point
*
* see sco.h
*/

View File

@ -1,4 +1,7 @@
/* Dummy file used for nothing at this point
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/solaris.c,v 1.2 2008/05/17 01:28:23 adunstan Exp $
*
* Dummy file used for nothing at this point
*
* see solaris.h
*/

View File

@ -1,4 +1,7 @@
/* Dummy file used for nothing at this point
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/sunos4.c,v 1.2 2008/05/17 01:28:23 adunstan Exp $
*
* Dummy file used for nothing at this point
*
* see sunos4.h
*/

View File

@ -1,4 +1,7 @@
/* Dummy file used for nothing at this point
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/svr4.c,v 1.2 2008/05/17 01:28:23 adunstan Exp $
*
* Dummy file used for nothing at this point
*
* see svr4.h
*/

View File

@ -1,4 +1,7 @@
/* Dummy file used for nothing at this point
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/univel.c,v 1.4 2008/05/17 01:28:23 adunstan Exp $
*
* Dummy file used for nothing at this point
*
* see univel.h
*/

View File

@ -1,4 +1,7 @@
/*-------------------------------------------------------------------------
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/univel.h,v 1.22 2008/05/17 01:28:23 adunstan Exp $
*
*-------------------------------------------------------------------------
*
* univel.h
* port-specific prototypes for Intel x86/UNIXWARE

View File

@ -1,4 +1,7 @@
/* Dummy file used for nothing at this point
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/unixware.c,v 1.2 2008/05/17 01:28:23 adunstan Exp $
*
* Dummy file used for nothing at this point
*
* see unixware.h
*/

View File

@ -1,4 +1,7 @@
/*-------------------------------------------------------------------------
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/unixware.h,v 1.20 2008/05/17 01:28:23 adunstan Exp $
*
*-------------------------------------------------------------------------
*
* unixware.h
* port-specific prototypes for Intel x86/UNIXWARE 7

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/backend/port/dynloader/win32.h,v 1.4 2008/05/17 01:28:23 adunstan Exp $
*/
#ifndef PORT_PROTOS_H
#define PORT_PROTOS_H

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/backend/port/nextstep/port.c,v 1.11 2008/05/17 01:28:23 adunstan Exp $
*/
#include "postgres.h"
#ifndef _POSIX_SOURCE

View File

@ -1,4 +1,7 @@
/*-
/*
* $PostgreSQL: pgsql/src/backend/utils/mb/wstrcmp.c,v 1.9 2008/05/17 01:28:24 adunstan Exp $
*
*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/backend/utils/mb/wstrncmp.c,v 1.9 2008/05/17 01:28:24 adunstan Exp $
*
*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*

View File

@ -1,4 +1,7 @@
/*-------------------------------------------------------------------------
/*
* $PostgreSQL: pgsql/src/include/commands/comment.h,v 1.22 2008/05/17 01:28:24 adunstan Exp $
*
*-------------------------------------------------------------------------
*
* comment.h
*

View File

@ -1,4 +1,7 @@
/*-------------------------------------------------------------------------
/*
* $PostgreSQL: pgsql/src/include/commands/proclang.h,v 1.14 2008/05/17 01:28:24 adunstan Exp $
*
*-------------------------------------------------------------------------
*
* proclang.h
* prototypes for proclang.c.

View File

@ -1,2 +1,5 @@
/*
* $PostgreSQL: pgsql/src/include/port/aix.h,v 1.12 2008/05/17 01:28:24 adunstan Exp $
*/
#define CLASS_CONFLICT
#define DISABLE_XOPEN_NLS

View File

@ -1 +1,4 @@
/*
* $PostgreSQL: pgsql/src/include/port/bsdi.h,v 1.14 2008/05/17 01:28:24 adunstan Exp $
*/

View File

@ -1,4 +1,7 @@
/* see src/backend/libpq/pqcomm.c */
/*
* $PostgreSQL: pgsql/src/include/port/sco.h,v 1.18 2008/05/17 01:28:24 adunstan Exp $
*
* see src/backend/libpq/pqcomm.c */
#define SCO_ACCEPT_BUG
#define USE_UNIVEL_CC

View File

@ -1,2 +1,5 @@
/* sprintf() returns char *, not int, on SunOS 4.1.x */
/*
* $PostgreSQL: pgsql/src/include/port/sunos4.h,v 1.10 2008/05/17 01:28:24 adunstan Exp $
*
* sprintf() returns char *, not int, on SunOS 4.1.x */
#define SPRINTF_CHAR

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/include/port/ultrix4.h,v 1.12 2008/05/17 01:28:24 adunstan Exp $
*/
#define NOFIXADE
#define NEED_STRDUP

View File

@ -1,4 +1,7 @@
/***************************************
/*
* $PostgreSQL: pgsql/src/include/port/univel.h,v 1.24 2008/05/17 01:28:24 adunstan Exp $
*
***************************************
* Define this if you are compiling with
* the native UNIXWARE C compiler.
***************************************/

View File

@ -1,4 +1,7 @@
/* see src/backend/libpq/pqcomm.c */
/*
* $PostgreSQL: pgsql/src/include/port/unixware.h,v 1.18 2008/05/17 01:28:24 adunstan Exp $
*
* see src/backend/libpq/pqcomm.c */
#define SCO_ACCEPT_BUG
/***************************************

View File

@ -1 +1,4 @@
/*
* $PostgreSQL: pgsql/src/include/port/win32/pwd.h,v 1.3 2008/05/17 01:28:25 adunstan Exp $
*/

View File

@ -1 +1,4 @@
/*
* $PostgreSQL: pgsql/src/include/port/win32/sys/wait.h,v 1.3 2008/05/17 01:28:25 adunstan Exp $
*/

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/include/utils/cash.h,v 1.26 2008/05/17 01:28:25 adunstan Exp $
*
*
* cash.h
* Written by D'Arcy J.M. Cain
*

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/sql3types.h,v 1.12 2008/05/17 01:28:25 adunstan Exp $
*/
#ifndef _ECPG_SQL3TYPES_H
#define _ECPG_SQL3TYPES_H

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlca.h,v 1.30 2008/05/17 01:28:25 adunstan Exp $
*/
#ifndef POSTGRES_SQLCA_H
#define POSTGRES_SQLCA_H

View File

@ -1 +1,4 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqlda.h,v 1.3 2008/05/17 01:28:25 adunstan Exp $
*/

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/include/sqltypes.h,v 1.8 2008/05/17 01:28:25 adunstan Exp $
*/
#ifndef ECPG_SQLTYPES_H
#define ECPG_SQLTYPES_H

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/timestamp.c,v 1.42 2008/05/17 01:28:25 adunstan Exp $
*/
#include "postgres_fe.h"
#include <time.h>

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/type.h,v 1.49 2008/05/17 01:28:25 adunstan Exp $
*/
#ifndef _ECPG_PREPROC_TYPE_H
#define _ECPG_PREPROC_TYPE_H

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/ecpg/test/regression.h,v 1.2 2008/05/17 01:28:25 adunstan Exp $
*/
exec sql define REGRESSDB1 regress1;
exec sql define REGRESSDB2 connectdb;

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/interfaces/libpq/win32.c,v 1.24 2008/05/17 01:28:25 adunstan Exp $
*
*
* FILE
* win32.c
*

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/interfaces/libpq/win32.h,v 1.29 2008/05/17 01:28:25 adunstan Exp $
*/
#ifndef __win32_h_included
#define __win32_h_included

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/pl/plperl/spi_internal.c,v 1.9 2008/05/17 01:28:25 adunstan Exp $
*
*
* This kludge is necessary because of the conflicting
* definitions of 'DEBUG' between postgres and perl.
* we'll live.

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/port/pthread-win32.h,v 1.4 2008/05/17 01:28:25 adunstan Exp $
*/
#ifndef __PTHREAD_H
#define __PTHREAD_H

View File

@ -1,4 +1,7 @@
/*-------------------------------------------------------------------------
/*
* $PostgreSQL: pgsql/src/port/rand.c,v 1.5 2008/05/17 01:28:25 adunstan Exp $
*
*-------------------------------------------------------------------------
*
* rand.c
* Missing rand implementations for Win32

View File

@ -1,4 +1,7 @@
/* $OpenBSD: strlcat.c,v 1.13 2005/08/08 08:05:37 espie Exp $ */
/*
* $PostgreSQL: pgsql/src/port/strlcat.c,v 1.3 2008/05/17 01:28:25 adunstan Exp $
*
* $OpenBSD: strlcat.c,v 1.13 2005/08/08 08:05:37 espie Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/port/strtol.c,v 1.15 2008/05/17 01:28:25 adunstan Exp $
*
*
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
* Portions Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/port/strtoul.c,v 1.4 2008/05/17 01:28:25 adunstan Exp $
*
*
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq.c,v 1.17 2008/05/17 01:28:25 adunstan Exp $
*
*
* testlibpq.c
*
* Test the C version of libpq, the PostgreSQL frontend library.

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq2.c,v 1.14 2008/05/17 01:28:26 adunstan Exp $
*
*
* testlibpq2.c
* Test of the asynchronous notification interface
*

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq3.c,v 1.15 2008/05/17 01:28:26 adunstan Exp $
*
*
* testlibpq3.c
* Test out-of-line parameters and binary I/O.
*

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/test/examples/testlibpq4.c,v 1.13 2008/05/17 01:28:26 adunstan Exp $
*
*
* testlibpq4.c
* this test program shows to use LIBPQ to make multiple backend
* connections

View File

@ -1,3 +1,6 @@
/*
* $PostgreSQL: pgsql/src/test/locale/test-ctype.c,v 1.5 2008/05/17 01:28:26 adunstan Exp $
*/
/*

View File

@ -1,4 +1,7 @@
/*
* $PostgreSQL: pgsql/src/tools/fsync/test_fsync.c,v 1.21 2008/05/17 01:28:26 adunstan Exp $
*
*
* test_fsync.c
* test various fsync() methods
*/

View File

@ -1,4 +1,7 @@
/******************************************************************************
/*
* $PostgreSQL: pgsql/src/tutorial/complex.c,v 1.14 2008/05/17 01:28:26 adunstan Exp $
*
******************************************************************************
This file contains routines that can be bound to a Postgres backend and
called by the backend in the process of processing queries. The calling
format for these routines is dictated by Postgres architecture.