ARPDAS_QNX6 1.0
Functions
tm_dev_name.c File Reference
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "company.h"
#include "nortlib.h"
#include "tm.h"
#include "nl_assert.h"
Include dependency graph for tm_dev_name.c:

Go to the source code of this file.

Functions

const char * tm_dev_name (const char *base)
 Build a standard name for QNX6 resource.

Function Documentation

const char* tm_dev_name ( const char *  base)

Build a standard name for QNX6 resource.

#include "tm.h"
const char *tm_dev_name(const char *base);

If the input base string does not start with a '/', tm_dev_name() builds a string of the form: /dev/huarp/exp/base where exp is the current value of the environment variable "Experiment" and base is the input argument string. This is the standard means of building resource names within the ARP Data Acquisition System architecture.

Returns a pointer to a static buffer containing the expanded name. You must save the string if it is needed for long.

Returns:
the input string if it begins with a '/'. Otherwise returns a pointer to a static buffer containing the expanded name.

Definition at line 31 of file tm_dev_name.c.

References assert, COMPANY, nl_error, and nl_response.

Referenced by DG_cmd::attach(), ci_cmdee_init(), ci_server(), cic_init(), cis_setup_rdr(), Col_send_init(), data_client::data_client(), DG_data::DG_data(), data_generator::init(), msg_init_options(), cmdif_wr::Setup(), and setup_mount().

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines