delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/23/11:36:05

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 23 Sep 2003 11:35:44 -0400
From: Christopher Faylor <cgf-rcm AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: man 2 setpriority - issues
Message-ID: <20030923153544.GA4399@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <NGBBLLIAMFLGJEOAJCCEOEHDDEAA DOT garbage_collector AT telia DOT com> <Pine DOT GSO DOT 4 DOT 56 DOT 0309231123340 DOT 25002 AT slinky DOT cs DOT nyu DOT edu>
Mime-Version: 1.0
In-Reply-To: <Pine.GSO.4.56.0309231123340.25002@slinky.cs.nyu.edu>
User-Agent: Mutt/1.4.1i

On Tue, Sep 23, 2003 at 11:25:50AM -0400, Igor Pechtchanski wrote:
>On Tue, 23 Sep 2003, Hannu E K Nevalainen (garbage mail) wrote:
>> $ man 2 getpriority
>> ...
>> SYNOPSIS
>> ...
>>      int
>>      setpriority(int which, int who, int prio);
>> ...
>>
>> $ man 2 setpriority
>> No entry for setpriority in section 2 of the manual
>>
>> IMO this is very confusing IF you're not aware of it. I spent some time
>> finding out.
>
>FWIW, I don't have manpage for getpriority on my system, and the search of
>Cygwin packages turned out nothing, so I have no idea which package
>contains it.  That being said, the usual solution for this problem is
>"cd /usr/share/man/man2 && ln -s getpriority.2 setpriority.2", which goes
>into the postinstall script for the package (whatever it is).

Right.  cygwin doesn't export a [gs]etpriority, so if some package is
exporting it, that is...  interesting.

Also note:

http://cygwin.com/cgi-bin2/package-grep.cgi?grep=man2%2F

which shows that no package contains a 'man2/' string.  This indicates
that the getpriority man page probably didn't come from a standard
cygwin package.

>>Then; "PRIO_PROCESS" mentioned later in the manpage doesn't seem to be
>>defined anywhere in the include files...
>>
>>$ cd /usr/include/ $ grep PRIO_PROCESS * $
>
>Try "find /usr/include -type f | xargs grep -H PRIO_PROCESS".

If it does find something, it isn't going to be useful.

>>Any pointers on where to find it - or how to bypass this when it gets
>>used in something you wish to build?
>>http://www.cygwin.com/ml/libc-hacker/2002-07/msg00013.html seems to
>>contain a diff on resources.h that adds (removes?) PRIO_PROCESS and
>>friends.  Is this a "correct" change to apply?

I'm not sure why we are talking about IBM S390 (!) changes to glibc
(!!!) in the cygwin mailing list.

In case you don't know it, cygwin.com == sources.redhat.com.
The mailing list archives for the cygwin mailing list are mixed with
the archives for all of the other mailing lists on sources.redhat.com.
See http://sources.redhat.com/lists.html for a list of mailing lists on
sources.redhat.com.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019