diff options
author | James FitzGibbon <jfitz@FreeBSD.org> | 1996-10-23 23:56:55 +0000 |
---|---|---|
committer | James FitzGibbon <jfitz@FreeBSD.org> | 1996-10-23 23:56:55 +0000 |
commit | c8e1f85b25b4239f7b0e6312c62c6e9557517ba4 (patch) | |
tree | b2d05c58888121d8cc38fcfeebeedfaf76a8d3fb /devel/p5-BSD-Resource | |
parent | a4fb514e86aa51fffdd163938afabb89ee74e804 (diff) | |
download | ports-c8e1f85b25b4239f7b0e6312c62c6e9557517ba4.tar.gz ports-c8e1f85b25b4239f7b0e6312c62c6e9557517ba4.zip |
Notes
Diffstat (limited to 'devel/p5-BSD-Resource')
-rw-r--r-- | devel/p5-BSD-Resource/Makefile | 33 | ||||
-rw-r--r-- | devel/p5-BSD-Resource/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-BSD-Resource/pkg-comment | 1 | ||||
-rw-r--r-- | devel/p5-BSD-Resource/pkg-descr | 79 | ||||
-rw-r--r-- | devel/p5-BSD-Resource/pkg-plist | 6 |
5 files changed, 120 insertions, 0 deletions
diff --git a/devel/p5-BSD-Resource/Makefile b/devel/p5-BSD-Resource/Makefile new file mode 100644 index 000000000000..509be575378e --- /dev/null +++ b/devel/p5-BSD-Resource/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: p5-BSD-Resource +# Version required: 1.03 +# Date created: October 20th 1996 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= BSD-Resource-1.03 +PKGNAME= p5-BSD-Resource-1.03 +CATEGORIES+= devel +MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/BSD/ \ + ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/BSD/ \ + ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/BSD/ \ + ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/BSD/ \ + ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/BSD/ \ + ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/BSD/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL + +post-install: +.if !defined(NOMANCOMPRESS) + @ for file in BSD::Resource; do \ + gzip -9nf ${PREFIX}/lib/perl5/man/man3/$$file.3; \ + done +.endif + +.include <bsd.port.mk> diff --git a/devel/p5-BSD-Resource/distinfo b/devel/p5-BSD-Resource/distinfo new file mode 100644 index 000000000000..06dd87cb38ca --- /dev/null +++ b/devel/p5-BSD-Resource/distinfo @@ -0,0 +1 @@ +MD5 (BSD-Resource-1.03.tar.gz) = c08da7daef5d72af42bd947b72545c61 diff --git a/devel/p5-BSD-Resource/pkg-comment b/devel/p5-BSD-Resource/pkg-comment new file mode 100644 index 000000000000..4ad7e188aad1 --- /dev/null +++ b/devel/p5-BSD-Resource/pkg-comment @@ -0,0 +1 @@ +perl5 module to access BSD process resource limit and priority functions. diff --git a/devel/p5-BSD-Resource/pkg-descr b/devel/p5-BSD-Resource/pkg-descr new file mode 100644 index 000000000000..5c23f43e38ad --- /dev/null +++ b/devel/p5-BSD-Resource/pkg-descr @@ -0,0 +1,79 @@ + getrusage + + For a detailed description about the values returned by + getrusage() please consult your usual C programming + documentation about getrusage() and also the header file + sys/resource.h. The $ru_who argument is either + RUSAGE_SELF (the current process) or RUSAGE_CHILDREN (all + the child processes of the current process). On some + (very few) systems (those supporting both getrusage() and + the POSIX threads) there is also RUSAGE_THREAD. The + BSD::Resource supports the _THREAD flag if it is present + but understands nothing about the POSIX threads + themselves. + + Note 1: officially HP-UX 9 does not support getrusage() at + all but for the time being, it does seem to. + + Note 2: Solaris claims in sys/rusage.h that the ixrss and + the isrss fields are always zero. + + getrlimit + + Processes have soft and hard resource limits. At soft + limit they receive a signal (XCPU or XFSZ, normally) they + can trap and handle and at hard limit they will be + ruthlessly killed by the KILL signal. The $resource + argument can be one of + + RLIMIT_CPU RLIMIT_FSIZE + RLIMIT_DATA RLIMIT_STACK RLIMIT_CORE RLIMIT_RSS + RLIMIT_NOFILE RLIMIT_OPEN_MAX + RLIMIT_AS RLIMIT_VMEM + + The last two pairs (NO_FILE, OPEN_MAX) and (AS, VMEM) mean + the same, the former being the BSD names and the latter + SVR4 names. Two meta-resource-symbols might exist + + RLIM_NLIMITS + RLIM_INFINITY + + NLIMITS being the number of possible (but not necessarily + fully supported) resource limits, INFINITY being useful in + setrlimit(). + + NOTE: the level of 'support' for a resource varies. Not + all the systems + + a) even recognise all those limits + b) really track the consumption of a resource + c) care (send those signals) if a resource limit get exceeded + + Again, please consult your usual C programming + documentation. + + One notable exception: officially HP-UX 9 does not support + getrlimit() at all but for the time being, it does seem + to. + + getpriority + + The priorities returned by getpriority() are + [PRIO_MIN,PRIO_MAX]. The $which argument can be any of + PRIO_PROCESS (a process) PRIO_USER (a user), or PRIO_PGRP + (a process group). The $pr_who argument tells which + process/user/process group, 0 signifying the current one. + + setrlimit + + A normal user process can only lower its resource limits. + Soft or hard limit RLIM_INFINITY means as much as + possible, the real limits are normally buried inside the + kernel. + + setpriority + + The priorities handled by setpriority() are + [PRIO_MIN,PRIO_MAX]. A normal user process can only lower + its priority (make it more positive). + diff --git a/devel/p5-BSD-Resource/pkg-plist b/devel/p5-BSD-Resource/pkg-plist new file mode 100644 index 000000000000..26884c6e01dd --- /dev/null +++ b/devel/p5-BSD-Resource/pkg-plist @@ -0,0 +1,6 @@ +lib/perl5/man/man3/BSD::Resource.3.gz +lib/perl5/site_perl/BSD/Resource.pm +lib/perl5/site_perl/i386-freebsd/auto/BSD/Resource/Resource.bs +lib/perl5/site_perl/i386-freebsd/auto/BSD/Resource/Resource.so +lib/perl5/site_perl/i386-freebsd/auto/BSD/Resource/.packlist +@dirrm lib/perl5/site_perl/i386-freebsd/auto/BSD/Resource |