|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <assert.h>#include <errno.h>#include <stdlib.h>#include <string.h>#include <stdio.h>#include <ctype.h>#include <limits.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/wait.h>#include "cmdopt.h"#include "display.h"#include "exec.h"#include "output.h"#include "util.h"#include "target.h"
Go to the source code of this file.
Macros | |
| #define | ENOENT 2 |
| #define | S_IXUSR 0100 |
| #define | S_IXGRP 0010 |
| #define | S_IXOTH 0001 |
| #define | PATH_MAX 1024 |
| #define | READ_BUF_LEN 64 |
Functions | |
| const char * | get_target () |
| int | main (int argc, char *argv[]) |
| #define ENOENT 2 |
runall.cpp - Core logic for the exec utility
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition at line 50 of file runall.cpp.
| #define PATH_MAX 1024 |
Definition at line 68 of file runall.cpp.
| #define READ_BUF_LEN 64 |
Arbitrary constant controling static read buffer size.
Definition at line 205 of file runall.cpp.
| #define S_IXGRP 0010 |
Definition at line 58 of file runall.cpp.
| #define S_IXOTH 0001 |
Definition at line 62 of file runall.cpp.
| #define S_IXUSR 0100 |
Definition at line 54 of file runall.cpp.
| const char * get_target | ( | ) |
Accessor method for current execution target.
This function is defined in runall.cpp (not cmdopt.cpp).
This value is a pointer into argv[0] of the current target.
Definition at line 411 of file runall.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Entry point to the application.
Passes arguments to the option processing subsystem, then processes all remaing arguments as targets using run_target
| argc | number of arguments recieved |
| argv | array of arguments recieved |
Definition at line 513 of file runall.cpp.