Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1396577

Re: [PATCH] Use pid_t instead of int

From René Nyffenegger <mail@renenyffenegger.ch>
Newsgroups linux.kernel
Subject Re: [PATCH] Use pid_t instead of int
Date 2016-05-09 06:20 +0200
Message-ID <rwKPM-4Mr-9@gated-at.bofh.it> (permalink)
References <rwCIx-4sw-9@gated-at.bofh.it> <rwIbf-1FR-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Somewhere else, pid_t is a typedef for an int.

Rene

On 09.05.2016 03:25, Andy Lutomirski wrote:
> On Sun, May 8, 2016 at 12:38 PM, René Nyffenegger
> <mail@renenyffenegger.ch> wrote:
>> Use pid_t instead of int in the declarations of sys_kill, sys_tgkill,
>> sys_tkill and sys_rt_sigqueueinfo in include/linux/syscalls.h
> 
> The description is no good.  *Why* are you changing it?
> 
> I checked tgkill and, indeed, tgkill takes pid_t parameters, so this
> fixes an incorrect declaration.  I'm wondering why the code compiles
> without warning.  Is SYSCALL_DEFINE too lenient for some reason?  Or
> is pid_t just defined as int.
> 
> --Andy
> 

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Use pid_t instead of int René Nyffenegger <mail@renenyffenegger.ch> - 2016-05-08 21:40 +0200
  Re: [PATCH] Use pid_t instead of int Andy Lutomirski <luto@amacapital.net> - 2016-05-09 03:30 +0200
    Re: [PATCH] Use pid_t instead of int René Nyffenegger <mail@renenyffenegger.ch> - 2016-05-09 06:20 +0200
    Re: [PATCH] Use pid_t instead of int René Nyffenegger <mail@renenyffenegger.ch> - 2016-05-09 08:40 +0200

csiph-web