MCPcopy Create free account
hub / github.com/ioi/isolate / main

Function main

isolate.c:1346–1535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344}
1345
1346int
1347main(int argc, char **argv)
1348{
1349 int c;
1350 int require_cg = 0;
1351 char *sep;
1352 const char *err;
1353 enum opt_code mode = 0;
1354
1355 init_dir_rules();
1356
1357 while ((c = getopt_long(argc, argv, short_opts, long_opts, NULL)) >= 0)
1358 switch (c)
1359 {
1360 case 'b':
1361 box_id = opt_uint(optarg);
1362 break;
1363 case 'c':
1364 set_cwd = optarg;
1365 break;
1366 case OPT_CG:
1367 cg_enable = 1;
1368 break;
1369 case 'd':
1370 err = set_dir_action(optarg);
1371 if (err)
1372 usage("Invalid directory rule '%s': %s\n", optarg, err);
1373 break;
1374 case 'D':
1375 default_dirs = 0;
1376 break;
1377 case 'e':
1378 pass_environ = 1;
1379 break;
1380 case 'E':
1381 if (!set_env_action(optarg))
1382 usage("Invalid environment specified: %s\n", optarg);
1383 break;
1384 case 'f':
1385 fsize_limit = opt_uint(optarg);
1386 break;
1387 case 'k':
1388 stack_limit = opt_uint(optarg);
1389 break;
1390 case 'n':
1391 open_file_limit = opt_uint(optarg);
1392 break;
1393 case 'i':
1394 redir_stdin = optarg;
1395 break;
1396 case 'm':
1397 memory_limit = opt_uint(optarg);
1398 break;
1399 case 'M':
1400 meta_open(optarg);
1401 break;
1402 case 'o':
1403 redir_stdout = optarg;

Callers

nothing calls this directly

Calls 15

init_dir_rulesFunction · 0.85
opt_uintFunction · 0.85
set_dir_actionFunction · 0.85
usageFunction · 0.85
set_env_actionFunction · 0.85
meta_openFunction · 0.85
xstrdupFunction · 0.85
show_versionFunction · 0.85
cf_parseFunction · 0.85
get_credentialsFunction · 0.85
box_initFunction · 0.85
cg_initFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…