GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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  *********************************************************************
32  */
33 
34 #ifdef _AIX
35 unsigned long ielpst(unsigned long, unsigned long *);
36 
37 int rawCheckAuth( char *, char *,
38  char *, char *, int,
39  char *);
40  /* check if client authorized for requested action */
41 #endif
42 
43 int rawCheckFilelist( char **, char **, char *, char *);
44  /* remove objects already archived from file list */
45 
46 int rawCheckObjlist(int, int, char **, char **, char **);
47  /* compress and sort entries in object and file list */
48 
49 int rawDelFile( int, srawComm *);
50  /* delete object in archive */
51 
52 int rawDelList( int, int, srawDataMoverAttr *, srawComm *,
53  char **, char **);
54  /* delete list of objects in archive */
55 
56 int rawGetCmdParms(int , char **, char **);
57  /* get all cmd parameters via array of char ptrs */
58 
59 #ifdef VMS
60 unsigned long rawGetFileAttr(char *, int **);
61  /* get file attributes (reclen, size in bytes) */
62 
63 int rawGetFilelist( char *, char **);
64  /* get list of full file names from generic input */
65 #else /* Unix */
66 
67 int rawGetFileAttr(char *, unsigned long *);
68  /* get file attributes (size in bytes), return rc */
69 
70 int rawGetFilelist( char *, int, char **);
71  /* get list of full file names from generic input */
72 #endif /* Unix */
73 
74 int rawGetFileSize( char *, unsigned long *, unsigned int *);
75  /* get list of full file names from generic input */
76 
77 char *rawGetFSName( char *);
78  /* get file space name from user identification */
79 
80 char *rawGetFullFile(char *, char *);
81  /* get full file name from generic input & ll name */
82 
83 char *rawGetHLName( char *);
84  /* get high level object name from path */
85 
86 int rawGetHostConn();
87  /* get network connection type of client host */
88 
89 int rawGetLLName( char *, const char *, char *);
90  /* get low level object name from file name */
91 
92 char *rawGetPathName( char *);
93  /* get path name from high level object name */
94 
95 char *rawGetUserid();
96  /* get user identification */
97 
98 int rawQueryFile( int, int, srawComm *, void **);
99  /* query for single object in archive */
100 
101 void rawQueryPrint(srawObjAttr *, int);
102  /* print query results for one object */
103 
104 int rawQueryString(srawObjAttr *, int, int, char *);
105  /* print query results for one object */
106 
107 int rawRecvError( int, int, char *);
108  /* receive error message */
109 
110 int rawRecvHead( int, char *);
111  /* receive common buffer header */
112 
113 int rawRecvHeadC( int, char *, int, int, char *);
114  /* receive common buffer header and check header values */
115 
116 int rawRecvStatus( int, char *);
117  /* receive common buffer header and error msg */
118 
119 int rawSendRequest( int, int, int, int);
120  /* send request buffer */
121 
122 int rawSendStatus( int, int, char *);
123  /* send status buffer */
124 
125 int rawSortValues( int *, int, int, int, int *, int *);
126  /* sort indexed list of numbers */
127 
128 int rawTapeFile( char *, char *, int, int *, unsigned long *);
129  /* send status buffer */
130 
131 int rawTestFileName( char *);
132  /* verify that specified name is valid */
133 
134 int rawCheckClientFile( char *, char **, char **);
135  /* check client file name, get tape drive name */
136 
137 #ifdef VMS
138 int rawCheckDevice (char *, char **, char **);
139  /* check device type of specified file */
140 
141 int rawGetTapeInfo( char *, char **, sTapeFileList **);
142  /* get file names, sizes and buffer sizes from tape */
143 
144 int rawSyncFilelist( char *, sTapeFileList **, int);
145  /* synchronize both filelist buffers */
146 
147 char *rawVMSName( char *, int);
148  /* check if valid VMS name; if not change it to valid VMS name */
149 
150 #endif
151 
152 int rconnect( char *, int, int *, int *);
153  /* open connection to specified server */
154 
int rawGetHostConn()
Definition: rawProcUn.c:1647
int rawGetLLName(char *, const char *, char *)
Definition: rawProcn.c:735
int rawSendRequest(int, int, int, int)
Definition: rawProcn.c:2042
char * rawGetPathName(char *)
Definition: rawProcn.c:900
int rawCheckClientFile(char *, char **, char **)
Definition: rawProcn.c:344
int rawGetCmdParms(int, char **, char **)
int rawTestFileName(char *)
Definition: rawProcn.c:2187
int rawGetFilelist(char *, int, char **)
int rawSendStatus(int, int, char *)
Definition: rawProcn.c:2112
char * rawGetHLName(char *)
Definition: rawProcn.c:656
int rawQueryFile(int, int, srawComm *, void **)
Definition: rawProcn.c:945
char * rawGetFullFile(char *, char *)
Definition: rawCliProcn.c:3168
int rawDelList(int, int, srawDataMoverAttr *, srawComm *, char **, char **)
Definition: rawCliProcn.c:1715
int rawDelFile(int, srawComm *)
Definition: rawCliProcn.c:1608
int rawQueryString(srawObjAttr *, int, int, char *)
Definition: rawCliProcn.c:3458
int rconnect(char *, int, int *, int *)
Definition: rconnect.c:58
int rawRecvError(int, int, char *)
Definition: rawProcn.c:1285
char * rawGetUserid()
Definition: rawProcUn.c:1827
void rawQueryPrint(srawObjAttr *, int)
Definition: rawCliProcn.c:3266
int rawCheckFilelist(char **, char **, char *, char *)
Definition: rawCliProcn.c:165
int rawCheckObjlist(int, int, char **, char **, char **)
Definition: rawCliProcn.c:410
int rawRecvStatus(int, char *)
Definition: rawProcn.c:1903
int rawTapeFile(char *, char *, int, int *, unsigned long *)
int rawSortValues(int *, int, int, int, int *, int *)
Definition: rawCliProcn.c:3790
int rawRecvHeadC(int, char *, int, int, char *)
Definition: rawProcn.c:1494
int rawGetFileSize(char *, unsigned long *, unsigned int *)
Definition: rawProcn.c:786
int rawGetFileAttr(char *, unsigned long *)
Definition: rawProcUn.c:1045
char * rawGetFSName(char *)
int rawRecvHead(int, char *)
Definition: rawProcn.c:1397