public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* man 2 setpriority - issues
@ 2003-09-23 15:20 Hannu E K Nevalainen (garbage mail)
  2003-09-23 15:32 ` Igor Pechtchanski
  0 siblings, 1 reply; 4+ messages in thread
From: Hannu E K Nevalainen (garbage mail) @ 2003-09-23 15:20 UTC (permalink / raw)
  To: ML CygWIN

$ 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.

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 *
$

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?

Is there any Windows-"ism" affecting this on cygwin?

/Hannu E K Nevalainen, B.Sc. EE - 59°16.37'N, 17°12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: man 2 setpriority - issues
  2003-09-23 15:20 man 2 setpriority - issues Hannu E K Nevalainen (garbage mail)
@ 2003-09-23 15:32 ` Igor Pechtchanski
  2003-09-23 15:36   ` Christopher Faylor
  0 siblings, 1 reply; 4+ messages in thread
From: Igor Pechtchanski @ 2003-09-23 15:32 UTC (permalink / raw)
  To: Hannu E K Nevalainen (garbage mail); +Cc: cygwin

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).

> 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".

> 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?
>
> Is there any Windows-"ism" affecting this on cygwin?
>
> /Hannu E K Nevalainen, B.Sc. EE

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: man 2 setpriority - issues
  2003-09-23 15:32 ` Igor Pechtchanski
@ 2003-09-23 15:36   ` Christopher Faylor
  2003-09-23 19:54     ` Hannu E K Nevalainen (garbage mail)
  0 siblings, 1 reply; 4+ messages in thread
From: Christopher Faylor @ 2003-09-23 15:36 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: man 2 setpriority - issues
  2003-09-23 15:36   ` Christopher Faylor
@ 2003-09-23 19:54     ` Hannu E K Nevalainen (garbage mail)
  0 siblings, 0 replies; 4+ messages in thread
From: Hannu E K Nevalainen (garbage mail) @ 2003-09-23 19:54 UTC (permalink / raw)
  To: cygwin

> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Christopher Faylor

> 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.


You're both fully correct; I have fooled myself once again:

$ echo $MANPATH
/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man
:/cygdrive/e/Amiga/GG/man

$ man -W 2 getpriority
/cygdrive/e/Amiga/GG/man/man2/getpriority.2

This is manpages that comes with an old version of "geekgadgets"
(www.geekgadgets.org) - a project that reflects cygwin, but on/for AmigaOS.

Conclusion: Remember the above, or remove that last MANPATH-item. ,:-I



> >>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.

$ find /usr/include -type f | xargs grep -H PRIO_PROCESS
$
i.e. nothing...

> >>Any pointers on where to find it - or how to bypass this when it gets
> >>used in something you wish to build?

Neither of you commented on this - which, for me, is a greater concern. I'm
not going to say that it is _important_, but I'd like to read some words
about it.
 e.g: Is this a "low priority" thing, doesn't Win have something that allows
an easy implementation, or...

 Googling on [gs]etpriority turns upp hits in glibc-hacker only. Nothing
cygwin related.

> >>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.

 Well, I obviously had my eyes more on the fact that there was a patch
removing/inserting PRIO_PROCESS into resources.h - not really checking WHERE
the google hits came from (as I had typed "site:cygwin.com" I didn't expect
deviations from that).
 Now I realize that both hits I got was rather irrelevant.

> 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.

I'm taking "notes" :-) - thanks!

 Is there words about using google on "site:cygwin.com" in the FAQ or some
such? This note might need to be added there... (or a modified version).

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- UTC+01, DST -> UTC+02  --
--END OF MESSAGE--


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-09-23 19:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 15:20 man 2 setpriority - issues Hannu E K Nevalainen (garbage mail)
2003-09-23 15:32 ` Igor Pechtchanski
2003-09-23 15:36   ` Christopher Faylor
2003-09-23 19:54     ` Hannu E K Nevalainen (garbage mail)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).