LLVM 20.0.0git
Program.inc
Go to the documentation of this file.
1//===- llvm/Support/Unix/Program.inc ----------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file implements the Unix specific portion of the Program class.
10//
11//===----------------------------------------------------------------------===//
12
13//===----------------------------------------------------------------------===//
14//=== WARNING: Implementation here must contain only generic UNIX
15//=== code that is guaranteed to work on *all* UNIX variants.
16//===----------------------------------------------------------------------===//
17
19
20#include "Unix.h"
22#include "llvm/Config/config.h"
25#include "llvm/Support/Errc.h"
27#include "llvm/Support/Path.h"
31#include <sys/stat.h>
32#include <sys/resource.h>
33#include <signal.h>
34#include <fcntl.h>
35#if HAVE_UNISTD_H
36#include <unistd.h>
37#endif
38#ifdef HAVE_POSIX_SPAWN
39#include <spawn.h>
40
41#if defined(__APPLE__)
42#include <TargetConditionals.h>
43#endif
44
45#if defined(__APPLE__) && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)
46#define USE_NSGETENVIRON 1
47#else
48#define USE_NSGETENVIRON 0
49#endif
50
51#if !USE_NSGETENVIRON
52extern char **environ;
53#else
54#include <crt_externs.h> // _NSGetEnviron
55#endif
56#endif
57
58using namespace llvm;
59using namespace sys;
60
61ProcessInfo::ProcessInfo() : Pid(0), ReturnCode(0) {}
62
63ErrorOr<std::string> sys::findProgramByName(StringRef Name,
64 ArrayRef<StringRef> Paths) {
65 assert(!Name.empty() && "Must have a name!");
66 // Use the given path verbatim if it contains any slashes; this matches
67 // the behavior of sh(1) and friends.
68 if (Name.contains('/'))
69 return std::string(Name);
70
71 SmallVector<StringRef, 16> EnvironmentPaths;
72 if (Paths.empty())
73 if (const char *PathEnv = std::getenv("PATH")) {
74 SplitString(PathEnv, EnvironmentPaths, ":");
75 Paths = EnvironmentPaths;
76 }
77
78 for (auto Path : Paths) {
79 if (Path.empty())
80 continue;
81
82 // Check to see if this first directory contains the executable...
83 SmallString<128> FilePath(Path);
84 sys::path::append(FilePath, Name);
85 if (sys::fs::can_execute(FilePath.c_str()))
86 return std::string(FilePath); // Found the executable!
87 }
88 return errc::no_such_file_or_directory;
89}
90
91static bool RedirectIO(std::optional<StringRef> Path, int FD, std::string *ErrMsg) {
92 if (!Path) // Noop
93 return false;
94 std::string File;
95 if (Path->empty())
96 // Redirect empty paths to /dev/null
97 File = "/dev/null";
98 else
99 File = std::string(*Path);
100
101 // Open the file
102 int InFD = open(File.c_str(), FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666);
103 if (InFD == -1) {
104 MakeErrMsg(ErrMsg, "Cannot open file '" + File + "' for " +
105 (FD == 0 ? "input" : "output"));
106 return true;
107 }
108
109 // Install it as the requested FD
110 if (dup2(InFD, FD) == -1) {
111 MakeErrMsg(ErrMsg, "Cannot dup2");
112 close(InFD);
113 return true;
114 }
115 close(InFD); // Close the original FD
116 return false;
117}
118
119#ifdef HAVE_POSIX_SPAWN
120static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
121 posix_spawn_file_actions_t *FileActions) {
122 if (!Path) // Noop
123 return false;
124 const char *File;
125 if (Path->empty())
126 // Redirect empty paths to /dev/null
127 File = "/dev/null";
128 else
129 File = Path->c_str();
130
131 if (int Err = posix_spawn_file_actions_addopen(
132 FileActions, FD, File, FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666))
133 return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err);
134 return false;
135}
136#endif
137
138static void TimeOutHandler(int Sig) {}
139
140static void SetMemoryLimits(unsigned size) {
141 struct rlimit r;
142 __typeof__(r.rlim_cur) limit = (__typeof__(r.rlim_cur))(size)*1048576;
143
144 // Heap size
145 getrlimit(RLIMIT_DATA, &r);
146 r.rlim_cur = limit;
147 setrlimit(RLIMIT_DATA, &r);
148#ifdef RLIMIT_RSS
149 // Resident set size.
150 getrlimit(RLIMIT_RSS, &r);
151 r.rlim_cur = limit;
152 setrlimit(RLIMIT_RSS, &r);
153#endif
154}
155
156static std::vector<const char *>
157toNullTerminatedCStringArray(ArrayRef<StringRef> Strings, StringSaver &Saver) {
158 std::vector<const char *> Result;
159 for (StringRef S : Strings)
160 Result.push_back(Saver.save(S).data());
161 Result.push_back(nullptr);
162 return Result;
163}
164
165static bool Execute(ProcessInfo &PI, StringRef Program,
167 std::optional<ArrayRef<StringRef>> Env,
168 ArrayRef<std::optional<StringRef>> Redirects,
169 unsigned MemoryLimit, std::string *ErrMsg,
170 BitVector *AffinityMask, bool DetachProcess) {
171 if (!llvm::sys::fs::exists(Program)) {
172 if (ErrMsg)
173 *ErrMsg = std::string("Executable \"") + Program.str() +
174 std::string("\" doesn't exist!");
175 return false;
176 }
177
178 assert(!AffinityMask && "Starting a process with an affinity mask is "
179 "currently not supported on Unix!");
180
182 StringSaver Saver(Allocator);
183 std::vector<const char *> ArgVector, EnvVector;
184 const char **Argv = nullptr;
185 const char **Envp = nullptr;
186 ArgVector = toNullTerminatedCStringArray(Args, Saver);
187 Argv = ArgVector.data();
188 if (Env) {
189 EnvVector = toNullTerminatedCStringArray(*Env, Saver);
190 Envp = EnvVector.data();
191 }
192
193 // If this OS has posix_spawn and there is no memory limit being implied, use
194 // posix_spawn. It is more efficient than fork/exec.
195#ifdef HAVE_POSIX_SPAWN
196 // Cannot use posix_spawn if you would like to detach the process
197 if (MemoryLimit == 0 && !DetachProcess) {
198 posix_spawn_file_actions_t FileActionsStore;
199 posix_spawn_file_actions_t *FileActions = nullptr;
200
201 // If we call posix_spawn_file_actions_addopen we have to make sure the
202 // c strings we pass to it stay alive until the call to posix_spawn,
203 // so we copy any StringRefs into this variable.
204 std::string RedirectsStorage[3];
205
206 if (!Redirects.empty()) {
207 assert(Redirects.size() == 3);
208 std::string *RedirectsStr[3] = {nullptr, nullptr, nullptr};
209 for (int I = 0; I < 3; ++I) {
210 if (Redirects[I]) {
211 RedirectsStorage[I] = std::string(*Redirects[I]);
212 RedirectsStr[I] = &RedirectsStorage[I];
213 }
214 }
215
216 FileActions = &FileActionsStore;
217 posix_spawn_file_actions_init(FileActions);
218
219 // Redirect stdin/stdout.
220 if (RedirectIO_PS(RedirectsStr[0], 0, ErrMsg, FileActions) ||
221 RedirectIO_PS(RedirectsStr[1], 1, ErrMsg, FileActions))
222 return false;
223 if (!Redirects[1] || !Redirects[2] || *Redirects[1] != *Redirects[2]) {
224 // Just redirect stderr
225 if (RedirectIO_PS(RedirectsStr[2], 2, ErrMsg, FileActions))
226 return false;
227 } else {
228 // If stdout and stderr should go to the same place, redirect stderr
229 // to the FD already open for stdout.
230 if (int Err = posix_spawn_file_actions_adddup2(FileActions, 1, 2))
231 return !MakeErrMsg(ErrMsg, "Can't redirect stderr to stdout", Err);
232 }
233 }
234
235 if (!Envp)
236#if !USE_NSGETENVIRON
237 Envp = const_cast<const char **>(environ);
238#else
239 // environ is missing in dylibs.
240 Envp = const_cast<const char **>(*_NSGetEnviron());
241#endif
242
243 constexpr int maxRetries = 8;
244 int retries = 0;
245 pid_t PID;
246 int Err;
247 do {
248 PID = 0; // Make Valgrind happy.
249 Err = posix_spawn(&PID, Program.str().c_str(), FileActions,
250 /*attrp*/ nullptr, const_cast<char **>(Argv),
251 const_cast<char **>(Envp));
252 } while (Err == EINTR && ++retries < maxRetries);
253
254 if (FileActions)
255 posix_spawn_file_actions_destroy(FileActions);
256
257 if (Err)
258 return !MakeErrMsg(ErrMsg, "posix_spawn failed", Err);
259
260 PI.Pid = PID;
261 PI.Process = PID;
262
263 return true;
264 }
265#endif // HAVE_POSIX_SPAWN
266
267 // Create a child process.
268 int child = fork();
269 switch (child) {
270 // An error occurred: Return to the caller.
271 case -1:
272 MakeErrMsg(ErrMsg, "Couldn't fork");
273 return false;
274
275 // Child process: Execute the program.
276 case 0: {
277 // Redirect file descriptors...
278 if (!Redirects.empty()) {
279 // Redirect stdin
280 if (RedirectIO(Redirects[0], 0, ErrMsg)) {
281 return false;
282 }
283 // Redirect stdout
284 if (RedirectIO(Redirects[1], 1, ErrMsg)) {
285 return false;
286 }
287 if (Redirects[1] && Redirects[2] && *Redirects[1] == *Redirects[2]) {
288 // If stdout and stderr should go to the same place, redirect stderr
289 // to the FD already open for stdout.
290 if (-1 == dup2(1, 2)) {
291 MakeErrMsg(ErrMsg, "Can't redirect stderr to stdout");
292 return false;
293 }
294 } else {
295 // Just redirect stderr
296 if (RedirectIO(Redirects[2], 2, ErrMsg)) {
297 return false;
298 }
299 }
300 }
301
302 if (DetachProcess) {
303 // Detach from controlling terminal
304 if (::setsid() == -1) {
305 MakeErrMsg(ErrMsg, "Could not detach process, ::setsid failed");
306 return false;
307 }
308 }
309
310 // Set memory limits
311 if (MemoryLimit != 0) {
312 SetMemoryLimits(MemoryLimit);
313 }
314
315 // Execute!
316 std::string PathStr = std::string(Program);
317 if (Envp != nullptr)
318 execve(PathStr.c_str(), const_cast<char **>(Argv),
319 const_cast<char **>(Envp));
320 else
321 execv(PathStr.c_str(), const_cast<char **>(Argv));
322 // If the execve() failed, we should exit. Follow Unix protocol and
323 // return 127 if the executable was not found, and 126 otherwise.
324 // Use _exit rather than exit so that atexit functions and static
325 // object destructors cloned from the parent process aren't
326 // redundantly run, and so that any data buffered in stdio buffers
327 // cloned from the parent aren't redundantly written out.
328 _exit(errno == ENOENT ? 127 : 126);
329 }
330
331 // Parent process: Break out of the switch to do our processing.
332 default:
333 break;
334 }
335
336 PI.Pid = child;
337 PI.Process = child;
338
339 return true;
340}
341
342namespace llvm {
343namespace sys {
344
345#if defined(_AIX)
346static pid_t(wait4)(pid_t pid, int *status, int options, struct rusage *usage);
347#elif !defined(__Fuchsia__)
348using ::wait4;
349#endif
350
351} // namespace sys
352} // namespace llvm
353
354#ifdef _AIX
355#ifndef _ALL_SOURCE
356extern "C" pid_t(wait4)(pid_t pid, int *status, int options,
357 struct rusage *usage);
358#endif
359pid_t(llvm::sys::wait4)(pid_t pid, int *status, int options,
360 struct rusage *usage) {
361 assert(pid > 0 && "Only expecting to handle actual PID values!");
362 assert((options & ~WNOHANG) == 0 && "Expecting WNOHANG at most!");
363 assert(usage && "Expecting usage collection!");
364
365 // AIX wait4 does not work well with WNOHANG.
366 if (!(options & WNOHANG))
367 return ::wait4(pid, status, options, usage);
368
369 // For WNOHANG, we use waitid (which supports WNOWAIT) until the child process
370 // has terminated.
371 siginfo_t WaitIdInfo;
372 WaitIdInfo.si_pid = 0;
373 int WaitIdRetVal =
374 waitid(P_PID, pid, &WaitIdInfo, WNOWAIT | WEXITED | options);
375
376 if (WaitIdRetVal == -1 || WaitIdInfo.si_pid == 0)
377 return WaitIdRetVal;
378
379 assert(WaitIdInfo.si_pid == pid);
380
381 // The child has already terminated, so a blocking wait on it is okay in the
382 // absence of indiscriminate `wait` calls from the current process (which
383 // would cause the call here to fail with ECHILD).
384 return ::wait4(pid, status, options & ~WNOHANG, usage);
385}
386#endif
387
389 std::optional<unsigned> SecondsToWait,
390 std::string *ErrMsg,
391 std::optional<ProcessStatistics> *ProcStat,
392 bool Polling) {
393 struct sigaction Act, Old;
394 assert(PI.Pid && "invalid pid to wait on, process not started?");
395
396 int WaitPidOptions = 0;
397 pid_t ChildPid = PI.Pid;
398 bool WaitUntilTerminates = false;
399 if (!SecondsToWait) {
400 WaitUntilTerminates = true;
401 } else {
402 if (*SecondsToWait == 0)
403 WaitPidOptions = WNOHANG;
404
405 // Install a timeout handler. The handler itself does nothing, but the
406 // simple fact of having a handler at all causes the wait below to return
407 // with EINTR, unlike if we used SIG_IGN.
408 memset(&Act, 0, sizeof(Act));
409 Act.sa_handler = TimeOutHandler;
410 sigemptyset(&Act.sa_mask);
411 sigaction(SIGALRM, &Act, &Old);
412 // FIXME The alarm signal may be delivered to another thread.
413 alarm(*SecondsToWait);
414 }
415
416 // Parent process: Wait for the child process to terminate.
417 int status = 0;
418 ProcessInfo WaitResult;
419#ifndef __Fuchsia__
420 rusage Info;
421 if (ProcStat)
422 ProcStat->reset();
423
424 do {
425 WaitResult.Pid = sys::wait4(ChildPid, &status, WaitPidOptions, &Info);
426 } while (WaitUntilTerminates && WaitResult.Pid == -1 && errno == EINTR);
427#endif
428
429 if (WaitResult.Pid != PI.Pid) {
430 if (WaitResult.Pid == 0) {
431 // Non-blocking wait.
432 return WaitResult;
433 } else {
434 if (SecondsToWait && errno == EINTR && !Polling) {
435 // Kill the child.
436 kill(PI.Pid, SIGKILL);
437
438 // Turn off the alarm and restore the signal handler
439 alarm(0);
440 sigaction(SIGALRM, &Old, nullptr);
441
442 // Wait for child to die
443 // FIXME This could grab some other child process out from another
444 // waiting thread and then leave a zombie anyway.
445 if (wait(&status) != ChildPid)
446 MakeErrMsg(ErrMsg, "Child timed out but wouldn't die");
447 else
448 MakeErrMsg(ErrMsg, "Child timed out", 0);
449
450 WaitResult.ReturnCode = -2; // Timeout detected
451 return WaitResult;
452 } else if (errno != EINTR) {
453 MakeErrMsg(ErrMsg, "Error waiting for child process");
454 WaitResult.ReturnCode = -1;
455 return WaitResult;
456 }
457 }
458 }
459
460 // We exited normally without timeout, so turn off the timer.
461 if (SecondsToWait && !WaitUntilTerminates) {
462 alarm(0);
463 sigaction(SIGALRM, &Old, nullptr);
464 }
465
466#ifndef __Fuchsia__
467 if (ProcStat) {
468 std::chrono::microseconds UserT = toDuration(Info.ru_utime);
469 std::chrono::microseconds KernelT = toDuration(Info.ru_stime);
470 uint64_t PeakMemory = 0;
471#if !defined(__HAIKU__) && !defined(__MVS__)
472 PeakMemory = static_cast<uint64_t>(Info.ru_maxrss);
473#endif
474 *ProcStat = ProcessStatistics{UserT + KernelT, UserT, PeakMemory};
475 }
476#endif
477
478 // Return the proper exit status. Detect error conditions
479 // so we can return -1 for them and set ErrMsg informatively.
480 int result = 0;
481 if (WIFEXITED(status)) {
482 result = WEXITSTATUS(status);
483 WaitResult.ReturnCode = result;
484
485 if (result == 127) {
486 if (ErrMsg)
487 *ErrMsg = llvm::sys::StrError(ENOENT);
488 WaitResult.ReturnCode = -1;
489 return WaitResult;
490 }
491 if (result == 126) {
492 if (ErrMsg)
493 *ErrMsg = "Program could not be executed";
494 WaitResult.ReturnCode = -1;
495 return WaitResult;
496 }
497 } else if (WIFSIGNALED(status)) {
498 if (ErrMsg) {
499 *ErrMsg = strsignal(WTERMSIG(status));
500#ifdef WCOREDUMP
501 if (WCOREDUMP(status))
502 *ErrMsg += " (core dumped)";
503#endif
504 }
505 // Return a special value to indicate that the process received an unhandled
506 // signal during execution as opposed to failing to execute.
507 WaitResult.ReturnCode = -2;
508 }
509 return WaitResult;
510}
511
512std::error_code llvm::sys::ChangeStdinMode(fs::OpenFlags Flags) {
513 if (!(Flags & fs::OF_Text))
514 return ChangeStdinToBinary();
515 return std::error_code();
516}
517
518std::error_code llvm::sys::ChangeStdoutMode(fs::OpenFlags Flags) {
519 if (!(Flags & fs::OF_Text))
520 return ChangeStdoutToBinary();
521 return std::error_code();
522}
523
524std::error_code llvm::sys::ChangeStdinToBinary() {
525#ifdef __MVS__
526 return disablezOSAutoConversion(STDIN_FILENO);
527#else
528 // Do nothing, as Unix doesn't differentiate between text and binary.
529 return std::error_code();
530#endif
531}
532
533std::error_code llvm::sys::ChangeStdoutToBinary() {
534 // Do nothing, as Unix doesn't differentiate between text and binary.
535 return std::error_code();
536}
537
538std::error_code
540 WindowsEncodingMethod Encoding /*unused*/) {
541 std::error_code EC;
542 llvm::raw_fd_ostream OS(FileName, EC,
544
545 if (EC)
546 return EC;
547
548 OS << Contents;
549
550 if (OS.has_error())
551 return make_error_code(errc::io_error);
552
553 return EC;
554}
555
557 ArrayRef<StringRef> Args) {
558 static long ArgMax = sysconf(_SC_ARG_MAX);
559 // POSIX requires that _POSIX_ARG_MAX is 4096, which is the lowest possible
560 // value for ARG_MAX on a POSIX compliant system.
561 static long ArgMin = _POSIX_ARG_MAX;
562
563 // This the same baseline used by xargs.
564 long EffectiveArgMax = 128 * 1024;
565
566 if (EffectiveArgMax > ArgMax)
567 EffectiveArgMax = ArgMax;
568 else if (EffectiveArgMax < ArgMin)
569 EffectiveArgMax = ArgMin;
570
571 // System says no practical limit.
572 if (ArgMax == -1)
573 return true;
574
575 // Conservatively account for space required by environment variables.
576 long HalfArgMax = EffectiveArgMax / 2;
577
578 size_t ArgLength = Program.size() + 1;
579 for (StringRef Arg : Args) {
580 // Ensure that we do not exceed the MAX_ARG_STRLEN constant on Linux, which
581 // does not have a constant unlike what the man pages would have you
582 // believe. Since this limit is pretty high, perform the check
583 // unconditionally rather than trying to be aggressive and limiting it to
584 // Linux only.
585 if (Arg.size() >= (32 * 4096))
586 return false;
587
588 ArgLength += Arg.size() + 1;
589 if (ArgLength > size_t(HalfArgMax)) {
590 return false;
591 }
592 }
593
594 return true;
595}
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
std::string Name
#define I(x, y, z)
Definition: MD5.cpp:58
static bool Execute(ProcessInfo &PI, StringRef Program, ArrayRef< StringRef > Args, std::optional< ArrayRef< StringRef > > Env, ArrayRef< std::optional< StringRef > > Redirects, unsigned MemoryLimit, std::string *ErrMsg, BitVector *AffinityMask, bool DetachProcess)
Basic Register Allocator
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
raw_pwrite_stream & OS
This file contains some functions that are useful when dealing with strings.
static bool MakeErrMsg(std::string *ErrMsg, const std::string &prefix, int errnum=-1)
This function builds an error message into ErrMsg using the prefix string and the Unix error number g...
Definition: Unix.h:53
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
bool empty() const
empty - Check if the array is empty.
Definition: ArrayRef.h:163
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:66
Represents either an error or a value T.
Definition: ErrorOr.h:56
SmallString - A SmallString is just a SmallVector with methods and accessors that make it work better...
Definition: SmallString.h:26
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition: SmallVector.h:1196
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
std::string str() const
str - Get the contents as an std::string.
Definition: StringRef.h:229
constexpr size_t size() const
size - Get the string size.
Definition: StringRef.h:150
constexpr const char * data() const
data - Get a pointer to the start of the string (which may not be null terminated).
Definition: StringRef.h:144
Saves strings in the provided stable storage and returns a StringRef with a stable character pointer.
Definition: StringSaver.h:21
StringRef save(const char *S)
Definition: StringSaver.h:30
A raw_ostream that writes to a file descriptor.
Definition: raw_ostream.h:460
std::vector< std::string > ArgVector
LVOptions & options()
Definition: LVOptions.h:445
std::error_code status(const Twine &path, file_status &result, bool follow=true)
Get file status as if by POSIX stat().
bool exists(const basic_file_status &status)
Does file exist?
Definition: Path.cpp:1077
@ OF_TextWithCRLF
The file should be opened in text mode and use a carriage linefeed '\r '.
Definition: FileSystem.h:763
std::chrono::nanoseconds toDuration(FILETIME Time)
std::string StrError()
Returns a string representation of the errno value, using whatever thread-safe variant of strerror() ...
Definition: Errno.cpp:26
std::error_code ChangeStdinMode(fs::OpenFlags Flags)
std::error_code ChangeStdinToBinary()
ProcessInfo Wait(const ProcessInfo &PI, std::optional< unsigned > SecondsToWait, std::string *ErrMsg=nullptr, std::optional< ProcessStatistics > *ProcStat=nullptr, bool Polling=false)
This function waits for the process specified by PI to finish.
bool commandLineFitsWithinSystemLimits(StringRef Program, ArrayRef< StringRef > Args)
Return true if the given arguments fit within system-specific argument length limits.
std::error_code ChangeStdoutMode(fs::OpenFlags Flags)
WindowsEncodingMethod
File encoding options when writing contents that a non-UTF8 tool will read (on Windows systems).
Definition: Program.h:172
std::error_code ChangeStdoutToBinary()
std::error_code writeFileWithEncoding(StringRef FileName, StringRef Contents, WindowsEncodingMethod Encoding=WEM_UTF8)
Saves the UTF8-encoded contents string into the file FileName using a specific encoding.
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
std::error_code make_error_code(BitcodeError E)
This struct encapsulates information about a process.
Definition: Program.h:46
process_t Process
The process identifier.
Definition: Program.h:50
int ReturnCode
Platform-dependent process object.
Definition: Program.h:53
This struct encapsulates information about a process execution.
Definition: Program.h:59