DABC (Data Acquisition Backbone Core)  2.9.9
rawentn.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Copyright:
3  * GSI, Gesellschaft fuer Schwerionenforschung mbH
4  * Planckstr. 1
5  * D-64291 Darmstadt
6  * Germany
7  * created 15.2.1996, Horst Goeringer
8  *********************************************************************
9  * rawentn.h
10  * entry definitions for client part of adsmcli client/server package
11  *********************************************************************
12  * 13. 4.1999, H.G.: mod. declaration of rawGetFileAttr
13  * 31. 5.2001, H.G.: replace urmtopn by rconnect
14  * 9. 1.2002, H.G.: created from rawent.h
15  * rawGetLLName: pass object and delimiter as argument
16  * 13. 2.2003, H.G.: mod arg list rawDelList
17  * 14. 2.2003, H.G.: mod arg list rawCheckFileList
18  * 25.11.2004, H.G.: rawQueryFile: add new arg no. 2
19  * 7.12.2006, H.G.: mod arg list rawDelList
20  * 5.11.2008, H.G.: mod arg lists rawRecvError, rawRecvHead,
21  * rawRecvStatus for (char ** -> char *)
22  * 11.11.2008, H.G.: rawGetLLName: 'const char' for delimiter
23  * 18.12.2008, H.G.: rawCheckObjList: additional argument (int)
24  * 15. 6.2009, H.G.: rawSortValues: new entry
25  * 22. 6.2008, H.G.: replace long->int if 64bit client (ifdef SYSTEM64)
26  * 30.11.2009, H.G.: rawCheckFileList: add 'char *' (archive name)
27  * 11. 2.2010, H.G.: rename rawTestFilePath -> rawCheckClientFile
28  * 22. 2.2010, H.G.: add rawGetPathName
29  * 26. 2.2010, H.G.: rawQueryString: add parameter (len output string)
30  * 23. 8.2010, H.G.: remove SYSTEM64 flag: allow "long" in 64 bit OS
31  * 11. 2.2011, H.G.: rename rawCheckObjlist -> rawCheckObjList,
32  * rawCheckObjList: additional int argument
33  * rename rawCheckFilelist -> rawCheckFileList
34  * 28. 7.2011, H.G.: remove rawCheckFileList, rawCheckObjList
35  * (used only in rawCliCmd)
36  * 4.12.2013, H.G.: rawRecvStatus: modify last arg to 'srawStatus *'
37  * 29. 1.2014, H.G.: remove decl rawCheckClientFile, only once used
38  *********************************************************************
39  */
40 
41 #ifdef _AIX
42 unsigned long ielpst(unsigned long, unsigned long *);
43 
44 int rawCheckAuth( char *, char *,
45  char *, char *, int,
46  char *);
47  /* check if client authorized for requested action */
48 #endif
49 
50 int rawDelFile( int, srawComm *);
51  /* delete object in archive */
52 
53 int rawDelList( int, int, srawDataMoverAttr *, srawComm *,
54  char **, char **);
55  /* delete list of objects in archive */
56 
57 int rawGetCmdParms(int , char **, char **);
58  /* get all cmd parameters via array of char ptrs */
59 
60 #ifdef VMS
61 unsigned long rawGetFileAttr(char *, int **);
62  /* get file attributes (reclen, size in bytes) */
63 
64 int rawGetFilelist( char *, char **);
65  /* get list of full file names from generic input */
66 #else /* Unix */
67 
68 int rawGetFileAttr(char *, unsigned long *);
69  /* get file attributes (size in bytes), return rc */
70 
71 int rawGetFilelist( char *, int, char **);
72  /* get list of full file names from generic input */
73 #endif /* Unix */
74 
75 int rawGetFileSize( char *, unsigned long *, unsigned int *);
76  /* get 64 bit file size of file */
77 
78 char *rawGetFSName( char *);
79  /* get file space name from user identification */
80 
81 char *rawGetFullFile(char *, char *);
82  /* get full file name from generic input & ll name */
83 
84 char *rawGetHLName( char *);
85  /* get high level object name from path */
86 
87 int rawGetHostConn();
88  /* get network connection type of client host */
89 
90 int rawGetLLName( char *, const char *, char *);
91  /* get low level object name from file name */
92 
93 char *rawGetPathName( char *);
94  /* get path name from high level object name */
95 
96 char *rawGetUserid();
97  /* get user identification */
98 
99 int rawQueryFile( int, int, srawComm *, void **);
100  /* query for single object in archive */
101 
102 void rawQueryPrint(srawObjAttr *, int);
103  /* print query results for one object */
104 
105 int rawQueryString(srawObjAttr *, int, int, char *);
106  /* print query results for one object */
107 
108 int rawRecvError( int, int, char *);
109  /* receive error message */
110 
111 int rawRecvHead( int, char *);
112  /* receive common buffer header */
113 
114 int rawRecvHeadC( int, char *, int, int, char *);
115  /* receive common buffer header and check header values */
116 
117 int rawRecvStatus( int, srawStatus *);
118  /* receive status header and error msg, if applicable */
119 
120 int rawSendRequest( int, int, int, int);
121  /* send request buffer */
122 
123 int rawSendStatus( int, int, char *);
124  /* send status buffer */
125 
126 int rawSortValues( int *, int, int, int, int *, int *);
127  /* sort indexed list of numbers */
128 
129 int rawTapeFile( char *, char *, int, int *, unsigned long *);
130  /* send status buffer */
131 
132 int rawTestFileName( char *);
133  /* verify that specified name is valid */
134 
135 #ifdef VMS
136 int rawCheckDevice (char *, char **, char **);
137  /* check device type of specified file */
138 
139 int rawGetTapeInfo( char *, char **, sTapeFileList **);
140  /* get file names, sizes and buffer sizes from tape */
141 
142 int rawSyncFilelist( char *, sTapeFileList **, int);
143  /* synchronize both filelist buffers */
144 
145 char *rawVMSName( char *, int);
146  /* check if valid VMS name; if not change it to valid VMS name */
147 
148 #endif
149 
150 int rconnect( char *, int, int *, int *);
151  /* open connection to specified server */
152 
int rawGetFilelist(char *, int, char **)
int rawRecvHeadC(int, char *, int, int, char *)
Definition: rawProcn.c:1964
int rawTestFileName(char *)
Definition: rawProcn.c:2659
int rawGetLLName(char *, const char *, char *)
Definition: rawProcn.c:1107
int rconnect(char *, int, int *, int *)
Definition: rconnect.c:60
int rawDelFile(int, srawComm *)
Definition: rawProcn.c:613
int rawGetHostConn()
Definition: rawProcUn.c:2492
char * rawGetUserid()
Definition: rawProcUn.c:2823
int rawQueryString(srawObjAttr *, int, int, char *)
Definition: rawCliProcn.c:3491
char * rawGetFSName(char *)
int rawRecvStatus(int, srawStatus *)
Definition: rawProcn.c:2373
int rawSortValues(int *, int, int, int, int *, int *)
Definition: rawCliProcn.c:3809
int rawTapeFile(char *, char *, int, int *, unsigned long *)
int rawSendStatus(int, int, char *)
Definition: rawProcn.c:2585
int rawRecvError(int, int, char *)
Definition: rawProcn.c:1748
int rawSendRequest(int, int, int, int)
Definition: rawProcn.c:2515
char * rawGetFullFile(char *, char *)
Definition: rawCliProcn.c:3211
char * rawGetHLName(char *)
Definition: rawProcn.c:1028
int rawRecvHead(int, char *)
Definition: rawProcn.c:1860
int rawDelList(int, int, srawDataMoverAttr *, srawComm *, char **, char **)
Definition: rawProcn.c:724
void rawQueryPrint(srawObjAttr *, int)
Definition: rawCliProcn.c:3309
char * rawGetPathName(char *)
Definition: rawProcn.c:1274
int rawQueryFile(int, int, srawComm *, void **)
Definition: rawProcn.c:1319
int rawGetFileAttr(char *, unsigned long *)
Definition: rawProcUn.c:1890
int rawGetCmdParms(int, char **, char **)
int rawGetFileSize(char *, unsigned long *, unsigned int *)
Definition: rawProcn.c:1158