2
Copyright (C) 2008- The University of Notre Dame
3
This software is distributed under the GNU General Public License.
4
See the file COPYING for details.
7
#include "tracer.table.h"
8
#include "tracer.table64.h"
14
int parrot_whoami( const char *path, char *buf, int size )
16
#ifdef CCTOOLS_CPU_I386
17
return syscall(SYSCALL32_parrot_whoami,path,buf,size);
19
return syscall(SYSCALL64_parrot_whoami,path,buf,size);
23
int parrot_locate( const char *path, char *buf, int size )
25
#ifdef CCTOOLS_CPU_I386
26
return syscall(SYSCALL32_parrot_locate,path,buf,size);
28
return syscall(SYSCALL64_parrot_locate,path,buf,size);
32
int parrot_getacl( const char *path, char *buf, int size )
34
#ifdef CCTOOLS_CPU_I386
35
return syscall(SYSCALL32_parrot_getacl,path,buf,size);
37
return syscall(SYSCALL64_parrot_getacl,path,buf,size);
41
int parrot_setacl( const char *path, const char *subject, const char *rights )
43
#ifdef CCTOOLS_CPU_I386
44
return syscall(SYSCALL32_parrot_setacl,path,subject,rights);
46
return syscall(SYSCALL64_parrot_setacl,path,subject,rights);
50
int parrot_md5( const char *filename, unsigned char *digest )
52
#ifdef CCTOOLS_CPU_I386
53
return syscall(SYSCALL32_parrot_md5,filename,digest);
55
return syscall(SYSCALL64_parrot_md5,filename,digest);
59
int parrot_cp( const char *source, const char *dest )
61
#ifdef CCTOOLS_CPU_I386
62
return syscall(SYSCALL32_parrot_copyfile,source,dest);
64
return syscall(SYSCALL64_parrot_copyfile,source,dest);
68
int parrot_mkalloc( const char *path, INT64_T size, mode_t mode )
70
#ifdef CCTOOLS_CPU_I386
71
return syscall(SYSCALL32_parrot_mkalloc,path,&size,mode);
73
return syscall(SYSCALL64_parrot_mkalloc,path,&size,mode);
77
int parrot_lsalloc( const char *path, char *alloc_path, INT64_T *total, INT64_T *inuse )
79
#ifdef CCTOOLS_CPU_I386
80
return syscall(SYSCALL32_parrot_lsalloc,path,alloc_path,total,inuse);
82
return syscall(SYSCALL64_parrot_lsalloc,path,alloc_path,total,inuse);
86
int parrot_timeout( const char *time )
88
#ifdef CCTOOLS_CPU_I386
89
return syscall(SYSCALL32_parrot_timeout,time);
91
return syscall(SYSCALL64_parrot_timeout,time);