public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: "Hannu E K Nevalainen (garbage mail)" <garbage_collector@telia.com>
Cc: cygwin@cygwin.com
Subject: Re: man 2 setpriority - issues
Date: Tue, 23 Sep 2003 15:32:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.56.0309231123340.25002@slinky.cs.nyu.edu> (raw)
In-Reply-To: <NGBBLLIAMFLGJEOAJCCEOEHDDEAA.garbage_collector@telia.com>

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/

  reply	other threads:[~2003-09-23 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-23 15:20 Hannu E K Nevalainen (garbage mail)
2003-09-23 15:32 ` Igor Pechtchanski [this message]
2003-09-23 15:36   ` Christopher Faylor
2003-09-23 19:54     ` Hannu E K Nevalainen (garbage mail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.56.0309231123340.25002@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=cygwin@cygwin.com \
    --cc=garbage_collector@telia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).