class SysVIPC::Ipc_perm

Public Class Methods

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

Public Instance Methods

cgid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_cgid_get(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  gid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","cgid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  result = (gid_t) ((arg1)->cgid);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
cgid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_cgid_set(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  gid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","cgid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gid_t","cgid", 2, argv[0] ));
  } 
  arg2 = (gid_t)(val2);
  if (arg1) (arg1)->cgid = arg2;
  return Qnil;
fail:
  return Qnil;
}
cuid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_cuid_get(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","cuid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  result = (uid_t) ((arg1)->cuid);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
cuid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_cuid_set(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  uid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","cuid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uid_t","cuid", 2, argv[0] ));
  } 
  arg2 = (uid_t)(val2);
  if (arg1) (arg1)->cuid = arg2;
  return Qnil;
fail:
  return Qnil;
}
gid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_gid_get(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  gid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","gid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  result = (gid_t) ((arg1)->gid);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
gid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_gid_set(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  gid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","gid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gid_t","gid", 2, argv[0] ));
  } 
  arg2 = (gid_t)(val2);
  if (arg1) (arg1)->gid = arg2;
  return Qnil;
fail:
  return Qnil;
}
mode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_mode_get(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  mode_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","mode", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  result = (mode_t) ((arg1)->mode);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
mode=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_mode_set(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  mode_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","mode", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "mode_t","mode", 2, argv[0] ));
  } 
  arg2 = (mode_t)(val2);
  if (arg1) (arg1)->mode = arg2;
  return Qnil;
fail:
  return Qnil;
}
uid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_uid_get(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  uid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","uid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  result = (uid_t) ((arg1)->uid);
  vresult = SWIG_From_unsigned_SS_int((unsigned int)(result));
  return vresult;
fail:
  return Qnil;
}
uid=(*args) click to toggle source
SWIGINTERN VALUE
_wrap_ipc_perm_uid_set(int argc, VALUE *argv, VALUE self) {
  struct ipc_perm *arg1 = (struct ipc_perm *) 0 ;
  uid_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_ipc_perm, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "struct ipc_perm *","uid", 1, self )); 
  }
  arg1 = (struct ipc_perm *)(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uid_t","uid", 2, argv[0] ));
  } 
  arg2 = (uid_t)(val2);
  if (arg1) (arg1)->uid = arg2;
  return Qnil;
fail:
  return Qnil;
}