2000-09-18 14:18:43 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* $RCSfile: process.h,v $
|
|
|
|
*
|
2002-11-28 12:35:38 +00:00
|
|
|
* $Revision: 1.13 $
|
2000-09-18 14:18:43 +00:00
|
|
|
*
|
2002-11-28 12:35:38 +00:00
|
|
|
* last change: $Author: tra $ $Date: 2002-11-28 13:35:38 $
|
2000-09-18 14:18:43 +00:00
|
|
|
*
|
|
|
|
* The Contents of this file are made available subject to the terms of
|
|
|
|
* either of the following licenses
|
|
|
|
*
|
|
|
|
* - GNU Lesser General Public License Version 2.1
|
|
|
|
* - Sun Industry Standards Source License Version 1.1
|
|
|
|
*
|
|
|
|
* Sun Microsystems Inc., October, 2000
|
|
|
|
*
|
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2000 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
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Sun Industry Standards Source License Version 1.1
|
|
|
|
* =================================================
|
|
|
|
* The contents of this file are subject to the Sun Industry Standards
|
|
|
|
* Source License Version 1.1 (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.openoffice.org/license.html.
|
|
|
|
*
|
|
|
|
* Software provided under this License is provided on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
|
|
|
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
|
|
|
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
|
|
|
* See the License for the specific provisions governing your rights and
|
|
|
|
* obligations concerning the Software.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* Copyright: 2000 by Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s): _______________________________________
|
|
|
|
*
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _OSL_PROCESS_H_
|
|
|
|
#define _OSL_PROCESS_H_
|
|
|
|
|
|
|
|
#ifndef _RTL_USTRING_H
|
|
|
|
# include <rtl/ustring.h>
|
|
|
|
#endif
|
|
|
|
#ifndef _RTL_TEXTENC_H
|
|
|
|
# include <rtl/textenc.h>
|
|
|
|
#endif
|
2001-09-11 11:47:17 +00:00
|
|
|
#ifndef _RTL_LOCALE_H
|
|
|
|
# include <rtl/locale.h>
|
|
|
|
#endif
|
2000-09-18 14:18:43 +00:00
|
|
|
|
2001-03-14 08:50:26 +00:00
|
|
|
#ifndef _OSL_TIME_H_
|
|
|
|
#include <osl/time.h>
|
|
|
|
#endif
|
2000-09-18 14:18:43 +00:00
|
|
|
|
|
|
|
#ifndef _OSL_FILE_H_
|
|
|
|
# include <osl/file.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _OSL_PIPE_H_
|
|
|
|
#include <osl/pipe.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _OSL_SOCKET_H_
|
|
|
|
# include <osl/socket.h>
|
|
|
|
#endif
|
|
|
|
#ifndef _OSL_SECURITY_H_
|
|
|
|
# include <osl/security.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
typedef sal_Int32 oslProcessOption;
|
|
|
|
#define osl_Process_WAIT 0x0001 /* wait for completion */
|
|
|
|
#define osl_Process_SEARCHPATH 0x0002 /* search path for executable */
|
|
|
|
#define osl_Process_DETACHED 0x0004 /* run detached */
|
|
|
|
#define osl_Process_NORMAL 0x0000 /* run in normal window */
|
|
|
|
#define osl_Process_HIDDEN 0x0010 /* run hidden */
|
|
|
|
#define osl_Process_MINIMIZED 0x0020 /* run in minimized window */
|
|
|
|
#define osl_Process_MAXIMIZED 0x0040 /* run in maximized window */
|
|
|
|
#define osl_Process_FULLSCREEN 0x0080 /* run in fullscreen window */
|
|
|
|
|
|
|
|
typedef sal_Int32 oslProcessData;
|
2001-02-27 11:29:59 +00:00
|
|
|
|
|
|
|
/* defines for osl_getProcessInfo , can be OR'ed */
|
|
|
|
#define osl_Process_IDENTIFIER 0x0001 /* retrieves the process identifier */
|
|
|
|
#define osl_Process_EXITCODE 0x0002 /* retrieves exit code of the process */
|
|
|
|
#define osl_Process_CPUTIMES 0x0004 /* retrieves used cpu time */
|
|
|
|
#define osl_Process_HEAPUSAGE 0x0008 /* retrieves the used size of heap */
|
2000-09-18 14:18:43 +00:00
|
|
|
|
|
|
|
typedef sal_uInt32 oslProcessIdentifier;
|
|
|
|
typedef sal_uInt32 oslProcessExitCode;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
osl_Process_E_None, /* no error */
|
|
|
|
osl_Process_E_NotFound, /* image not found */
|
|
|
|
osl_Process_E_TimedOut, /* timout occured */
|
|
|
|
osl_Process_E_NoPermission, /* permission denied */
|
|
|
|
osl_Process_E_Unknown, /* unknown error */
|
|
|
|
osl_Process_E_InvalidError, /* unmapped error */
|
|
|
|
osl_Process_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
|
|
|
|
} oslProcessError;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
osl_Process_TypeNone, /* no descriptor */
|
|
|
|
osl_Process_TypeSocket, /* socket */
|
|
|
|
osl_Process_TypeFile, /* file */
|
|
|
|
osl_Process_TypePipe, /* pipe */
|
|
|
|
osl_Process_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
|
|
|
|
} oslDescriptorType;
|
|
|
|
|
|
|
|
typedef sal_Int32 oslDescriptorFlag;
|
|
|
|
#define osl_Process_DFNONE 0x0000
|
|
|
|
#define osl_Process_DFWAIT 0x0001
|
|
|
|
|
|
|
|
#ifdef SAL_W32
|
|
|
|
# pragma pack(push, 8)
|
|
|
|
#elif defined(SAL_OS2)
|
|
|
|
# pragma pack(1)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
2001-05-08 13:17:13 +00:00
|
|
|
sal_uInt32 Size;
|
|
|
|
oslProcessData Fields;
|
|
|
|
oslProcessIdentifier Ident;
|
|
|
|
oslProcessExitCode Code;
|
|
|
|
TimeValue UserTime;
|
|
|
|
TimeValue SystemTime;
|
|
|
|
sal_uInt32 HeapUsage;
|
2000-09-18 14:18:43 +00:00
|
|
|
} oslProcessInfo;
|
|
|
|
|
|
|
|
#ifdef SAL_W32
|
|
|
|
# pragma pack(pop)
|
|
|
|
#elif defined(SAL_OS2)
|
|
|
|
# pragma pack()
|
|
|
|
#endif
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** Process handle.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_terminateProcess()
|
|
|
|
@see osl_freeProcessHandle()
|
|
|
|
@see osl_getProcessInfo()
|
|
|
|
@see osl_joinProcess()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
|
|
|
typedef void* oslProcess;
|
|
|
|
|
|
|
|
/** Execute a process.
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
@param pustrImageName [in]
|
|
|
|
Denotes the file URL of the executable image to be started.
|
|
|
|
|
|
|
|
@param pustrArguments [in]
|
|
|
|
Is an array of argument strings.
|
|
|
|
|
|
|
|
@param nArgument [in]
|
|
|
|
The number of arguments provided.
|
|
|
|
|
|
|
|
@param Options [in]
|
|
|
|
Is a combination of int-constants to describe the mode of execution.
|
|
|
|
|
|
|
|
@param Security [in]
|
|
|
|
Describes a the user and his rights for wich the process is started.
|
|
|
|
|
|
|
|
@param pustrWorkDir [in]
|
|
|
|
Denotes the file URL of the working directory of the new process.
|
|
|
|
|
|
|
|
@param strEnviroments [in]
|
|
|
|
Is an array of strings wich describes the enviroment to set.
|
2000-09-18 14:18:43 +00:00
|
|
|
Each string has the form "variable=value".
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
@param nEnvironmentVars [in]
|
|
|
|
The number of environment vars to set.
|
|
|
|
|
|
|
|
@param pProcess [out]
|
|
|
|
Points to a oslProcess variable, in wich the processhandle is returned.
|
|
|
|
|
|
|
|
@return
|
|
|
|
osl_Process_E_None if the executable could be started, otherwise an error-code.
|
|
|
|
|
|
|
|
@see osl_executeProcess_WithRedirectedIO()
|
|
|
|
@see osl_freeProcessHandle()
|
|
|
|
@see osl_loginUser()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
oslProcessError SAL_CALL osl_executeProcess(rtl_uString *pustrImageName,
|
|
|
|
rtl_uString *pustrArguments[],
|
2000-09-18 14:18:43 +00:00
|
|
|
sal_uInt32 nArguments,
|
|
|
|
oslProcessOption Options,
|
|
|
|
oslSecurity Security,
|
2002-11-28 12:35:38 +00:00
|
|
|
rtl_uString *pustrWorkDir,
|
|
|
|
rtl_uString *pustrEnvironment[],
|
2000-09-18 14:18:43 +00:00
|
|
|
sal_uInt32 nEnvironmentVars,
|
|
|
|
oslProcess *pProcess);
|
|
|
|
|
2001-02-27 11:29:59 +00:00
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** Execute a process and redirected child process standard IO.
|
|
|
|
|
|
|
|
@param pustrImageName [in]
|
|
|
|
Denotes the file URL of the executable image to be started.
|
|
|
|
|
|
|
|
@param pustrArguments [in]
|
|
|
|
Is an array of argument strings.
|
|
|
|
|
|
|
|
@param nArgument [in]
|
|
|
|
The number of arguments provided.
|
|
|
|
|
|
|
|
@param Options [in]
|
|
|
|
Is a combination of int-constants to describe the mode of execution.
|
|
|
|
|
|
|
|
@param Security [in]
|
|
|
|
Describes a the user and his rights for wich the process is started.
|
|
|
|
|
|
|
|
@param pustrWorkDir [in]
|
|
|
|
Denotes the file URL of the working directory of the new process.
|
|
|
|
|
|
|
|
@param pustrEnviroment [in]
|
|
|
|
Is an array of strings wich describes the enviroment to set.
|
2001-07-19 11:14:30 +00:00
|
|
|
Each string has the form "variable=value".
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
@param nEnvironmentVars [in]
|
|
|
|
The number of environment vars to set.
|
|
|
|
|
|
|
|
@param pResource [in]
|
|
|
|
Is a NULL terminated array of resources to transmit to the client process.
|
|
|
|
|
|
|
|
@param pProcess [out]
|
|
|
|
Points to a oslProcess variable, in wich the processhandle is returned.
|
|
|
|
|
|
|
|
@param pChildInputWrite [out]
|
|
|
|
Points to a oslFileHandle variable that receives the handle which can
|
2001-07-19 11:14:30 +00:00
|
|
|
be used to write to child process standard input device. Handle has to be closed with osl_closeFile
|
2001-07-20 15:11:39 +00:00
|
|
|
if no longer used.
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
@param pChildOutputRead [out]
|
|
|
|
Points to a oslFileHandle variable that receives the handle which can be used to read from
|
|
|
|
child process standard output device. Handle has to be closed with osl_closeFile if no longer used.
|
|
|
|
|
|
|
|
@param pChildErrorRead [out]
|
|
|
|
Points to a oslFileHandle variable that receives the handle which can be used to read from child
|
|
|
|
process standard error device. Handle has to be closed with osl_closeFile if no longer used.
|
|
|
|
|
|
|
|
@return
|
|
|
|
osl_Process_E_None if the executable could be started, otherwise an error-code.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_freeProcessHandle()
|
|
|
|
@see osl_loginUser()
|
|
|
|
@see osl_closeFile()
|
2001-07-19 11:14:30 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
oslProcessError SAL_CALL osl_executeProcess_WithRedirectedIO(rtl_uString *pustrImageName,
|
|
|
|
rtl_uString *pustrArguments[],
|
2001-07-19 11:14:30 +00:00
|
|
|
sal_uInt32 nArguments,
|
|
|
|
oslProcessOption Options,
|
|
|
|
oslSecurity Security,
|
2002-11-28 12:35:38 +00:00
|
|
|
rtl_uString *pustrWorkDir,
|
|
|
|
rtl_uString *pustrEnvironment[],
|
2001-07-19 11:14:30 +00:00
|
|
|
sal_uInt32 nEnvironmentVars,
|
|
|
|
oslProcess *pProcess,
|
|
|
|
oslFileHandle *pChildInputWrite,
|
|
|
|
oslFileHandle *pChildOutputRead,
|
|
|
|
oslFileHandle *pChildErrorRead);
|
|
|
|
|
2001-02-27 11:29:59 +00:00
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** Terminate a process.
|
|
|
|
|
|
|
|
@param Process [in]
|
|
|
|
The handle of the process to be terminated.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_getProcess()
|
|
|
|
@see osl_joinProcess()
|
|
|
|
*/
|
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
oslProcessError SAL_CALL osl_terminateProcess(oslProcess Process);
|
|
|
|
|
2001-02-27 11:29:59 +00:00
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** Retrieve the process handle of a process identifier
|
|
|
|
|
|
|
|
@deprecated
|
|
|
|
|
|
|
|
@param Ident [in]
|
|
|
|
A process identifier.
|
2001-02-27 11:29:59 +00:00
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
@return
|
|
|
|
The process handle on success, NULL in all other cases.
|
2001-02-27 11:29:59 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
oslProcess SAL_CALL osl_getProcess(oslProcessIdentifier Ident);
|
|
|
|
|
2001-02-27 11:29:59 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
/** Free the specified proces-handle.
|
2002-11-28 12:35:38 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
@param Process [in]
|
2002-11-28 12:35:38 +00:00
|
|
|
The handle of the process.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_executeProcess_WithRedirectedIO()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
void SAL_CALL osl_freeProcessHandle(oslProcess Process);
|
|
|
|
|
2001-02-27 11:29:59 +00:00
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** Wait for completation of the specified child-process.
|
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
@param Process [in]
|
2002-11-28 12:35:38 +00:00
|
|
|
The handle of the process.
|
|
|
|
|
|
|
|
@return
|
|
|
|
ols_Process_E_None on success, otherwise an error code.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_executeProcess_WithRedirectedIO()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
oslProcessError SAL_CALL osl_joinProcess(oslProcess Process);
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
/** Retrieves information about a Process.
|
|
|
|
|
|
|
|
@param Process [in]
|
|
|
|
The handle of the process.
|
|
|
|
|
|
|
|
@param Fields [in]
|
|
|
|
The information which is to be retrieved this can be one or more of
|
|
|
|
osl_Process_IDENTIFIER
|
|
|
|
osl_Process_EXITCODE
|
|
|
|
osl_Process_CPUTIMES
|
|
|
|
osl_Process_HEAPUSAGE
|
|
|
|
|
|
|
|
@param pInfo [out]
|
|
|
|
A pointer to a vaid oslProcessInfo structure. The Size field has to be initialized with the size
|
|
|
|
of the oslProcessInfo structure. On success the the Field member holds the (or'ed) retrieved
|
|
|
|
valid information fields.
|
|
|
|
|
|
|
|
@return
|
|
|
|
osl_Process_E_None on success
|
|
|
|
osl_Process_E_Unknown on failure.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_executeProcess_WithRedirectedIO()
|
2001-02-27 11:29:59 +00:00
|
|
|
*/
|
2000-09-18 14:18:43 +00:00
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
oslProcessError SAL_CALL osl_getProcessInfo(
|
|
|
|
oslProcess Process,
|
|
|
|
oslProcessData Fields,
|
|
|
|
oslProcessInfo* pInfo);
|
|
|
|
|
|
|
|
|
|
|
|
/** Get the file name of the executable.
|
|
|
|
|
|
|
|
@param ppustrFile [out]
|
|
|
|
Receives the file URL of the executable image.
|
|
|
|
|
|
|
|
@return
|
|
|
|
osl_Process_E_None or does not return.
|
|
|
|
|
|
|
|
@see osl_executeProcess()
|
|
|
|
@see osl_executeProcess_WithRedirectedIO()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
oslProcessError SAL_CALL osl_getExecutableFile(rtl_uString **ppustrFile);
|
|
|
|
|
|
|
|
|
|
|
|
/** Get the number of command line arguments.
|
|
|
|
|
|
|
|
@return
|
|
|
|
The number of commandline arguments passed to the main function of
|
|
|
|
this process.
|
|
|
|
|
|
|
|
@see osl_getCommandArg()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
sal_uInt32 SAL_CALL osl_getCommandArgCount();
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
/** Get the nArg-th command line argument passed to the main function of this process.
|
|
|
|
|
|
|
|
@param nArg [in]
|
|
|
|
The number of the argument to return.
|
|
|
|
|
|
|
|
@param pustrCommandArg [out]
|
|
|
|
The string receives the nArg-th command-line argument.
|
|
|
|
|
|
|
|
@return
|
|
|
|
osl_Process_E_None or does not return.
|
|
|
|
|
|
|
|
@see osl_getCommandArgCount()
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
oslProcessError SAL_CALL osl_getCommandArg(sal_uInt32 nArg, rtl_uString **pustrCommandArg);
|
2000-09-18 14:18:43 +00:00
|
|
|
|
|
|
|
/** Get the value of one enviroment variable.
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
@param pustrVar [in]
|
|
|
|
Denotes the name of the variable to get.
|
|
|
|
|
|
|
|
@param ppustrValue [out]
|
|
|
|
String that receives the value of environment variable.
|
2000-09-18 14:18:43 +00:00
|
|
|
*/
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
oslProcessError SAL_CALL osl_getEnvironment(rtl_uString *pustrVar, rtl_uString **ppustrValue);
|
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
|
2001-05-08 13:17:13 +00:00
|
|
|
/** Get the working directory of the current process as a file URL.
|
|
|
|
|
|
|
|
The file URL is encoded as common for the OSL file API.
|
2002-11-28 12:35:38 +00:00
|
|
|
|
|
|
|
@param ppustrWorkingDir [out]
|
|
|
|
String that receives the working directory URL.
|
2001-05-08 13:17:13 +00:00
|
|
|
*/
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
oslProcessError SAL_CALL osl_getProcessWorkingDir( rtl_uString **ppustrWorkingDir );
|
|
|
|
|
2001-05-08 13:17:13 +00:00
|
|
|
|
2001-09-11 11:47:17 +00:00
|
|
|
/** Get the locale the process is currently running in.
|
|
|
|
|
|
|
|
The unix implementation caches the value it returns, so if you have to change the locale
|
|
|
|
your are running in, you will have to use osl_setProcessLocale therefor.
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
@param ppLocale [out]
|
|
|
|
A pointer that receives the currently selected locale structure.
|
|
|
|
|
|
|
|
@see osl_setProcessLocale()
|
2001-09-11 11:47:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
oslProcessError SAL_CALL osl_getProcessLocale( rtl_Locale ** ppLocale );
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
|
2001-09-11 11:47:17 +00:00
|
|
|
/** Change the locale of the process.
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
@param pLocale [in]
|
|
|
|
A pointer to the locale to be set.
|
|
|
|
|
|
|
|
@see osl_getProcessLocale()
|
2001-09-11 11:47:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
oslProcessError SAL_CALL osl_setProcessLocale( rtl_Locale * pLocale );
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** @internal
|
|
|
|
*/
|
2001-09-11 11:47:17 +00:00
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
sal_Bool SAL_CALL osl_sendResourcePipe(oslPipe Pipe, oslSocket Socket);
|
|
|
|
|
2002-11-28 12:35:38 +00:00
|
|
|
/** @internal
|
|
|
|
*/
|
|
|
|
|
2000-09-18 14:18:43 +00:00
|
|
|
oslSocket SAL_CALL osl_receiveResourcePipe(oslPipe Pipe);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _OSL_PROCESS_H_ */
|
|
|
|
|