source: rtems/testsuites/psxtests/psxhdrs/proc07.c @ 38cc8d53

4.115
Last change on this file since 38cc8d53 was a17ec5c, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/17/11 at 10:05:44

2011-10-17 Ralf Corsépius <ralf.corsepius@…>

  • psxhdrs/proc01.c, psxhdrs/proc02.c, psxhdrs/proc03.c, psxhdrs/proc04.c, psxhdrs/proc05.c, psxhdrs/proc06.c, psxhdrs/proc07.c, psxhdrs/proc08.c, psxhdrs/proc09.c, psxhdrs/proc10.c, psxhdrs/proc11.c, psxhdrs/proc12.c, psxhdrs/proc13.c, psxhdrs/proc14.c: Let test() return values (avoid warnings).
  • Property mode set to 100644
File size: 601 bytes
Line 
1/*
2 *  This test file is used to verify that the header files associated with
3 *  invoking this function are correct.
4 *
5 *  COPYRIGHT (c) 1989-2009.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *  $Id$
13 */
14
15#ifdef HAVE_CONFIG_H
16#include "config.h"
17#endif
18
19#include <sys/types.h>
20#include <unistd.h>
21
22int test( void );
23
24int test( void )
25{
26  uid_t uid;
27  int   result;
28
29  uid = 0;
30
31  result = setuid( uid );
32
33  return result;
34}
Note: See TracBrowser for help on using the repository browser.