> Hello all :) > basically I have a doubt, can I use the ' C' function defined either in an > header file or .c file in perl implementation > here is the source file : > http://cvs.opensolaris.org/source/xref/usr/src/cmd/svc/startd/utmpx.c > I want to implement the utmpx_write_boottime() call purely in a perl > implementation. > and morever I main requirement is that how can I get to know whether the > wtmpx logging is not working on the server ? and what would be the proper > fix for it ?
Perl has a mechanism (called XS) which allows you to write "glue code" that translatates C functions to a form that Perl understands. Try perldoc perlxstut and perldoc perlxs - this is a good starting point. There are plenty of examples around. - Alexander Kolbasov _______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
