class SysVIPC::Msqid_ds

Public Class Methods

new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_msqid_ds(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (struct msqid_ds *)calloc(1, sizeof(struct msqid_ds));
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}

Public Instance Methods

msg_ctime(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_ctime_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  time_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_ctime", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (time_t) ((arg1)->msg_ctime);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}
msg_ctime=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_ctime_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  time_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_ctime", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  {
    if (NIL_P(argv[0]))
    arg2 = (time_t)-1;
    else
    arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
  }
  if (arg1) (arg1)->msg_ctime = arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_lrpid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_lrpid_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pid_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_lrpid", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (pid_t) ((arg1)->msg_lrpid);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
msg_lrpid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_lrpid_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  pid_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_lrpid", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pid_t","msg_lrpid", 2, argv[0] ));
  } 
  arg2 = (pid_t)(val2);
  if (arg1) (arg1)->msg_lrpid = arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_lspid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_lspid_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  pid_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_lspid", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (pid_t) ((arg1)->msg_lspid);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
msg_lspid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_lspid_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  pid_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_lspid", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pid_t","msg_lspid", 2, argv[0] ));
  } 
  arg2 = (pid_t)(val2);
  if (arg1) (arg1)->msg_lspid = arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_perm(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_perm_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  struct ipc_perm *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_perm", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (struct ipc_perm *)& ((arg1)->msg_perm);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ipc_perm, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
msg_perm=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_perm_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  struct ipc_perm *arg2 = (struct ipc_perm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_perm", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "struct ipc_perm *","msg_perm", 2, argv[0] )); 
  }
  arg2 = (struct ipc_perm *)(argp2);
  if (arg1) (arg1)->msg_perm = *arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_qbytes(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_qbytes_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  msglen_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_qbytes", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (msglen_t) ((arg1)->msg_qbytes);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
msg_qbytes=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_qbytes_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  msglen_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_qbytes", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "msglen_t","msg_qbytes", 2, argv[0] ));
  } 
  arg2 = (msglen_t)(val2);
  if (arg1) (arg1)->msg_qbytes = arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_qnum(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_qnum_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  msgqnum_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_qnum", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (msgqnum_t) ((arg1)->msg_qnum);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
msg_qnum=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_qnum_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  msgqnum_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_qnum", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "msgqnum_t","msg_qnum", 2, argv[0] ));
  } 
  arg2 = (msgqnum_t)(val2);
  if (arg1) (arg1)->msg_qnum = arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_rtime(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_rtime_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  time_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_rtime", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (time_t) ((arg1)->msg_rtime);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}
msg_rtime=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_rtime_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  time_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_rtime", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  {
    if (NIL_P(argv[0]))
    arg2 = (time_t)-1;
    else
    arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
  }
  if (arg1) (arg1)->msg_rtime = arg2;
  return Qnil;
fail:
  return Qnil;
}
msg_stime(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_stime_get(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  time_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_stime", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  result = (time_t) ((arg1)->msg_stime);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}
msg_stime=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_msqid_ds_msg_stime_set(int argc, VALUE *argv, VALUE self) {
  struct msqid_ds *arg1 = (struct msqid_ds *) 0 ;
  time_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_msqid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct msqid_ds *","msg_stime", 1, self )); 
  }
  arg1 = (struct msqid_ds *)(argp1);
  {
    if (NIL_P(argv[0]))
    arg2 = (time_t)-1;
    else
    arg2 = NUM2LONG(rb_funcall(argv[0], rb_intern("tv_sec"), 0));
  }
  if (arg1) (arg1)->msg_stime = arg2;
  return Qnil;
fail:
  return Qnil;
}