From a75a383cd9e9ecf46af135884668ba939f29cb49 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 30 Jun 2005 07:29:17 +0000 Subject: (strftime) add it thus avoiding to load bloaty POSIX in net_applet --- perl-install/c/stuff.xs.pl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/perl-install/c/stuff.xs.pl b/perl-install/c/stuff.xs.pl index 77d5f586f..977894a57 100644 --- a/perl-install/c/stuff.xs.pl +++ b/perl-install/c/stuff.xs.pl @@ -601,6 +601,28 @@ get_hw_address(const char* ifname) RETVAL +void +strftime(fmt, sec, min, hour, mday, mon, year, wday = -1, yday = -1, isdst = -1) + char * fmt + int sec + int min + int hour + int mday + int mon + int year + int wday + int yday + int isdst + CODE: + { + char *buf = my_strftime(fmt, sec, min, hour, mday, mon, year, wday, yday, isdst); + if (buf) { + ST(0) = sv_2mortal(newSVpv(buf, 0)); + Safefree(buf); + } + } + + char * kernel_version() -- cgit v1.2.1