4 #include <sys/utsname.h>
9 #define getpgrp(a,b) not_here("getpgrp")
12 #define nice(a) not_here("nice")
15 #define readlink(a,b,c) not_here("readlink")
18 #define setpgid(a,b) not_here("setpgid")
21 #define setpgrp(a,b) not_here("setpgrp")
24 #define setsid() not_here("setsid")
27 #define symlink(a,b) not_here("symlink")
30 #define tcgetpgrp(a) not_here("tcgetpgrp")
33 #define tcsetpgrp(a,b) not_here("tcsetpgrp")
36 #define times(a) not_here("times")
39 #define uname(a) not_here("uname")
42 #define waitpid(a,b,c) not_here("waitpid")
49 croak("POSIX::%s not implemented on this architecture", s);
53 MODULE = POSIX PACKAGE = POSIX
89 struct stat * buf = (struct stat*)sv_grow(ST(2),sizeof(struct stat));
91 SvCUR(ST(2)) = sizeof(struct stat);
123 readlink(path, buf, bufsiz)
125 char * buf = sv_grow(ST(2), SvIV(ST(3)));
167 tcsetpgrp(fd, pgrp_id)
173 struct tms * tms = (struct tms*)sv_grow(ST(1), sizeof(struct tms));
175 SvCUR(ST(1)) = sizeof(struct tms);
184 struct utsname utsname;
186 if (uname(&utsname) >= 0) {
188 PUSHs(sv_2mortal(newSVpv(utsname.sysname, 0)));
189 PUSHs(sv_2mortal(newSVpv(utsname.nodename, 0)));
190 PUSHs(sv_2mortal(newSVpv(utsname.release, 0)));
191 PUSHs(sv_2mortal(newSVpv(utsname.version, 0)));
192 PUSHs(sv_2mortal(newSVpv(utsname.machine, 0)));
194 return sp - stack_base;
206 waitpid(pid, statusp, options)