Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9a038e5e
Kaydet (Commit)
9a038e5e
authored
Kas 19, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fold uunxapi.h into uunxapi.hxx
Change-Id: Ic16758e436da13684320e7e3bf07b80d8d8c7c5d
üst
7b778239
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
77 deletions
+41
-77
file.cxx
sal/osl/unx/file.cxx
+1
-1
process_impl.cxx
sal/osl/unx/process_impl.cxx
+1
-1
uunxapi.cxx
sal/osl/unx/uunxapi.cxx
+4
-4
uunxapi.h
sal/osl/unx/uunxapi.h
+0
-70
uunxapi.hxx
sal/osl/unx/uunxapi.hxx
+35
-1
No files found.
sal/osl/unx/file.cxx
Dosyayı görüntüle @
9a038e5e
...
...
@@ -35,7 +35,7 @@
#include "file_error_transl.hxx"
#include "file_impl.hxx"
#include "file_url.hxx"
#include "uunxapi.h"
#include "uunxapi.h
xx
"
#include <algorithm>
#include <limits>
...
...
sal/osl/unx/process_impl.cxx
Dosyayı görüntüle @
9a038e5e
...
...
@@ -33,7 +33,7 @@
#include "file_path_helper.h"
#include "uunxapi.h"
#include "uunxapi.h
xx
"
#include "getexecutablefile.hxx"
#include "nlsupport.hxx"
...
...
sal/osl/unx/uunxapi.cxx
Dosyayı görüntüle @
9a038e5e
...
...
@@ -19,7 +19,7 @@
#include <config_features.h>
#include "uunxapi.h"
#include "uunxapi.h
xx
"
#include "system.h"
#include <limits.h>
#include <rtl/ustring.hxx>
...
...
@@ -186,19 +186,19 @@ int access_u(const rtl_uString* pustrPath, int mode)
return
result
;
}
sal_B
ool
realpath_u
(
const
rtl_uString
*
pustrFileName
,
rtl_uString
**
ppustrResolvedName
)
b
ool
realpath_u
(
const
rtl_uString
*
pustrFileName
,
rtl_uString
**
ppustrResolvedName
)
{
rtl
::
OString
fn
=
OUStringToOString
(
pustrFileName
);
#ifdef ANDROID
if
(
fn
==
"/assets"
||
fn
.
startsWith
(
"/assets/"
))
{
if
(
access_u
(
pustrFileName
,
F_OK
)
==
-
1
)
return
sal_F
alse
;
return
f
alse
;
rtl_uString
silly
(
*
pustrFileName
);
rtl_uString_assign
(
ppustrResolvedName
,
&
silly
);
return
sal_T
rue
;
return
t
rue
;
}
#endif
...
...
sal/osl/unx/uunxapi.h
deleted
100644 → 0
Dosyayı görüntüle @
7b778239
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_SAL_OSL_UNX_UUNXAPI_H
#define INCLUDED_SAL_OSL_UNX_UUNXAPI_H
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <rtl/ustring.h>
#ifdef __cplusplus
extern
"C"
{
#endif
int
access_u
(
const
rtl_uString
*
pustrPath
,
int
mode
);
/***********************************
@descr
The return value differs from the
realpath function
@returns sal_True on success else
sal_False
@see realpath
**********************************/
sal_Bool
realpath_u
(
const
rtl_uString
*
pustrFileName
,
rtl_uString
**
ppustrResolvedName
);
int
stat_c
(
const
char
*
cpPath
,
struct
stat
*
buf
);
int
lstat_c
(
const
char
*
cpPath
,
struct
stat
*
buf
);
int
lstat_u
(
const
rtl_uString
*
pustrPath
,
struct
stat
*
buf
);
int
mkdir_u
(
const
rtl_uString
*
path
,
mode_t
mode
);
int
open_c
(
const
char
*
cpPath
,
int
oflag
,
int
mode
);
int
utime_c
(
const
char
*
cpPath
,
struct
utimbuf
*
times
);
int
ftruncate_with_name
(
int
fd
,
sal_uInt64
uSize
,
rtl_String
*
path
);
#ifdef __cplusplus
}
#endif
#endif // INCLUDED_SAL_OSL_UNX_UUNXAPI_H
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sal/osl/unx/uunxapi.hxx
Dosyayı görüntüle @
9a038e5e
...
...
@@ -20,10 +20,44 @@
#ifndef INCLUDED_SAL_OSL_UNX_UUNXAPI_HXX
#define INCLUDED_SAL_OSL_UNX_UUNXAPI_HXX
#include "uunxapi.h"
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <rtl/ustring.h>
#include <rtl/ustring.hxx>
int
access_u
(
const
rtl_uString
*
pustrPath
,
int
mode
);
/***********************************
@descr
The return value differs from the
realpath function
@returns sal_True on success else
sal_False
@see realpath
**********************************/
bool
realpath_u
(
const
rtl_uString
*
pustrFileName
,
rtl_uString
**
ppustrResolvedName
);
int
stat_c
(
const
char
*
cpPath
,
struct
stat
*
buf
);
int
lstat_c
(
const
char
*
cpPath
,
struct
stat
*
buf
);
int
lstat_u
(
const
rtl_uString
*
pustrPath
,
struct
stat
*
buf
);
int
mkdir_u
(
const
rtl_uString
*
path
,
mode_t
mode
);
int
open_c
(
const
char
*
cpPath
,
int
oflag
,
int
mode
);
int
utime_c
(
const
char
*
cpPath
,
struct
utimbuf
*
times
);
int
ftruncate_with_name
(
int
fd
,
sal_uInt64
uSize
,
rtl_String
*
path
);
namespace
osl
{
inline
int
access
(
const
rtl
::
OUString
&
ustrPath
,
int
mode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment