File: dummysyscalls.c

package info (click to toggle)
glimpse 4.1-2
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 2,344 kB
  • ctags: 2,254
  • sloc: ansic: 32,194; makefile: 561; sh: 170; perl: 142
file content (45 lines) | stat: -rw-r--r-- 578 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45

/* These functions have been added here so that agrep/cast binaries will work independent of glimpse */

int
my_open(name, flags, mode)
	char	*name;
	int	flags, mode;
{
	return open(name, flags, mode);
}

FILE *
my_fopen(name, flags)
	char	*name;
	char	*flags;
{
	return fopen(name, flags);
}

int
my_lstat(name, buf)
	char	*name;
	struct stat *buf;
{
	return lstat(name, buf);
}

int
my_stat(name, buf)
	char	*name;
	struct stat *buf;
{
	return stat(name, buf);
}

int
special_get_name(name, len, temp)
	char	*name;
	int	len;
	char	*temp;
{
	strcpy(temp, name);
	return 0;
}