*/
  public boolean [] booleanv (int pname) {
    boolean [] v;
    RequestOutputStream o = display.out;
    synchronized (o) {
      o.begin_request (glx.major_opcode, 112, 3);
      o.write_int32 (tag);
      o.write_int32 (pname);
      ResponseInputStream i = display.in;
      synchronized (i) {
        i.read_reply (o);
        i.skip (12);
        int n = i.read_int32 ();
        if (n == 1) {
          v = new boolean [1];
          v [0] = i.read_bool ();
          i.skip (15);
        } else {
          i.skip (16);
          v = new boolean [n];
          for (int j = 0; j < n; j++) {
            v [j] = i.read_bool ();
          }
          i.skip (RequestOutputStream.pad (n));
        }
      }
    }
    return v;
  }