1 /*===- SysUtils.h - Utilities to do low-level system stuff -------*- C -*--===*\
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 * This file contains functions used to do a variety of low-level, often *
12 * system-specific, tasks. *
14 \*===----------------------------------------------------------------------===*/
22 * isExecutable - This function returns true if given struct stat describes the
23 * file as being executable.
25 unsigned isExecutable(const struct stat *buf);
28 * isExecutableFile - This function returns true if the filename specified
29 * exists and is executable.
31 unsigned isExecutableFile(const char *ExeFileName);
34 * FindExecutable - Find a named executable in the path.
36 char *FindExecutable(const char *ExeName);
39 * This method finds the real `execve' call in the C library and executes the
43 executeProgram(const char *filename, char *const argv[], char *const envp[]);