xrootd
XrdFrcUtils.hh
Go to the documentation of this file.
1 #ifndef __FRCUTILS__HH
2 #define __FRCUTILS__HH
3 /******************************************************************************/
4 /* */
5 /* X r d F r c U t i l s . h h */
6 /* */
7 /* (c) 2009 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 #include <stdlib.h>
14 #include <time.h>
15 
16 #include "XrdFrc/XrdFrcRequest.hh"
17 
18 class XrdFrcXAttrPin;
19 
21 {
22 public:
23 
24 static char Ask(char dflt, const char *Msg1, const char *Msg2="",
25  const char *Msg3="");
26 
27 static int chkURL(const char *Url);
28 
29 static char *makePath(const char *iName, const char *Path, int Mode);
30 
31 static char *makeQDir(const char *Path, int Mode);
32 
33 static int MapM2O(const char *Nop, const char *Pop);
34 
35 static int MapR2Q(char Opc, int *Flags=0);
36 
37 static int MapV2I(const char *Opc, XrdFrcRequest::Item &ICode);
38 
39 static int Unique(const char *lkfn, const char *myProg);
40 
41 static int updtCpy(const char *Pfn, int Adj);
42 
43 static int Utime(const char *Path, time_t tVal);
44 
47 private:
48 };
49 #endif