OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr35492.c] - Blame information for rev 313

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
void prepare_to_wait (void *, void *, int);
2
void finish_wait (void *, void *);
3
extern signed long schedule_timeout (signed long);
4
struct sock
5
{
6
  unsigned char skc_state;
7
  void *sk_sleep;
8
  int sk_err;
9
};
10
 
11
void
12
sk_stream_wait_connect (struct sock *sk, long *timeo_p)
13
{
14
  int done;
15
  int wait;
16
  do
17
    {
18
      if ((1 << sk->skc_state) & ~12)
19
        return;
20
      prepare_to_wait (sk->sk_sleep, &wait, 1);
21
      *(timeo_p) = schedule_timeout (0);
22
      done = !sk->sk_err;
23
      finish_wait (sk->sk_sleep, &wait);
24
    }
25
  while (!done);
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.