File: aix-syscall.c

package info (click to toggle)
zlibc 0.9k-4.3
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 624 kB
  • ctags: 461
  • sloc: sh: 3,195; ansic: 3,077; csh: 128; makefile: 60; sed: 4
file content (57 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download | duplicates (7)
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
46
47
48
49
50
51
52
53
54
55
56
57

#include "sysincludes.h"

/* commands with one filename and one "other" argument */
#define ALIAS(name, alias, type) \
int alias(char *filename, type var) \
{ \
	return name(filename, var); \
}

ALIAS(access, zlib_real_access, int)
ALIAS(chmod, zlib_real_chmod, int)

ALIAS(stat, zlib_real_stat, struct stat*)
ALIAS(lstat, zlib_real_lstat, struct stat*)

int utimes();
ALIAS(utimes, zlib_real_utimes, struct timeval *)

#undef ALIAS


/* commands with two filenames */
#define ALIAS(name, alias) \
int alias(const char *filename, const char *filename2) \
{ \
	return name(filename, filename2); \
}

ALIAS(link, zlib_real_link);
ALIAS(symlink, zlib_real_symlink);
ALIAS(rename, zlib_real_rename);

#undef ALIAS



int zlib_real_chown(const char *filename, int o, int g)
{
	return chown(filename, o, g);
}

int open();
int zlib_real_open(const char *pathname, int flags, mode_t mode)
{
	return open(pathname, flags, mode);
}

int zlib_real_unlink(const char *pathname)
{
	return open(pathname);
}

int zlib_real_readlink(const char *path, char *buf, size_t bufsiz)
{
	return readlink(path, buf, bufsiz);
}