source:
rtems/testsuites/libtests/POSIX/getpwuid.c
@
60d47ab
Last change on this file since 60d47ab was 60d47ab, checked in by Ralf Corsepius <ralf.corsepius@…>, on 12/02/09 at 15:00:05 | |
---|---|
|
|
File size: 351 bytes |
Line | |
---|---|
1 | /* |
2 | * Copyright (c) 2009 by |
3 | * Ralf Corsépius, Ulm, Germany. All rights reserved. |
4 | * |
5 | * Permission to use, copy, modify, and distribute this software |
6 | * is freely granted, provided that this notice is preserved. |
7 | */ |
8 | |
9 | #include <sys/types.h> |
10 | #include <pwd.h> |
11 | |
12 | int |
13 | main (void) |
14 | { |
15 | struct passwd *pass; |
16 | pass = getpwnam (0); |
17 | |
18 | return (pass != NULL); |
19 | } |
Note: See TracBrowser
for help on using the repository browser.