aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/exception/version_check_exception.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/exception/version_check_exception.php')
0 files changed, 0 insertions, 0 deletions
pe='search' size='10' name='q' value=''/>
path: root/mdk-stage1/dietlibc/libcruft/getgrent_r.c
blob: 34ec1e9573e74073acbbdc32e6539f6f146308f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#include <grp.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <paths.h>
#include <string.h>
#include "parselib.h"

static struct state __ps;

void setgrent(void) {
  __prepare_parse(_PATH_GROUP,&__ps);
}

void endgrent(void) {
  __end_parse(&__ps);
}

#define GROUPS 16

int getgrent_r(struct group *res, char *buf, size_t buflen,
	       struct group **res_sig) {
  size_t i,j,n,g;
  unsigned long l;
  if (!__ps.buffirst) setgrent();
  if (!__ps.buffirst) goto error;
  if (__ps.cur>=__ps.buflen) goto error;
  res->gr_mem=(char**)buf;
again:
  n=GROUPS*sizeof(char*); g=0;
  for (i=0; i<4; ++i) {
    char sep=i<3?':':',';
    char found;
    j=__parse_1(&__ps,sep);
    if ((found=__ps.buffirst[__ps.cur+j])!=sep) {
      if (found!='\n' || i!=3) {
parseerror:
	while (__ps.cur+j<__ps.buflen) {