|
|
|
|
|
|
/** $PID |
|
/** $UID |
/** $EUID |
|
/** $GID |
|
/** UMASK |
|
/** $HOME |
/** $USER |
/** $CWD |
/** PWD |
|
static char * p4_word_comma (char del) { char *p = p4_word (del); DP += *p + 1; FX (p4_align); return p; } |
static void do_one (char *p, int (*syscall) (const char *)) { char* name = p4_pocket_filename (p + 1, (p4char)*p); if (syscall (name)) p4_throws (FX_IOR, name, 0); } |
|
static void do_two (char *p1, char *p2, int (*syscall) (const char *, const char *)) { char* nm1 = p4_pocket_filename (p1 + 1, *(p4char*)p1); char* nm2 = p4_pocket_filename (p2 + 1, *(p4char*)p2); if (syscall (nm1, nm2)) p4_throws (FX_IOR, nm1, 0); } |
|
|
|
|
|
static int md (const char *s) { |
static int touch (const char *s) { int result; |
static int cp (const char *src, const char *dst) { return fn_copy (src, dst, LONG_MAX) == -1; } |
|
static int
ls (const char *p)
{
FX (p4_cr);
return p4_systemf (PFE_LSCMD |
static int
ll (const char *p)
{
FX (p4_cr);
return p4_systemf (PFE_LLCMD |
|
static int ls (const char* p) { DIR* dir; struct dirent* dirent; FX (p4_cr); |
static int ll (const char* p) { DIR* dir; struct dirent* dirent; struct stat st; struct tm tm; char buf[255]; FX (p4_cr); FX (p4_start_Q_cr); |
|
static int
mv (const char *p1, const char* p2)
{
FX (p4_cr);
return p4_systemf ( |
|
|
|
|