setpgrp() returns a pid_t, not an int.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20008 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-01-29 13:31:24 +00:00
parent af0e9c1cb8
commit 1beeb96080
2 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2004-2006, Haiku Inc. All Rights Reserved. * Copyright 2004-2007, Haiku Inc. All Rights Reserved.
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
#ifndef _UNISTD_H_ #ifndef _UNISTD_H_
@@ -145,7 +145,7 @@ extern pid_t getpgid(pid_t pid);
extern pid_t setsid(void); extern pid_t setsid(void);
extern int setpgid(pid_t pid, pid_t pgid); extern int setpgid(pid_t pid, pid_t pgid);
extern int setpgrp(void); extern pid_t setpgrp(void);
/* access permissions */ /* access permissions */
extern gid_t getegid(void); extern gid_t getegid(void);
+5 -5
View File
@@ -1,7 +1,7 @@
/* /*
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved. * Copyright 2002-2007, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the Haiku License. * Distributed under the terms of the MIT License.
*/ */
#include <syscalls.h> #include <syscalls.h>
@@ -73,7 +73,7 @@ setpgid(pid_t process, pid_t group)
} }
int pid_t
setpgrp(void) setpgrp(void)
{ {
return setpgid(0, 0); return setpgid(0, 0);