"Fossies" - the Fresh Open Source Software Archive

Member "seed7/src/cmd_drv.h" (1 Jan 2021, 3577 Bytes) of package /linux/misc/seed7_05_20210223.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "cmd_drv.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 05_20201208_vs_05_20210106.

    1 /********************************************************************/
    2 /*                                                                  */
    3 /*  cmd_drv.h     Prototypes of OS specific command functions.      */
    4 /*  Copyright (C) 1989 - 2011  Thomas Mertes                        */
    5 /*                                                                  */
    6 /*  This file is part of the Seed7 Runtime Library.                 */
    7 /*                                                                  */
    8 /*  The Seed7 Runtime Library is free software; you can             */
    9 /*  redistribute it and/or modify it under the terms of the GNU     */
   10 /*  Lesser General Public License as published by the Free Software */
   11 /*  Foundation; either version 2.1 of the License, or (at your      */
   12 /*  option) any later version.                                      */
   13 /*                                                                  */
   14 /*  The Seed7 Runtime Library is distributed in the hope that it    */
   15 /*  will be useful, but WITHOUT ANY WARRANTY; without even the      */
   16 /*  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR */
   17 /*  PURPOSE.  See the GNU Lesser General Public License for more    */
   18 /*  details.                                                        */
   19 /*                                                                  */
   20 /*  You should have received a copy of the GNU Lesser General       */
   21 /*  Public License along with this program; if not, write to the    */
   22 /*  Free Software Foundation, Inc., 51 Franklin Street,             */
   23 /*  Fifth Floor, Boston, MA  02110-1301, USA.                       */
   24 /*                                                                  */
   25 /*  Module: Seed7 Runtime Library                                   */
   26 /*  File: seed7/src/cmd_drv.h                                       */
   27 /*  Changes: 2010  Thomas Mertes                                    */
   28 /*  Content: Prototypes of OS specific command functions.           */
   29 /*                                                                  */
   30 /********************************************************************/
   31 
   32 #ifdef C_PLUS_PLUS
   33 #define C "C"
   34 #else
   35 #define C
   36 #endif
   37 
   38 #ifdef DETERMINE_OS_PROPERTIES_AT_RUNTIME
   39 extern char *nullDevice;
   40 extern unsigned char shellPathDelimiter;
   41 extern boolType shellUsesDriveLetters;
   42 #ifdef EMULATE_ENVIRONMENT
   43 extern int (*environmenStrncmp) (const char *s1, const char *s2, size_t n);
   44 #endif
   45 #endif
   46 
   47 os_striType *getUtf16Argv (int *w_argc);
   48 void freeUtf16Argv (os_striType *w_argv);
   49 striType getExecutablePath (const const_striType arg_0);
   50 #if USE_GET_ENVIRONMENT
   51 os_striType *getEnvironment (void);
   52 void freeEnvironment (os_striType *environment);
   53 #endif
   54 #ifdef EMULATE_ENVIRONMENT
   55 char *getenv7 (const char *name);
   56 int setenv7 (const char *name, const char *value, int overwrite);
   57 int unsetenv7 (const char *name);
   58 #ifdef EMULATE_NODE_ENVIRONMENT
   59 int setenvForNodeJs (const char *name, const char *value, int overwrite);
   60 int unsetenvForNodeJs (const char *name);
   61 #endif
   62 #endif
   63 #ifdef DEFINE_WGETENV
   64 os_striType wgetenv (const const_os_striType name);
   65 #endif
   66 #ifdef DEFINE_WSETENV
   67 int wsetenv (const const_os_striType name, const const_os_striType value,
   68     int overwrite);
   69 #endif
   70 #ifdef DEFINE_WUNSETENV
   71 int wunsetenv (const const_os_striType name);
   72 #endif
   73 striType cmdGetGroup (const const_striType filePath);
   74 striType cmdGetOwner (const const_striType filePath);
   75 void cmdSetGroup (const const_striType filePath, const const_striType group);
   76 void cmdSetOwner (const const_striType filePath, const const_striType owner);