diff options
author | Bruce Momjian | 2003-11-11 23:52:45 +0000 |
---|---|---|
committer | Bruce Momjian | 2003-11-11 23:52:45 +0000 |
commit | 3bcd818888f2d77de7360d21f79a651e968a53ed (patch) | |
tree | cc4180901159704f438f15c562d124078d89eacf | |
parent | fbf14ca8a910e1a94def2bdc345b0475d43e3b5a (diff) |
Update /port C header descriptions.
-rw-r--r-- | src/port/copydir.c | 14 | ||||
-rw-r--r-- | src/port/dirmod.c | 14 | ||||
-rw-r--r-- | src/port/gethostname.c | 14 | ||||
-rw-r--r-- | src/port/getrusage.c | 15 | ||||
-rw-r--r-- | src/port/isinf.c | 14 | ||||
-rw-r--r-- | src/port/path.c | 15 | ||||
-rw-r--r-- | src/port/random.c | 15 | ||||
-rw-r--r-- | src/port/sprompt.c | 15 | ||||
-rw-r--r-- | src/port/srandom.c | 15 | ||||
-rw-r--r-- | src/port/strcasecmp.c | 6 | ||||
-rw-r--r-- | src/port/strdup.c | 1 | ||||
-rw-r--r-- | src/port/strtol.c | 2 |
12 files changed, 121 insertions, 19 deletions
diff --git a/src/port/copydir.c b/src/port/copydir.c index 73922e0672..8b380e55f3 100644 --- a/src/port/copydir.c +++ b/src/port/copydir.c @@ -1,9 +1,19 @@ -/* +/*------------------------------------------------------------------------- + * + * copydir.c + * copies a directory + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * * While "xcopy /e /i /q" works fine for copying directories, on Windows XP * it requires a Window handle which prevents it from working when invoked * as a service. * - * $Header$ + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- */ #include "postgres.h" diff --git a/src/port/dirmod.c b/src/port/dirmod.c index 66c98a59fc..16a87922c1 100644 --- a/src/port/dirmod.c +++ b/src/port/dirmod.c @@ -1,6 +1,18 @@ -/* +/*------------------------------------------------------------------------- + * + * dirmod.c + * rename/unlink() + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * * These are replacement versions of unlink and rename that work on * Win32 (NT, Win2k, XP). replace() doesn't work on Win95/98/Me. + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- */ #ifndef TEST_VERSION diff --git a/src/port/gethostname.c b/src/port/gethostname.c index 183fe0c490..c77e72b00a 100644 --- a/src/port/gethostname.c +++ b/src/port/gethostname.c @@ -1,4 +1,16 @@ -/* $Id$ */ +/*------------------------------------------------------------------------- + * + * gethostname.c + * gethostname using uname + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- + */ #include "c.h" diff --git a/src/port/getrusage.c b/src/port/getrusage.c index 0d08c0d36d..01a184601c 100644 --- a/src/port/getrusage.c +++ b/src/port/getrusage.c @@ -1,4 +1,17 @@ -/* $Id$ */ +/*------------------------------------------------------------------------- + * + * getusage.c + * 64-bit versions of fseeko/ftello() + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- + */ #include <stdio.h> #include <errno.h> diff --git a/src/port/isinf.c b/src/port/isinf.c index 459636b810..2a89088216 100644 --- a/src/port/isinf.c +++ b/src/port/isinf.c @@ -1,4 +1,16 @@ -/* $Id$ */ +/*------------------------------------------------------------------------- + * + * isinf.c + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- + */ #include "c.h" diff --git a/src/port/path.c b/src/port/path.c index 8379b22076..edf2fc2bdf 100644 --- a/src/port/path.c +++ b/src/port/path.c @@ -1,4 +1,17 @@ -/* $Id$ */ +/*------------------------------------------------------------------------- + * + * path.c + * portable path handling routines + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- + */ #include "c.h" #include <ctype.h> diff --git a/src/port/random.c b/src/port/random.c index e0d2421fc5..c95b9938d7 100644 --- a/src/port/random.c +++ b/src/port/random.c @@ -1,4 +1,17 @@ -/* $Id$ */ +/*------------------------------------------------------------------------- + * + * random.c + * random() wrapper + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- + */ #include "c.h" diff --git a/src/port/sprompt.c b/src/port/sprompt.c index de31e7a5b8..51822cd2be 100644 --- a/src/port/sprompt.c +++ b/src/port/sprompt.c @@ -1,9 +1,16 @@ -/* - * psql - the PostgreSQL interactive terminal +/*------------------------------------------------------------------------- + * + * sprompt.c + * simple_prompt() routine + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * * - * Copyright 2000 by PostgreSQL Global Development Group + * IDENTIFICATION + * $Header$ * - * $Header$ + *------------------------------------------------------------------------- */ diff --git a/src/port/srandom.c b/src/port/srandom.c index b7d7245dee..201ee7c495 100644 --- a/src/port/srandom.c +++ b/src/port/srandom.c @@ -1,4 +1,17 @@ -/* $Id$ */ +/*------------------------------------------------------------------------- + * + * srandom.c + * srandom() wrapper + * + * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group + * Portions Copyright (c) 1994, Regents of the University of California + * + * + * IDENTIFICATION + * $Header$ + * + *------------------------------------------------------------------------- + */ #include "c.h" diff --git a/src/port/strcasecmp.c b/src/port/strcasecmp.c index eb05def13d..520280f3fe 100644 --- a/src/port/strcasecmp.c +++ b/src/port/strcasecmp.c @@ -13,17 +13,13 @@ * is provided ``as is'' without express or implied warranty. */ -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)strcasecmp.c 5.5 (Berkeley) 11/24/87"; -#endif /* LIBC_SCCS and not lint */ - #include <sys/types.h> #include <string.h> /* * This array is designed for mapping upper and lower case letter * together for a case independent comparison. The mappings are -p * based upon ascii character sequences. + * based upon ascii character sequences. */ static unsigned char charmap[] = { '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007', diff --git a/src/port/strdup.c b/src/port/strdup.c index 0112ff747c..5bc8562138 100644 --- a/src/port/strdup.c +++ b/src/port/strdup.c @@ -12,6 +12,7 @@ * *------------------------------------------------------------------------- */ + #include <string.h> #include <stdlib.h> #include "strdup.h" diff --git a/src/port/strtol.c b/src/port/strtol.c index fd1bc5f3c6..b64d28fe0d 100644 --- a/src/port/strtol.c +++ b/src/port/strtol.c @@ -1,4 +1,4 @@ -/*- +/* * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1990 The Regents of the University of California. * All rights reserved. |