Radix cross Linux Package Tools

Package Tools – is a set of utilities to create, install, and update RcL packages

8 Commits   0 Branches   2 Tags
     5         kx 
     5         kx /**********************************************************************
     5         kx 
     5         kx   Copyright 2019 Andrey V.Kosteltsev
     5         kx 
     5         kx   Licensed under the Radix.pro License, Version 1.0 (the "License");
     5         kx   you may not use this file  except  in compliance with the License.
     5         kx   You may obtain a copy of the License at
     5         kx 
     5         kx      https://radix.pro/licenses/LICENSE-1.0-en_US.txt
     5         kx 
     5         kx   Unless required by applicable law or agreed to in writing, software
     5         kx   distributed under the License is distributed on an "AS IS" BASIS,
     5         kx   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
     5         kx   implied.
     5         kx 
     5         kx  **********************************************************************/
     5         kx 
     5         kx #ifndef _SYSTEM_H_
     5         kx #define _SYSTEM_H_
     5         kx 
     5         kx #ifdef __cplusplus
     5         kx extern "C" {
     5         kx #endif
     5         kx 
     5         kx 
     5         kx extern pid_t sys_exec_command( const char *cmd );
     5         kx 
     5         kx /*****************************************************************
     5         kx   sys_wait_command() - Wait for pid.
     5         kx 
     5         kx   Return values:
     5         kx   -------------
     5         kx      0  - SUCCESS
     5         kx    >=1  - status returned by child process
     5         kx     -1  - Child terminated on signal
     5         kx     -2  - Child terminated on unknown reason
     5         kx     -3  - Cannot waitpid: waitpid() retusrs -1
     5         kx 
     5         kx      Error message with SIZE length saved into *ERRMSG buffer.
     5         kx  *****************************************************************/
     5         kx extern int sys_wait_command( pid_t pid, char *errmsg, size_t size );
     5         kx 
     5         kx 
     5         kx #ifdef __cplusplus
     5         kx }  /* ... extern "C" */
     5         kx #endif
     5         kx 
     5         kx #endif /* _SYSTEM_H_ */