summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/types.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-07 15:21:27 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-07 15:21:27 +0000
commit05ce4e097aeab6292b59a0d3b792cb403eeb6e03 (patch)
tree2f37ce9a4edec10f176cdee1f42c5edc5e8257ec /c/src/exec/posix/src/types.c
parentfa03f083a38ef202e9bb461c0b1a933210823116 (diff)
downloadrtems-05ce4e097aeab6292b59a0d3b792cb403eeb6e03.tar.bz2
changed code which set errno and then returned -1 to use the macro
set_errno_and_return_minus_one.
Diffstat (limited to 'c/src/exec/posix/src/types.c')
-rw-r--r--c/src/exec/posix/src/types.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/exec/posix/src/types.c b/c/src/exec/posix/src/types.c
index 17c83c4641..6bea1127b6 100644
--- a/c/src/exec/posix/src/types.c
+++ b/c/src/exec/posix/src/types.c
@@ -9,6 +9,7 @@
#include <rtems/system.h>
#include <rtems/score/object.h>
+#include <rtems/posix/seterr.h>
pid_t _POSIX_types_Ppid = 0;
uid_t _POSIX_types_Uid = 0;
@@ -175,8 +176,7 @@ pid_t getpgrp( void )
pid_t setsid( void )
{
- errno = ENOSYS;
- return -1;
+ set_errno_and_return_minus_one( ENOSYS );
}
/*PAGE
@@ -189,8 +189,7 @@ int setpgid(
pid_t pgid
)
{
- errno = ENOSYS;
- return -1;
+ set_errno_and_return_minus_one( ENOSYS );
}
/*