summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/types.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 );
}
/*