diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-14 11:01:48 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-11-20 10:30:21 +0100 |
commit | b471854bc2168792fb628563588d2e85a73b2a4f (patch) | |
tree | 5489aca502e42533e5b9b5cabe31e51ca40865d8 /cpukit/libcsupport/src/pwdgrp.h | |
parent | libcsupport: Add copyrights according to rev hist (diff) | |
download | rtems-b471854bc2168792fb628563588d2e85a73b2a4f.tar.bz2 |
libcsupport: Split passwd/group support
Diffstat (limited to 'cpukit/libcsupport/src/pwdgrp.h')
-rw-r--r-- | cpukit/libcsupport/src/pwdgrp.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/pwdgrp.h b/cpukit/libcsupport/src/pwdgrp.h new file mode 100644 index 0000000000..505a6e58d7 --- /dev/null +++ b/cpukit/libcsupport/src/pwdgrp.h @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2014 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifndef _RTEMS_LIBCSUPPORT_PWDGRP_H +#define _RTEMS_LIBCSUPPORT_PWDGRP_H + +#include <grp.h> +#include <pwd.h> +#include <stdio.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +void _libcsupport_pwdgrp_init(void); + +int _libcsupport_scanpw( + FILE *fp, + struct passwd *pwd, + char *buffer, + size_t bufsize +); + +int _libcsupport_scangr( + FILE *fp, + struct group *grp, + char *buffer, + size_t bufsize +); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _RTEMS_LIBCSUPPORT_PWDGRP_H */ |