class SysVIPC::Shmid_ds

Public Class Methods

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

Public Instance Methods

shm_atime(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_atime_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_atime", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (time_t) ((arg1)->shm_atime);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}
shm_atime=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_atime_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_atime", 1, self )); 
  }
  arg1 = (struct shmid_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)->shm_atime = arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_cpid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_cpid_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_cpid", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (pid_t) ((arg1)->shm_cpid);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
shm_cpid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_cpid_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_cpid", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pid_t","shm_cpid", 2, argv[0] ));
  } 
  arg2 = (pid_t)(val2);
  if (arg1) (arg1)->shm_cpid = arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_ctime(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_ctime_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_ctime", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (time_t) ((arg1)->shm_ctime);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}
shm_ctime=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_ctime_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_ctime", 1, self )); 
  }
  arg1 = (struct shmid_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)->shm_ctime = arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_dtime(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_dtime_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_dtime", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (time_t) ((arg1)->shm_dtime);
  {
    vresult = rb_time_new(result, 0);
  }
  return vresult;
fail:
  return Qnil;
}
shm_dtime=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_dtime_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_dtime", 1, self )); 
  }
  arg1 = (struct shmid_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)->shm_dtime = arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_lpid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_lpid_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_lpid", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (pid_t) ((arg1)->shm_lpid);
  vresult = SWIG_From_int((int)(result));
  return vresult;
fail:
  return Qnil;
}
shm_lpid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_lpid_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_lpid", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "pid_t","shm_lpid", 2, argv[0] ));
  } 
  arg2 = (pid_t)(val2);
  if (arg1) (arg1)->shm_lpid = arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_nattch(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_nattch_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  shmatt_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_nattch", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (shmatt_t) ((arg1)->shm_nattch);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
shm_nattch=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_nattch_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_ds *) 0 ;
  shmatt_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_nattch", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "shmatt_t","shm_nattch", 2, argv[0] ));
  } 
  arg2 = (shmatt_t)(val2);
  if (arg1) (arg1)->shm_nattch = arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_perm(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_perm_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_perm", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (struct ipc_perm *)& ((arg1)->shm_perm);
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_ipc_perm, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
shm_perm=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_perm_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_perm", 1, self )); 
  }
  arg1 = (struct shmid_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 *","shm_perm", 2, argv[0] )); 
  }
  arg2 = (struct ipc_perm *)(argp2);
  if (arg1) (arg1)->shm_perm = *arg2;
  return Qnil;
fail:
  return Qnil;
}
shm_segsz(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_segsz_get(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_ds *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_segsz", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  result = (size_t) ((arg1)->shm_segsz);
  vresult = SWIG_From_size_t((size_t)(result));
  return vresult;
fail:
  return Qnil;
}
shm_segsz=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_shmid_ds_shm_segsz_set(int argc, VALUE *argv, VALUE self) {
  struct shmid_ds *arg1 = (struct shmid_ds *) 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t 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_shmid_ds, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct shmid_ds *","shm_segsz", 1, self )); 
  }
  arg1 = (struct shmid_ds *)(argp1);
  ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","shm_segsz", 2, argv[0] ));
  } 
  arg2 = (size_t)(val2);
  if (arg1) (arg1)->shm_segsz = arg2;
  return Qnil;
fail:
  return Qnil;
}