diff options
Diffstat (limited to 'ports/uids_generic/guts/getgrent.c')
-rw-r--r-- | ports/uids_generic/guts/getgrent.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ports/uids_generic/guts/getgrent.c b/ports/uids_generic/guts/getgrent.c new file mode 100644 index 0000000..e8e07f5 --- /dev/null +++ b/ports/uids_generic/guts/getgrent.c @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2010 Wind River Systems; see + * guts/COPYRIGHT for information. + * + * static struct group * + * wrap_getgrent(void) { + * struct group * rc = NULL; + */ + static struct group grp; + static char grbuf[PSEUDO_PWD_MAX]; + int r_rc; + + r_rc = wrap_getgrent_r(&grp, grbuf, PSEUDO_PWD_MAX, &rc); + /* different error return conventions */ + if (r_rc != 0) { + errno = r_rc; + } + +/* return rc; + * } + */ |