File: __xmknod.c

package info (click to toggle)
lsb-appchk3 3.2.2-1.1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 157,336 kB
  • ctags: 17,415
  • sloc: ansic: 528,541; cpp: 5,641; perl: 3,051; makefile: 801; xml: 702; python: 302; sh: 205; awk: 42
file content (32 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (4)
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
// Generated by gen_lib.pl

#include "../../tests/type_tests.h"
#include "../../misc/lsb_output.h"
#include <sys/types.h>
#include <sys/stat.h>
#undef __xmknod
static int(*funcptr) (int , const char * , mode_t , dev_t * ) = 0;

extern int __lsb_check_params;
int __xmknod (int arg0 , const char * arg1 , mode_t arg2 , dev_t * arg3 )
{
	int reset_flag = __lsb_check_params;
	int ret_value  ;
	if(!funcptr)
		funcptr = dlvsym(RTLD_NEXT, "__xmknod", "GLIBC_2.0");
	if(__lsb_check_params)
	{
		__lsb_check_params=0;
		__lsb_output(4, "__xmknod()");
		validate_filedescriptor(  arg0, "__xmknod - arg0");
		validate_Rdaddress( arg1, "__xmknod - arg1");
		validate_NULL_TYPETYPE(  arg1, "__xmknod - arg1");
		validate_filemode(  arg2, "__xmknod - arg2");
		validate_RWaddress( arg3, "__xmknod - arg3");
		validate_RWaddress(  arg3, "__xmknod - arg3");
	}
	ret_value = funcptr(arg0, arg1, arg2, arg3);
	__lsb_check_params = reset_flag;
	return ret_value;
}