summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2008-04-11 10:38:06 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2008-04-11 10:38:06 +0000
commitcf0053c352809f5396300c4532a249d5db4f6447 (patch)
tree71db2d722a40bb111a3f090dfb22ea4e02bc0fa0 /external
parent13b99d0311d17c7459104f69274429066d92e7b7 (diff)
INTEGRATION: CWS changefileheader (1.4.30); FILE MERGED
2008/03/31 12:32:58 rt 1.4.30.1: #i87441# Change license header to LPGL v3.
Diffstat (limited to 'external')
-rw-r--r--external/glibc-2.1.3.patch439
1 files changed, 210 insertions, 229 deletions
diff --git a/external/glibc-2.1.3.patch b/external/glibc-2.1.3.patch
index 27ba99efa26a..4faa30ab19e2 100644
--- a/external/glibc-2.1.3.patch
+++ b/external/glibc-2.1.3.patch
@@ -1,229 +1,210 @@
-*** misc/glibc-2.1.3/posix/config.h Mon Apr 23 17:19:26 2007
---- misc/build/glibc-2.1.3/posix/config.h Mon Apr 23 17:18:49 2007
-***************
-*** 1 ****
-! dummy
---- 1,50 ----
-! /*************************************************************************
-! *
-! * OpenOffice.org - a multi-platform office productivity suite
-! *
-! * $RCSfile: glibc-2.1.3.patch,v $
-! *
-! * $Revision: 1.4 $
-! *
-! * last change: $Author: vg $ $Date: 2007-05-25 11:05:07 $
-! *
-! * The Contents of this file are made available subject to
-! * the terms of GNU Lesser General Public License Version 2.1.
-! *
-! *
-! * GNU Lesser General Public License Version 2.1
-! * =============================================
-! * Copyright 2005 by Sun Microsystems, Inc.
-! * 901 San Antonio Road, Palo Alto, CA 94303, USA
-! *
-! * This library is free software; you can redistribute it and/or
-! * modify it under the terms of the GNU Lesser General Public
-! * License version 2.1, as published by the Free Software Foundation.
-! *
-! * This library is distributed in the hope that it will be useful,
-! * but WITHOUT ANY WARRANTY; without even the implied warranty of
-! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-! * Lesser General Public License for more details.
-! *
-! * You should have received a copy of the GNU Lesser General Public
-! * License along with this library; if not, write to the Free Software
-! * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-! * MA 02111-1307 USA
-! *
-! ************************************************************************/
-!
-! #ifdef WNT
-! #include <stdlib.h>
-! #define getenv getenv
-! #endif
-!
-!
-! #if defined(MACOSX)
-! //Workaround for MACOS
-! #define getopt my_neues_getopt
-! #define opterr my_neues_opterr
-! #define optind my_neues_optind
-! #define optopt my_neues_optopt
-! #endif
-!
-!
-*** misc/glibc-2.1.3/posix/getopt.h Sun Aug 27 16:11:33 2000
---- misc/build/glibc-2.1.3/posix/getopt.h Mon Apr 23 17:18:49 2007
-***************
-*** 137,142 ****
---- 137,155 ----
- # endif /* __GNU_LIBRARY__ */
-
- # ifndef __need_getopt
-+ # ifdef __MINGW32__
-+ extern int getopt_long (int ___argc, char *const *___argv, const char *__shortopts,
-+ const struct option *__longopts, int *__longind);
-+ extern int getopt_long_only (int ___argc, char *const *___argv,
-+ const char *__shortopts,
-+ const struct option *__longopts, int *__longind);
-+
-+ /* Internal only. Users should not call this directly. */
-+ extern int _getopt_internal (int ___argc, char *const *___argv,
-+ const char *__shortopts,
-+ const struct option *__longopts, int *__longind,
-+ int __long_only);
-+ # else
- extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
- const struct option *__longopts, int *__longind);
- extern int getopt_long_only (int __argc, char *const *__argv,
-***************
-*** 148,153 ****
---- 161,167 ----
- const char *__shortopts,
- const struct option *__longopts, int *__longind,
- int __long_only);
-+ # endif
- # endif
- #else /* not __STDC__ */
- extern int getopt ();
-*** misc/glibc-2.1.3/posix/makefile.mk Mon Apr 23 17:19:26 2007
---- misc/build/glibc-2.1.3/posix/makefile.mk Mon Apr 23 17:18:49 2007
-***************
-*** 1 ****
-! dummy
---- 1,71 ----
-! #*************************************************************************
-! #
-! # OpenOffice.org - a multi-platform office productivity suite
-! #
-! # $RCSfile: glibc-2.1.3.patch,v $
-! #
-! # $Revision: 1.4 $
-! #
-! # last change: $Author: vg $ $Date: 2007-05-25 11:05:07 $
-! #
-! # The Contents of this file are made available subject to
-! # the terms of GNU Lesser General Public License Version 2.1.
-! #
-! #
-! # GNU Lesser General Public License Version 2.1
-! # =============================================
-! # Copyright 2005 by Sun Microsystems, Inc.
-! # 901 San Antonio Road, Palo Alto, CA 94303, USA
-! #
-! # This library is free software; you can redistribute it and/or
-! # modify it under the terms of the GNU Lesser General Public
-! # License version 2.1, as published by the Free Software Foundation.
-! #
-! # This library is distributed in the hope that it will be useful,
-! # but WITHOUT ANY WARRANTY; without even the implied warranty of
-! # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-! # Lesser General Public License for more details.
-! #
-! # You should have received a copy of the GNU Lesser General Public
-! # License along with this library; if not, write to the Free Software
-! # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
-! # MA 02111-1307 USA
-! #
-! #*************************************************************************
-!
-! PRJ=..$/..$/..$/..$/..
-!
-! PRJNAME=external
-! TARGET=gnu_getopt
-! LIBTARGET=NO
-!
-! EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
-!
-! SOLARINC+=-I..
-!
-! # --- Settings -----------------------------------------------------
-!
-! .INCLUDE : settings.mk
-!
-! CDEFS+=-DHAVE_STRING_H -DHAVE_CONFIG_H
-!
-! # --- Files --------------------------------------------------------
-!
-! OBJFILES= $(OBJ)$/getopt.obj \
-! $(OBJ)$/getopt1.obj
-!
-! LIB1TARGET=$(SLB)$/$(TARGET).lib
-! LIB1ARCHIV=$(LB)$/lib$(TARGET).a
-! LIB1OBJFILES=$(OBJFILES)
-!
-! .IF "$(OS)"=="NETBSD"
-! TARGET2=gnu_readdir_r
-! OBJFILES+= $(OBJ)$/readdir_r.obj
-! LIB2TARGET=$(SLB)$/$(TARGET2).lib
-! LIB2ARCHIV=$(LB)$/lib$(TARGET2).a
-! LIB2OBJFILES= $(OBJ)$/readdir_r.obj
-! .ENDIF
-!
-! # --- Targets ------------------------------------------------------
-!
-! .INCLUDE : target.mk
-*** misc/glibc-2.1.3/posix/readdir_r.c Mon Apr 23 17:19:26 2007
---- misc/build/glibc-2.1.3/posix/readdir_r.c Mon Apr 23 17:18:49 2007
-***************
-*** 1 ****
-! dummy
---- 1,56 ----
-! /* Copyright (C) 1991,92,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
-! This file is part of the GNU C Library.
-!
-! The GNU C Library is free software; you can redistribute it and/or
-! modify it under the terms of the GNU Library General Public License as
-! published by the Free Software Foundation; either version 2 of the
-! License, or (at your option) any later version.
-!
-! The GNU C Library is distributed in the hope that it will be useful,
-! but WITHOUT ANY WARRANTY; without even the implied warranty of
-! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-! Library General Public License for more details.
-!
-! You should have received a copy of the GNU Library General Public
-! License along with the GNU C Library; see the file COPYING.LIB. If not,
-! write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-! Boston, MA 02111-1307, USA. */
-!
-! #include <errno.h>
-! #include <limits.h>
-! #include <stddef.h>
-! #include <string.h>
-! #include <dirent.h>
-! #include <unistd.h>
-! #include <sys/types.h>
-! #include <assert.h>
-!
-! #ifndef __READDIR_R
-! # define __READDIR_R readdir_r
-! # define DIRENT_TYPE struct dirent
-! #endif
-!
-! /* Read a directory entry from DIRP. */
-! int
-! __READDIR_R (DIR *dirp, DIRENT_TYPE *entry, DIRENT_TYPE **result)
-! {
-! DIRENT_TYPE *dp;
-! size_t reclen;
-!
-! errno = 0;
-! /* call our non-reentrant counterpart to get the information */
-! dp = readdir(dirp);
-!
-! /* copy the result into entry */
-! if (dp != NULL) {
-! reclen = dp->d_reclen; /* This might be NetBSD-specific
-! * Add #ifdef's if anything else needed */
-! *result = memcpy(entry, dp, reclen);
-! } else {
-! *result = NULL;
-! }
-!
-! return dp != NULL ? 0 : errno ? errno : 0;
-! }
-!
-!
+--- misc/glibc-2.1.3/posix/config.h Mon Mar 31 09:43:50 2008
++++ misc/build/glibc-2.1.3/posix/config.h Mon Mar 31 09:43:26 2008
+@@ -1 +1,45 @@
+-dummy
++/*************************************************************************
++ *
++ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
++ *
++ * Copyright 2008 by Sun Microsystems, Inc.
++ *
++ * OpenOffice.org - a multi-platform office productivity suite
++ *
++ * $RCSfile: glibc-2.1.3.patch,v $
++ * $Revision: 1.5 $
++ *
++ * This file is part of OpenOffice.org.
++ *
++ * OpenOffice.org is free software: you can redistribute it and/or modify
++ * it under the terms of the GNU Lesser General Public License version 3
++ * only, as published by the Free Software Foundation.
++ *
++ * OpenOffice.org is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU Lesser General Public License version 3 for more details
++ * (a copy is included in the LICENSE file that accompanied this code).
++ *
++ * You should have received a copy of the GNU Lesser General Public License
++ * version 3 along with OpenOffice.org. If not, see
++ * <http://www.openoffice.org/license.html>
++ * for a copy of the LGPLv3 License.
++ *
++ ************************************************************************/
++
++#ifdef WNT
++#include <stdlib.h>
++#define getenv getenv
++#endif
++
++
++#if defined(MACOSX)
++//Workaround for MACOS
++#define getopt my_neues_getopt
++#define opterr my_neues_opterr
++#define optind my_neues_optind
++#define optopt my_neues_optopt
++#endif
++
++
+--- misc/glibc-2.1.3/posix/getopt.h Sun Aug 27 16:11:33 2000
++++ misc/build/glibc-2.1.3/posix/getopt.h Mon Mar 31 09:42:01 2008
+@@ -137,6 +137,19 @@
+ # endif /* __GNU_LIBRARY__ */
+
+ # ifndef __need_getopt
++# ifdef __MINGW32__
++extern int getopt_long (int ___argc, char *const *___argv, const char *__shortopts,
++ const struct option *__longopts, int *__longind);
++extern int getopt_long_only (int ___argc, char *const *___argv,
++ const char *__shortopts,
++ const struct option *__longopts, int *__longind);
++
++/* Internal only. Users should not call this directly. */
++extern int _getopt_internal (int ___argc, char *const *___argv,
++ const char *__shortopts,
++ const struct option *__longopts, int *__longind,
++ int __long_only);
++# else
+ extern int getopt_long (int __argc, char *const *__argv, const char *__shortopts,
+ const struct option *__longopts, int *__longind);
+ extern int getopt_long_only (int __argc, char *const *__argv,
+@@ -148,6 +161,7 @@
+ const char *__shortopts,
+ const struct option *__longopts, int *__longind,
+ int __long_only);
++# endif
+ # endif
+ #else /* not __STDC__ */
+ extern int getopt ();
+--- misc/glibc-2.1.3/posix/makefile.mk Mon Mar 31 09:43:50 2008
++++ misc/build/glibc-2.1.3/posix/makefile.mk Mon Mar 31 09:43:38 2008
+@@ -1 +1,67 @@
+-dummy
++#*************************************************************************
++#
++# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
++#
++# Copyright 2008 by Sun Microsystems, Inc.
++#
++# OpenOffice.org - a multi-platform office productivity suite
++#
++# $RCSfile: glibc-2.1.3.patch,v $
++#
++# $Revision: 1.5 $
++#
++# This file is part of OpenOffice.org.
++#
++# OpenOffice.org is free software: you can redistribute it and/or modify
++# it under the terms of the GNU Lesser General Public License version 3
++# only, as published by the Free Software Foundation.
++#
++# OpenOffice.org is distributed in the hope that it will be useful,
++# but WITHOUT ANY WARRANTY; without even the implied warranty of
++# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++# GNU Lesser General Public License version 3 for more details
++# (a copy is included in the LICENSE file that accompanied this code).
++#
++# You should have received a copy of the GNU Lesser General Public License
++# version 3 along with OpenOffice.org. If not, see
++# <http://www.openoffice.org/license.html>
++# for a copy of the LGPLv3 License.
++#
++#*************************************************************************
++
++PRJ=..$/..$/..$/..$/..
++
++PRJNAME=external
++TARGET=gnu_getopt
++LIBTARGET=NO
++
++EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
++
++SOLARINC+=-I..
++
++# --- Settings -----------------------------------------------------
++
++.INCLUDE : settings.mk
++
++CDEFS+=-DHAVE_STRING_H -DHAVE_CONFIG_H
++
++# --- Files --------------------------------------------------------
++
++OBJFILES= $(OBJ)$/getopt.obj \
++ $(OBJ)$/getopt1.obj
++
++LIB1TARGET=$(SLB)$/$(TARGET).lib
++LIB1ARCHIV=$(LB)$/lib$(TARGET).a
++LIB1OBJFILES=$(OBJFILES)
++
++.IF "$(OS)"=="NETBSD"
++TARGET2=gnu_readdir_r
++OBJFILES+= $(OBJ)$/readdir_r.obj
++LIB2TARGET=$(SLB)$/$(TARGET2).lib
++LIB2ARCHIV=$(LB)$/lib$(TARGET2).a
++LIB2OBJFILES= $(OBJ)$/readdir_r.obj
++.ENDIF
++
++# --- Targets ------------------------------------------------------
++
++.INCLUDE : target.mk
+--- misc/glibc-2.1.3/posix/readdir_r.c Mon Mar 31 09:43:50 2008
++++ misc/build/glibc-2.1.3/posix/readdir_r.c Mon Mar 31 09:42:01 2008
+@@ -1 +1,56 @@
+-dummy
++/* Copyright (C) 1991,92,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
++ This file is part of the GNU C Library.
++
++ The GNU C Library is free software; you can redistribute it and/or
++ modify it under the terms of the GNU Library General Public License as
++ published by the Free Software Foundation; either version 2 of the
++ License, or (at your option) any later version.
++
++ The GNU C Library is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
++ Library General Public License for more details.
++
++ You should have received a copy of the GNU Library General Public
++ License along with the GNU C Library; see the file COPYING.LIB. If not,
++ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
++ Boston, MA 02111-1307, USA. */
++
++#include <errno.h>
++#include <limits.h>
++#include <stddef.h>
++#include <string.h>
++#include <dirent.h>
++#include <unistd.h>
++#include <sys/types.h>
++#include <assert.h>
++
++#ifndef __READDIR_R
++# define __READDIR_R readdir_r
++# define DIRENT_TYPE struct dirent
++#endif
++
++/* Read a directory entry from DIRP. */
++int
++__READDIR_R (DIR *dirp, DIRENT_TYPE *entry, DIRENT_TYPE **result)
++{
++ DIRENT_TYPE *dp;
++ size_t reclen;
++
++ errno = 0;
++ /* call our non-reentrant counterpart to get the information */
++ dp = readdir(dirp);
++
++ /* copy the result into entry */
++ if (dp != NULL) {
++ reclen = dp->d_reclen; /* This might be NetBSD-specific
++ * Add #ifdef's if anything else needed */
++ *result = memcpy(entry, dp, reclen);
++ } else {
++ *result = NULL;
++ }
++
++ return dp != NULL ? 0 : errno ? errno : 0;
++}
++
++