summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2009-07-30 10:52:48 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2009-07-30 10:52:48 +0000
commit854b9eeffec7681a78b7c6467c02ab5a44a14435 (patch)
tree6d1ea9a3e8bc5d82dcacd76fb77c2ffaa6963d87
parent80ce7e5e97f52b5a900b8a09d232656fa75f3cb0 (diff)
CWS-TOOLING: integrate CWS fwk114
2009-07-08 Mikhail Voytenko #i102448# fix typo 2009-07-08 Mikhail Voytenko #i102448# detect the document of new format correctly 2009-07-03 Mikhail Voytenko #i101418# adjust header 2009-07-02 Mikhail Voytenko #i103001# Integrate the patch 2009-07-01 Mikhail Voytenko rebase to DEV300_m51 2009-06-25 Mikhail Voytenko #i71512# integrate the patch 2009-06-19 Mikhail Voytenko #i102931# check whether the file was changed even in case of system file locking 2009-06-10 Mikhail Voytenko #i102448# allow to turn the office update dialog off 2009-06-10 Mikhail Voytenko #i102448# allow to turn the office update dialog off 2009-06-09 Mikhail Voytenko #i96091# the disposed frame should throw DisposedException 2009-06-09 Mikhail Voytenko #i100835# commit the patch 2009-05-26 Mikhail Voytenko #i89514# integrate the patch 2009-05-26 Mikhail Voytenko #i30373# integrate the patch 2009-05-26 Mikhail Voytenko #i101418# fix the error handling
-rw-r--r--sal/osl/os2/util.c5
-rw-r--r--sal/osl/unx/file_path_helper.cxx10
-rw-r--r--sal/osl/unx/file_path_helper.h17
-rw-r--r--sal/osl/unx/file_path_helper.hxx19
-rw-r--r--sal/osl/unx/file_url.cxx56
-rw-r--r--sal/osl/unx/util.c77
-rw-r--r--sal/osl/w32/util.c9
7 files changed, 1 insertions, 192 deletions
diff --git a/sal/osl/os2/util.c b/sal/osl/os2/util.c
index 4dd08c00aed3..217c71878838 100644
--- a/sal/osl/os2/util.c
+++ b/sal/osl/os2/util.c
@@ -32,11 +32,6 @@
-extern sal_Bool osl_getEtherAddr(sal_Char* pszAddr, sal_uInt16 BufferSize)
-{
- return sal_False;
-}
-
extern sal_Bool osl_getEthernetAddress( sal_uInt8 * pTargetAddress )
{
return sal_False;
diff --git a/sal/osl/unx/file_path_helper.cxx b/sal/osl/unx/file_path_helper.cxx
index 0f6ad9e216ad..434a5a516e5c 100644
--- a/sal/osl/unx/file_path_helper.cxx
+++ b/sal/osl/unx/file_path_helper.cxx
@@ -125,16 +125,6 @@
}
/******************************************
- * osl_systemPathIsAbsolutePath
- *****************************************/
-
- sal_Bool SAL_CALL osl_systemPathIsAbsolutePath(const rtl_uString* pustrPath)
- {
- OSL_PRECOND(pustrPath, "osl_systemPathIsAbsolutePath: Invalid parameter");
- return (!osl_systemPathIsRelativePath(pustrPath));
- }
-
- /******************************************
osl_systemPathMakeAbsolutePath
*****************************************/
diff --git a/sal/osl/unx/file_path_helper.h b/sal/osl/unx/file_path_helper.h
index 17c6f0b71fba..3a89077e5633 100644
--- a/sal/osl/unx/file_path_helper.h
+++ b/sal/osl/unx/file_path_helper.h
@@ -105,23 +105,6 @@
const rtl_uString* pustrPath);
/******************************************
- osl_systemPathIsAbsolutePath
- Returns true if the given path is an
- absolute path and so starts with a '/'
-
- @param pustrPath [in] a system path
- pustrPath must not be NULL
-
- @returns sal_True if the given path
- start's with a separator else
- sal_False will be returned
-
- *****************************************/
-
- sal_Bool SAL_CALL osl_systemPathIsAbsolutePath(
- const rtl_uString* pustrPath);
-
- /******************************************
osl_systemPathMakeAbsolutePath
Append a relative path to a base path
diff --git a/sal/osl/unx/file_path_helper.hxx b/sal/osl/unx/file_path_helper.hxx
index ee38c14648c2..2a1d74687493 100644
--- a/sal/osl/unx/file_path_helper.hxx
+++ b/sal/osl/unx/file_path_helper.hxx
@@ -106,25 +106,6 @@ namespace osl
}
/******************************************
- systemPathIsAbsolutePath
- Returns true if the given path is an
- absolute path and so starts with a '/'
-
- @param pustrPath [in] a system path
- pustrPath must not be NULL
-
- @returns sal_True if the given path
- start's with a separator else
- sal_False will be returned
-
- *****************************************/
-
- inline bool systemPathIsAbsolutePath(const rtl::OUString& Path)
- {
- return osl_systemPathIsAbsolutePath(Path.pData);
- }
-
- /******************************************
systemPathMakeAbsolutePath
Append a relative path to a base path
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 602e8a98beac..1d6b9172bc6d 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -462,39 +462,6 @@ namespace /* private */
/*********************************************
********************************************/
- sal_Unicode* ustrcpy(const sal_Unicode* s, sal_Unicode* d)
- {
- const sal_Unicode* sc = s;
- sal_Unicode* dc = d;
-
- while ((*dc++ = *sc++))
- /**/;
-
- return d;
- }
-
- /*********************************************
-
- ********************************************/
-
- sal_Unicode* ustrncpy(const sal_Unicode* s, sal_Unicode* d, unsigned int n)
- {
- const sal_Unicode* sc = s;
- sal_Unicode* dc = d;
- unsigned int i = n;
-
- while (i--)
- *dc++ = *sc++;
-
- if (n)
- *dc = 0;
-
- return d;
- }
-
- /*********************************************
-
- ********************************************/
sal_Unicode* ustrchrcat(const sal_Unicode chr, sal_Unicode* d)
{
@@ -504,17 +471,6 @@ namespace /* private */
return d;
}
- /*********************************************
-
- ********************************************/
-
- sal_Unicode* ustrcat(const sal_Unicode* s, sal_Unicode* d)
- {
- sal_Unicode* dc = ustrtoend(d);
- ustrcpy(s, dc);
- return d;
- }
-
/******************************************************
*
******************************************************/
@@ -528,18 +484,6 @@ namespace /* private */
}
/******************************************************
- * Ensure that the given string has the specified last
- * character if necessary append it
- ******************************************************/
-
- sal_Unicode* _strensurelast(sal_Unicode* pStr, sal_Unicode Chr)
- {
- if (!_islastchr(pStr, Chr))
- ustrchrcat(Chr, pStr);
- return pStr;
- }
-
- /******************************************************
* Remove the last part of a path, a path that has
* only a '/' or no '/' at all will be returned
* unmodified
diff --git a/sal/osl/unx/util.c b/sal/osl/unx/util.c
index c0b9e3c5aa09..66746fd3ff44 100644
--- a/sal/osl/unx/util.c
+++ b/sal/osl/unx/util.c
@@ -51,11 +51,10 @@
static int osl_getHWAddr(const char *ifname, char* hard_addr);
static int osl_checkAddr(const char* addr);
-static char* osl_decodeEtherAddr(const char *ptr, char* buff);
/*****************************************************************************/
-/* osl_getEtherAddr */
+/* osl_getEthernetAddress */
/*****************************************************************************/
sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8 * pAddr )
@@ -124,68 +123,6 @@ sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8 * pAddr )
}
-extern sal_Bool osl_getEtherAddr(sal_Char* pszAddr, sal_uInt16 BufferSize)
-{
- char buff[1024];
- char hard_addr[64];
- struct ifconf ifc;
- struct ifreq *ifr;
- int i;
- int so;
-
- (void) BufferSize; /* unused */
-
- if ( pszAddr == 0 )
- {
- return sal_False;
- }
-
-
- /*
- * All we need is ... a network file descriptor.
- * Normally, this is a very socket.
- */
-
- so = socket(AF_INET, SOCK_DGRAM, 0);
-
-
- /*
- * The first thing we have to do, get the interface configuration.
- * It is a list of attached/configured interfaces
- */
-
- ifc.ifc_len = sizeof(buff);
- ifc.ifc_buf = buff;
- if ( ioctl(so, SIOCGIFCONF, &ifc) < 0 )
- {
-/* fprintf(stderr, "SIOCGIFCONF: %s\n", strerror(errno));*/
- close(so);
- return sal_False;
- }
-
- close(so);
-
- /*
- * For each of the interfaces in the interface list,
- * try to get the hardware address
- */
-
- ifr = ifc.ifc_req;
- for ( i = ifc.ifc_len / sizeof(struct ifreq) ; --i >= 0 ; ifr++ )
- {
- int nRet=0;
- nRet = osl_getHWAddr(ifr->ifr_name,hard_addr);
- if ( nRet > 0 )
- {
- osl_decodeEtherAddr(hard_addr,pszAddr);
- return sal_True;
- }
- }
-
- return sal_False;
-}
-
-
/*****************************************************************************/
/* osl_getHWAddr */
/*****************************************************************************/
@@ -285,18 +222,6 @@ static int osl_checkAddr(const char* addr)
}
-/*****************************************************************************/
-/* osl_decodeEtherAddr */
-/*****************************************************************************/
-
-static char* osl_decodeEtherAddr(const char *ptr, char* buff)
-{
- sprintf(buff, "%02X:%02X:%02X:%02X:%02X:%02X",
- (ptr[0] & 0377), (ptr[1] & 0377), (ptr[2] & 0377),
- (ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377));
- return(buff);
-}
-
#if defined (SPARC)
#if defined (SOLARIS) && !defined(__sparcv8plus) && !defined(__sparcv9)
diff --git a/sal/osl/w32/util.c b/sal/osl/w32/util.c
index a952de1dba8c..34c7b7ada53d 100644
--- a/sal/osl/w32/util.c
+++ b/sal/osl/w32/util.c
@@ -32,15 +32,6 @@
-extern sal_Bool osl_getEtherAddr(sal_Char* pszAddr, sal_uInt16 BufferSize)
-{
- /* avoid warnings */
- pszAddr = pszAddr;
- BufferSize = BufferSize;
-
- return sal_False;
-}
-
extern sal_Bool SAL_CALL osl_getEthernetAddress( sal_uInt8 *pAddr )
{
pAddr = pAddr; /* avoid warnings */