00001 /********************************************************************* 00002 * Copyright: 00003 * GSI, Gesellschaft fuer Schwerionenforschung mbH 00004 * Planckstr. 1 00005 * D-64291 Darmstadt 00006 * Germany 00007 * created 15.2.1996, Horst Goeringer 00008 ********************************************************************* 00009 * rawentn.h 00010 * entry definitions for client part of adsmcli client/server package 00011 ********************************************************************* 00012 * 13. 4.1999, H.G.: mod. declaration of rawGetFileAttr 00013 * 31. 5.2001, H.G.: replace urmtopn by rconnect 00014 * 9. 1.2002, H.G.: created from rawent.h 00015 * rawGetLLName: pass object and delimiter as argument 00016 * 13. 2.2003, H.G.: mod arg list rawDelList 00017 * 14. 2.2003, H.G.: mod arg list rawCheckFilelist 00018 * 25.11.2004, H.G.: rawQueryFile: add new arg no. 2 00019 * 7.12.2006, H.G.: mod arg list rawDelList 00020 * 5.11.2008, H.G.: mod arg lists rawRecvError, rawRecvHead, 00021 * rawRecvStatus for (char ** -> char *) 00022 * 11.11.2008, H.G.: rawGetLLName: 'const char' for delimiter 00023 * 18.12.2008, H.G.: rawCheckObjlist: additional argument (int) 00024 * 15. 6.2009, H.G.: rawSortValues: new entry 00025 * 22. 6.2008, H.G.: replace long->int if 64bit client (ifdef SYSTEM64) 00026 * 30.11.2009, H.G.: rawCheckFilelist: add 'char *' (archive name) 00027 * 11. 2.2010, H.G.: rename rawTestFilePath -> rawCheckClientFile 00028 * 22. 2.2010, H.G.: add rawGetPathName 00029 * 26. 2.2010, H.G.: rawQueryString: add parameter (len output string) 00030 * 23. 8.2010, H.G.: remove SYSTEM64 flag: allow "long" in 64 bit OS 00031 ********************************************************************* 00032 */ 00033 00034 #ifdef _AIX 00035 unsigned long ielpst(unsigned long, unsigned long *); 00036 00037 int rawCheckAuth( char *, char *, 00038 char *, char *, int, 00039 char *); 00040 /* check if client authorized for requested action */ 00041 #endif 00042 00043 int rawCheckFilelist( char **, char **, char *, char *); 00044 /* remove objects already archived from file list */ 00045 00046 int rawCheckObjlist(int, int, char **, char **, char **); 00047 /* compress and sort entries in object and file list */ 00048 00049 int rawDelFile( int, srawComm *); 00050 /* delete object in archive */ 00051 00052 int rawDelList( int, int, srawDataMoverAttr *, srawComm *, 00053 char **, char **); 00054 /* delete list of objects in archive */ 00055 00056 int rawGetCmdParms(int , char **, char **); 00057 /* get all cmd parameters via array of char ptrs */ 00058 00059 #ifdef VMS 00060 unsigned long rawGetFileAttr(char *, int **); 00061 /* get file attributes (reclen, size in bytes) */ 00062 00063 int rawGetFilelist( char *, char **); 00064 /* get list of full file names from generic input */ 00065 #else /* Unix */ 00066 00067 int rawGetFileAttr(char *, unsigned long *); 00068 /* get file attributes (size in bytes), return rc */ 00069 00070 int rawGetFilelist( char *, int, char **); 00071 /* get list of full file names from generic input */ 00072 #endif /* Unix */ 00073 00074 int rawGetFileSize( char *, unsigned long *, unsigned int *); 00075 /* get list of full file names from generic input */ 00076 00077 char *rawGetFSName( char *); 00078 /* get file space name from user identification */ 00079 00080 char *rawGetFullFile(char *, char *); 00081 /* get full file name from generic input & ll name */ 00082 00083 char *rawGetHLName( char *); 00084 /* get high level object name from path */ 00085 00086 int rawGetHostConn(); 00087 /* get network connection type of client host */ 00088 00089 int rawGetLLName( char *, const char *, char *); 00090 /* get low level object name from file name */ 00091 00092 char *rawGetPathName( char *); 00093 /* get path name from high level object name */ 00094 00095 char *rawGetUserid(); 00096 /* get user identification */ 00097 00098 int rawQueryFile( int, int, srawComm *, void **); 00099 /* query for single object in archive */ 00100 00101 void rawQueryPrint(srawObjAttr *, int); 00102 /* print query results for one object */ 00103 00104 int rawQueryString(srawObjAttr *, int, int, char *); 00105 /* print query results for one object */ 00106 00107 int rawRecvError( int, int, char *); 00108 /* receive error message */ 00109 00110 int rawRecvHead( int, char *); 00111 /* receive common buffer header */ 00112 00113 int rawRecvHeadC( int, char *, int, int, char *); 00114 /* receive common buffer header and check header values */ 00115 00116 int rawRecvStatus( int, char *); 00117 /* receive common buffer header and error msg */ 00118 00119 int rawSendRequest( int, int, int, int); 00120 /* send request buffer */ 00121 00122 int rawSendStatus( int, int, char *); 00123 /* send status buffer */ 00124 00125 int rawSortValues( int *, int, int, int, int *, int *); 00126 /* sort indexed list of numbers */ 00127 00128 int rawTapeFile( char *, char *, int, int *, unsigned long *); 00129 /* send status buffer */ 00130 00131 int rawTestFileName( char *); 00132 /* verify that specified name is valid */ 00133 00134 int rawCheckClientFile( char *, char **, char **); 00135 /* check client file name, get tape drive name */ 00136 00137 #ifdef VMS 00138 int rawCheckDevice (char *, char **, char **); 00139 /* check device type of specified file */ 00140 00141 int rawGetTapeInfo( char *, char **, sTapeFileList **); 00142 /* get file names, sizes and buffer sizes from tape */ 00143 00144 int rawSyncFilelist( char *, sTapeFileList **, int); 00145 /* synchronize both filelist buffers */ 00146 00147 char *rawVMSName( char *, int); 00148 /* check if valid VMS name; if not change it to valid VMS name */ 00149 00150 #endif 00151 00152 int rconnect( char *, int, int *, int *); 00153 /* open connection to specified server */ 00154