2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* libcsupport/src/getrusage.c: Formatting.
This commit is contained in:
Joel Sherrill
2010-07-06 01:15:44 +00:00
parent 96fc191bb8
commit e23cc55a61
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/getrusage.c: Formatting.
2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com> 2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* libcsupport/src/getlogin.c: Formatting. Add EFAULT. * libcsupport/src/getlogin.c: Formatting. Add EFAULT.

View File

@@ -1,5 +1,5 @@
/* /*
* COPYRIGHT (c) 1989-2008. * COPYRIGHT (c) 1989-2010.
* On-Line Applications Research Corporation (OAR). * On-Line Applications Research Corporation (OAR).
* *
* The license and distribution terms for this file may be * The license and distribution terms for this file may be
@@ -43,9 +43,12 @@ int getrusage(int who, struct rusage *usage)
usage->ru_stime = rtime; usage->ru_stime = rtime;
return 0; return 0;
} else if (who == RUSAGE_CHILDREN) { }
if (who == RUSAGE_CHILDREN) {
rtems_set_errno_and_return_minus_one( ENOSYS ); rtems_set_errno_and_return_minus_one( ENOSYS );
} }
rtems_set_errno_and_return_minus_one( EINVAL ); rtems_set_errno_and_return_minus_one( EINVAL );
} }