|
rllib
1
|
#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 | rlInputAvailable () |
| 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) |
| char * | rlstrlinecpy (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 | rlEndsWith (const char *str, const char *endstr) |
| int | rlStrMatch (const char *str, const char *wild) |
| int | rlStat (const char *filepath, struct stat *buf) |
| int | rlFRead (FILE *fin, void *data, int len) |
| int | rlFWrite (FILE *fout, void *data, int len) |
| int | rlWriteFile (const char *filename, void *data, int len) |
| int | rlMkdir (const char *dir, int mode=0744) |
| int | rlBitSet (int bitnumber, int *value) |
| int | rlBitClear (int bitnumber, int *value) |
| int | rlBitChange (int bitnumber, int *value) |
| int | rlBitTest (int bitnumber, int *value) |
| void | rlPushToDoubleBuffer (double val, double *buffer, int size) |
| void | rlPushToFloatBuffer (float val, float *buffer, int size) |
| int rlBitChange | ( | int | bitnumber, |
| int * | value | ||
| ) |
XOR bit bitnumber in value Return value
Definition at line 861 of file rlcutil.cpp.
| int rlBitClear | ( | int | bitnumber, |
| int * | value | ||
| ) |
Clear bit bitnumber in value Return value
Definition at line 853 of file rlcutil.cpp.
| int rlBitSet | ( | int | bitnumber, |
| int * | value | ||
| ) |
Set bit bitnumber in value Return value
Definition at line 846 of file rlcutil.cpp.
| int rlBitTest | ( | int | bitnumber, |
| int * | value | ||
| ) |
Test bit bitnumber in value Return 0 | 1
Definition at line 868 of file rlcutil.cpp.
| int rlBrowser | ( | const char * | htmlfile | ) |
| int rlCan1 | ( | int | command | ) |
Definition at line 429 of file rlcutil.cpp.
| int rlCan2 | ( | int | command | ) |
Definition at line 437 of file rlcutil.cpp.
| int rlCopyTextfile | ( | const char * | source, |
| const char * | destination | ||
| ) |
| int rlDebugPrintf | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 61 of file rlcutil.cpp.
| int rlEib1 | ( | int | command | ) |
Send command to a bus system
Definition at line 381 of file rlcutil.cpp.
| int rlEib2 | ( | int | command | ) |
Definition at line 389 of file rlcutil.cpp.
| int rlEndsWith | ( | const char * | str, |
| const char * | endstr | ||
| ) |
test if str ends with endstr
Definition at line 758 of file rlcutil.cpp.
| int rlexec | ( | const char * | command | ) |
| const char* rlFindFile | ( | const char * | pattern, |
| int * | context | ||
| ) |
| float rlFloatOption | ( | const char * | string, |
| const char * | option, | ||
| float | _default | ||
| ) |
Get option from string
Definition at line 655 of file rlcutil.cpp.
| int rlFRead | ( | FILE * | fin, |
| void * | data, | ||
| int | len | ||
| ) |
read data from file return := number of bytes read | -1
Definition at line 809 of file rlcutil.cpp.
| int rlFWrite | ( | FILE * | fout, |
| void * | data, | ||
| int | len | ||
| ) |
write data to file return := number of bytes written | -1
Definition at line 815 of file rlcutil.cpp.
| const char* rlGetInifile | ( | const char * | name | ) |
returns: ~/.name on Linux/Unix sys$login:name on OpenVMS USERPROFILE%\name on Windows
Definition at line 354 of file rlcutil.cpp.
| int rlInputAvailable | ( | ) |
| int rlIntOption | ( | const char * | string, |
| const char * | option, | ||
| int | _default | ||
| ) |
Get option from string
Definition at line 640 of file rlcutil.cpp.
| int rlLastLinePrintf | ( | const char * | format, |
| ... | |||
| ) |
like printf in the last line of a terminal
Definition at line 94 of file rlcutil.cpp.
| int rlLon1 | ( | int | command | ) |
Definition at line 397 of file rlcutil.cpp.
| int rlLon2 | ( | int | command | ) |
Definition at line 405 of file rlcutil.cpp.
| int rllower | ( | char * | str | ) |
convert str to lower case
Definition at line 738 of file rlcutil.cpp.
| int rlMkdir | ( | const char * | dir, |
| int | mode = 0744 |
||
| ) |
same as mkdir
Definition at line 834 of file rlcutil.cpp.
| int rlOption | ( | const char * | string, |
| const char * | option | ||
| ) |
Get option from string return = 0 # not found return = 1 # found
Definition at line 631 of file rlcutil.cpp.
| const char* rlpass | ( | const char * | p | ) |
encode plain text password p
Definition at line 151 of file rlcutil.cpp.
| int rlProfibus1 | ( | int | command | ) |
Definition at line 413 of file rlcutil.cpp.
| int rlProfibus2 | ( | int | command | ) |
Definition at line 421 of file rlcutil.cpp.
| void rlPushToDoubleBuffer | ( | double | val, |
| double * | buffer, | ||
| int | size | ||
| ) |
Push value to front of buffer. Shift all other values.
Definition at line 875 of file rlcutil.cpp.
| void rlPushToFloatBuffer | ( | float | val, |
| float * | buffer, | ||
| int | size | ||
| ) |
Push value to front of buffer. Shift all other values.
Definition at line 882 of file rlcutil.cpp.
| int rlSetDebugPrintf | ( | int | state | ) |
| void rlSetSigtermHandler | ( | void(*)(void *arg) | handler, |
| void * | arg | ||
| ) |
| int rlsnprintf | ( | char * | text, |
| int | len, | ||
| const char * | format, | ||
| ... | |||
| ) |
| int rlStartsWith | ( | const char * | str, |
| const char * | startstr | ||
| ) |
test if str starts with startstr
Definition at line 749 of file rlcutil.cpp.
| int rlStat | ( | const char * | filepath, |
| struct stat * | buf | ||
| ) |
same as stat
Definition at line 804 of file rlcutil.cpp.
| char* rlstrlinecpy | ( | char * | dest, |
| const char * | source, | ||
| int | n | ||
| ) |
strncpy + terminate with '\0' terminates on '\n' or '\0' '\n' is not copied
Definition at line 182 of file rlcutil.cpp.
| int rlStrMatch | ( | const char * | str, |
| const char * | wild | ||
| ) |
| char* rlstrncpy | ( | char * | dest, |
| const char * | source, | ||
| int | n | ||
| ) |
strncpy + terminate with '\0'
Definition at line 169 of file rlcutil.cpp.
| int rlSubmitPvserver | ( | const char * | env, |
| const char * | path, | ||
| const char * | pvs, | ||
| const char * | options = NULL |
||
| ) |
Submit a pvserver
Example:
rlSubmitPvserver("HOME","/temp/murx","pvs","-exit_on_bind_error -exit_after_last_client_terminates");
Definition at line 567 of file rlcutil.cpp.
| int rlSwapShort | ( | int | val | ) |
swaps bytes
Definition at line 375 of file rlcutil.cpp.
| int rlsystem | ( | const char * | command | ) |
| const char* rlTextOption | ( | const char * | string, |
| const char * | option, | ||
| const char * | _default | ||
| ) |
| int rlupper | ( | char * | str | ) |
convert str to upper case
Definition at line 727 of file rlcutil.cpp.
| int rlvsnprintf | ( | char * | text, |
| int | len, | ||
| const char * | format, | ||
| va_list | ap | ||
| ) |
| int rlWriteFile | ( | const char * | filename, |
| void * | data, | ||
| int | len | ||
| ) |
write data to file return := number of bytes written | -1
Definition at line 821 of file rlcutil.cpp.
1.8.14