develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [PATCH++] all about the recent standard conforming glibc's nic

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
April 27, 2003 14:26
Subject:
Re: [PATCH++] all about the recent standard conforming glibc's nic
Message ID:
20030427233054.2b788ea8.rgarciasuarez@free.fr
Enache Adrian wrote:
> --- /arc/bleadperl/ext/POSIX/POSIX.xs	2002-12-18 05:20:13.000000000 +0200
> +++ perl/ext/POSIX/POSIX.xs	2003-04-23 22:32:19.000000000 +0300

Thanks, applied as #19356.

> @@ -1386,9 +1386,17 @@
>      OUTPUT:
>  	RETVAL
>  
> -SysRet
> +SV *
>  nice(incr)
>  	int		incr
> +    PPCODE:
> +	errno = 0;
> +	if ((incr = nice(incr)) != -1 || errno == 0) {
> +	    if (incr == 0)
> +		XPUSHs(sv_2mortal(newSVpvn("0 but true", 10)));
> +	    else
> +		XPUSHs(sv_2mortal(newSViv(incr)));
> +	}
>  
>  void
>  pipe()
> 

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About