#include <stdarg.h>#include <ctype.h>#include <sys/types.h>#include <sys/stat.h>#include "rldefine.h"

Go to the source code of this file.
Functions | |
| int | rlSetDebugPrintf (int state) |
| int | rlDebugPrintf (const char *format,...) |
| int | rlLastLinePrintf (const char *format,...) |
| int | rlexec (const char *command) |
| const char * | rlpass (const char *p) |
| char * | rlstrncpy (char *dest, const char *source, int n) |
| int | rlvsnprintf (char *text, int len, const char *format, va_list ap) |
| int | rlsnprintf (char *text, int len, const char *format,...) |
| void | rlSetSigtermHandler (void(*handler)(void *arg), void *arg) |
| const char * | rlFindFile (const char *pattern, int *context) |
| const char * | rlGetInifile (const char *name) |
| int | rlSwapShort (int val) |
| int | rlEib1 (int command) |
| int | rlEib2 (int command) |
| int | rlLon1 (int command) |
| int | rlLon2 (int command) |
| int | rlProfibus1 (int command) |
| int | rlProfibus2 (int command) |
| int | rlCan1 (int command) |
| int | rlCan2 (int command) |
| int | rlBrowser (const char *htmlfile) |
| int | rlsystem (const char *command) |
| int | rlSubmitPvserver (const char *env, const char *path, const char *pvs, const char *options=NULL) |
| int | rlOption (const char *string, const char *option) |
| int | rlIntOption (const char *string, const char *option, int _default) |
| float | rlFloatOption (const char *string, const char *option, float _default) |
| const char * | rlTextOption (const char *string, const char *option, const char *_default) |
| int | rlCopyTextfile (const char *source, const char *destination) |
| int | rlupper (char *str) |
| int | rllower (char *str) |
| int | rlStartsWith (const char *str, const char *startstr) |
| int | rlStrMatch (const char *str, const char *wild) |
| int | rlStat (const char *filepath, struct stat *buf) |
| int | rlMkdir (const char *dir, int mode=0744) |
| int rlBrowser | ( | const char * | htmlfile | ) |
<pre>
Call internet browser
Definition at line 577 of file rlcutil.cpp.
| int rlCan1 | ( | int | command | ) |
Definition at line 395 of file rlcutil.cpp.
| int rlCan2 | ( | int | command | ) |
Definition at line 403 of file rlcutil.cpp.
| int rlCopyTextfile | ( | const char * | source, |
| const char * | destination | ||
| ) |
<pre>
Copy a Textfile (no binary file)
Definition at line 660 of file rlcutil.cpp.
| int rlDebugPrintf | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 60 of file rlcutil.cpp.
| int rlEib1 | ( | int | command | ) |
<pre>
Send command to a bus system
Definition at line 347 of file rlcutil.cpp.
| int rlEib2 | ( | int | command | ) |
Definition at line 355 of file rlcutil.cpp.
| int rlexec | ( | const char * | command | ) |
call execvp(arg[0],arg) on unix
Definition at line 93 of file rlcutil.cpp.
| const char* rlFindFile | ( | const char * | pattern, |
| int * | context | ||
| ) |
context = 0 must be 0 on first call
Definition at line 241 of file rlcutil.cpp.
| float rlFloatOption | ( | const char * | string, |
| const char * | option, | ||
| float | _default | ||
| ) |
<pre>
Get option from string
Definition at line 619 of file rlcutil.cpp.
| const char* rlGetInifile | ( | const char * | name | ) |
<pre>
returns: ~/.name on Linux/Unix sys$login:name on OpenVMS USERPROFILE%\name on Windows
Definition at line 320 of file rlcutil.cpp.
| int rlIntOption | ( | const char * | string, |
| const char * | option, | ||
| int | _default | ||
| ) |
<pre>
Get option from string
Definition at line 604 of file rlcutil.cpp.
| int rlLastLinePrintf | ( | const char * | format, |
| ... | |||
| ) |
like printf in the last line of a terminal
Definition at line 74 of file rlcutil.cpp.
| int rlLon1 | ( | int | command | ) |
Definition at line 363 of file rlcutil.cpp.
| int rlLon2 | ( | int | command | ) |
Definition at line 371 of file rlcutil.cpp.
| int rllower | ( | char * | str | ) |
<pre>
convert str to lower case
Definition at line 702 of file rlcutil.cpp.
| int rlMkdir | ( | const char * | dir, |
| int | mode = 0744 |
||
| ) |
<pre>
same as mkdir
Definition at line 762 of file rlcutil.cpp.
| int rlOption | ( | const char * | string, |
| const char * | option | ||
| ) |
<pre>
Get option from string return = 0 # not found return = 1 # found
Definition at line 595 of file rlcutil.cpp.
| const char* rlpass | ( | const char * | p | ) |
encode plain text password p
Definition at line 131 of file rlcutil.cpp.
| int rlProfibus1 | ( | int | command | ) |
Definition at line 379 of file rlcutil.cpp.
| int rlProfibus2 | ( | int | command | ) |
Definition at line 387 of file rlcutil.cpp.
| int rlSetDebugPrintf | ( | int | state | ) |
| void rlSetSigtermHandler | ( | void(*)(void *arg) | handler, |
| void * | arg | ||
| ) |
set signal handler for signal SIGTERM
Definition at line 233 of file rlcutil.cpp.
| int rlsnprintf | ( | char * | text, |
| int | len, | ||
| const char * | format, | ||
| ... | |||
| ) |
like snprintf but portable
Definition at line 197 of file rlcutil.cpp.
| int rlStartsWith | ( | const char * | str, |
| const char * | startstr | ||
| ) |
<pre>
test if str starts with startstr
Definition at line 713 of file rlcutil.cpp.
| int rlStat | ( | const char * | filepath, |
| struct stat * | buf | ||
| ) |
| int rlStrMatch | ( | const char * | str, |
| const char * | wild | ||
| ) |
<pre>
test if str matches with wild
Definition at line 722 of file rlcutil.cpp.
| char* rlstrncpy | ( | char * | dest, |
| const char * | source, | ||
| int | n | ||
| ) |
strncpy + terminate with '\0'
Definition at line 149 of file rlcutil.cpp.
| int rlSubmitPvserver | ( | const char * | env, |
| const char * | path, | ||
| const char * | pvs, | ||
| const char * | options = NULL |
||
| ) |
<pre>
Submit a pvserver Example: rlSubmitPvserver("HOME","/temp/murx","pvs","-exit_on_bind_error -exit_after_last_client_terminates");
Definition at line 531 of file rlcutil.cpp.
| int rlSwapShort | ( | int | val | ) |
<pre>
swaps bytes
Definition at line 341 of file rlcutil.cpp.
| int rlsystem | ( | const char * | command | ) |
| const char* rlTextOption | ( | const char * | string, |
| const char * | option, | ||
| const char * | _default | ||
| ) |
<pre>
Get option from string
Definition at line 634 of file rlcutil.cpp.
| int rlupper | ( | char * | str | ) |
<pre>
convert str to upper case
Definition at line 691 of file rlcutil.cpp.
| int rlvsnprintf | ( | char * | text, |
| int | len, | ||
| const char * | format, | ||
| va_list | ap | ||
| ) |
like vsnprintf but portable
Definition at line 163 of file rlcutil.cpp.
1.8.2