Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
runall.cpp File Reference
#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"
Include dependency graph for runall.cpp:

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[])
 

Macro Definition Documentation

◆ ENOENT

#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.

◆ PATH_MAX

#define PATH_MAX   1024

Definition at line 68 of file runall.cpp.

◆ READ_BUF_LEN

#define READ_BUF_LEN   64

Arbitrary constant controling static read buffer size.

See also
count_warnings

Definition at line 205 of file runall.cpp.

◆ S_IXGRP

#define S_IXGRP   0010

Definition at line 58 of file runall.cpp.

◆ S_IXOTH

#define S_IXOTH   0001

Definition at line 62 of file runall.cpp.

◆ S_IXUSR

#define S_IXUSR   0100

Definition at line 54 of file runall.cpp.

Function Documentation

◆ get_target()

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.

Returns
(Base) name of current execution target.

Definition at line 411 of file runall.cpp.

◆ main()

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

Parameters
argcnumber of arguments recieved
argvarray of arguments recieved
Returns
0 upon successfull completeion of execution

Definition at line 513 of file runall.cpp.