psl1ght
A free SDK for Sony's PS3 console
Functions
process.h File Reference

Process management. More...

#include <ppu-types.h>

Go to the source code of this file.

Functions

void sysProcessExit (int status) __attribute__((noreturn))
 Terminate the running process. More...
 
void sysProcessExitSpawn2 (const char *path, const char *argv[], const char *envp[], void *data, size_t size, int priority, u64 flags)
 Terminate the running process and execute another program. More...
 

Detailed Description

Process management.

Function Documentation

◆ sysProcessExit()

void sysProcessExit ( int  status)

Terminate the running process.

This function does not return.

Parameters
statusProcess return status.

◆ sysProcessExitSpawn2()

void sysProcessExitSpawn2 ( const char *  path,
const char *  argv[],
const char *  envp[],
void *  data,
size_t  size,
int  priority,
u64  flags 
)

Terminate the running process and execute another program.

This function returns only in case of error.

Parameters
pathPath and name of new program to be executed.
argvCommandline arguments for the new program.
envpEnvironment variables for the new program (may be NULL).
dataAdditional data (may be NULL).
sizeSize of additional data.
priorityPriority.
flagsProcess flags. It contains an OR'ed combination of the following values: