aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-08 04:57:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-08 04:57:49 +0000
commit79c2d2fb510a67de0f55897080ff59e83556a95f (patch)
tree1e398fa2e3637208d3e0850ede9f07000d235af7 /process.c
parent02eab00b30bcc74c989804fde466c704c19aa138 (diff)
downloadruby-79c2d2fb510a67de0f55897080ff59e83556a95f.tar.gz
replace fixnum by integer in documents.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c90
1 files changed, 45 insertions, 45 deletions
diff --git a/process.c b/process.c
index 8406405755..7827f03dc2 100644
--- a/process.c
+++ b/process.c
@@ -405,7 +405,7 @@ parent_redirect_close(int fd)
/*
* call-seq:
- * Process.pid -> fixnum
+ * Process.pid -> integer
*
* Returns the process id of this process. Not available on all
* platforms.
@@ -422,7 +422,7 @@ get_pid(void)
/*
* call-seq:
- * Process.ppid -> fixnum
+ * Process.ppid -> integer
*
* Returns the process id of the parent of this process. Returns
* untrustworthy value on Win32/64. Not available on all platforms.
@@ -498,8 +498,8 @@ rb_last_status_clear(void)
/*
* call-seq:
- * stat.to_i -> fixnum
- * stat.to_int -> fixnum
+ * stat.to_i -> integer
+ * stat.to_int -> integer
*
* Returns the bits in _stat_ as a <code>Fixnum</code>. Poking
* around in these bits is platform dependent.
@@ -519,7 +519,7 @@ pst_to_i(VALUE st)
/*
* call-seq:
- * stat.pid -> fixnum
+ * stat.pid -> integer
*
* Returns the process ID that this status object represents.
*
@@ -646,7 +646,7 @@ pst_equal(VALUE st1, VALUE st2)
/*
* call-seq:
- * stat & num -> fixnum
+ * stat & num -> integer
*
* Logical AND of the bits in _stat_ with <em>num</em>.
*
@@ -667,7 +667,7 @@ pst_bitand(VALUE st1, VALUE st2)
/*
* call-seq:
- * stat >> num -> fixnum
+ * stat >> num -> integer
*
* Shift the bits in _stat_ right <em>num</em> places.
*
@@ -709,7 +709,7 @@ pst_wifstopped(VALUE st)
/*
* call-seq:
- * stat.stopsig -> fixnum or nil
+ * stat.stopsig -> integer or nil
*
* Returns the number of the signal that caused _stat_ to stop
* (or +nil+ if self is not stopped).
@@ -748,7 +748,7 @@ pst_wifsignaled(VALUE st)
/*
* call-seq:
- * stat.termsig -> fixnum or nil
+ * stat.termsig -> integer or nil
*
* Returns the number of the signal that caused _stat_ to
* terminate (or +nil+ if self was not terminated by an
@@ -789,7 +789,7 @@ pst_wifexited(VALUE st)
/*
* call-seq:
- * stat.exitstatus -> fixnum or nil
+ * stat.exitstatus -> integer or nil
*
* Returns the least significant eight bits of the return code of
* _stat_. Only available if <code>exited?</code> is
@@ -936,9 +936,9 @@ rb_waitpid(rb_pid_t pid, int *st, int flags)
/*
* call-seq:
- * Process.wait() -> fixnum
- * Process.wait(pid=-1, flags=0) -> fixnum
- * Process.waitpid(pid=-1, flags=0) -> fixnum
+ * Process.wait() -> integer
+ * Process.wait(pid=-1, flags=0) -> integer
+ * Process.waitpid(pid=-1, flags=0) -> integer
*
* Waits for a child process to exit, returns its process id, and
* sets <code>$?</code> to a <code>Process::Status</code> object
@@ -3646,8 +3646,8 @@ rb_fork_ruby(int *status)
#if defined(HAVE_WORKING_FORK) && !defined(CANNOT_FORK_WITH_PTHREAD)
/*
* call-seq:
- * Kernel.fork [{ block }] -> fixnum or nil
- * Process.fork [{ block }] -> fixnum or nil
+ * Kernel.fork [{ block }] -> integer or nil
+ * Process.fork [{ block }] -> integer or nil
*
* Creates a subprocess. If a block is specified, that block is run
* in the subprocess, and the subprocess terminates with a status of
@@ -4188,7 +4188,7 @@ rb_f_system(int argc, VALUE *argv)
*
* pid = spawn(command, :umask=>077)
*
- * The :in, :out, :err, a fixnum, an IO and an array key specifies a redirection.
+ * The :in, :out, :err, a integer, an IO and an array key specifies a redirection.
* The redirection maps a file descriptor in the child process.
*
* For example, stderr can be merged into stdout as follows:
@@ -4346,7 +4346,7 @@ rb_f_spawn(int argc, VALUE *argv)
/*
* call-seq:
- * sleep([duration]) -> fixnum
+ * sleep([duration]) -> integer
*
* Suspends the current thread for _duration_ seconds (which may be any number,
* including a +Float+ with fractional seconds). Returns the actual number of
@@ -4529,7 +4529,7 @@ static rb_pid_t ruby_setsid(void);
#endif
/*
* call-seq:
- * Process.setsid -> fixnum
+ * Process.setsid -> integer
*
* Establishes this process as a new session and process group
* leader, with no controlling tty. Returns the session id. Not
@@ -4583,7 +4583,7 @@ ruby_setsid(void)
#ifdef HAVE_GETPRIORITY
/*
* call-seq:
- * Process.getpriority(kind, integer) -> fixnum
+ * Process.getpriority(kind, integer) -> integer
*
* Gets the scheduling priority for specified process, process group,
* or user. <em>kind</em> indicates the kind of entity to find: one
@@ -5274,9 +5274,9 @@ p_sys_setresuid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
/*
* call-seq:
- * Process.uid -> fixnum
- * Process::UID.rid -> fixnum
- * Process::Sys.getuid -> fixnum
+ * Process.uid -> integer
+ * Process::UID.rid -> integer
+ * Process::Sys.getuid -> integer
*
* Returns the (real) user ID of this process.
*
@@ -5360,7 +5360,7 @@ setreuid(rb_uid_t ruid, rb_uid_t euid)
/*
* call-seq:
- * Process::UID.change_privilege(user) -> fixnum
+ * Process::UID.change_privilege(user) -> integer
*
* Change the current process's real and effective user ID to that
* specified by _user_. Returns the new user ID. Not
@@ -5681,9 +5681,9 @@ p_sys_issetugid(VALUE obj)
/*
* call-seq:
- * Process.gid -> fixnum
- * Process::GID.rid -> fixnum
- * Process::Sys.getgid -> fixnum
+ * Process.gid -> integer
+ * Process::GID.rid -> integer
+ * Process::Sys.getgid -> integer
*
* Returns the (real) group ID for this process.
*
@@ -5701,7 +5701,7 @@ proc_getgid(VALUE obj)
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETRGID) || defined(HAVE_SETGID)
/*
* call-seq:
- * Process.gid= fixnum -> fixnum
+ * Process.gid= integer -> integer
*
* Sets the group ID for this process.
*/
@@ -5909,7 +5909,7 @@ proc_initgroups(VALUE obj, VALUE uname, VALUE base_grp)
#if defined(_SC_NGROUPS_MAX) || defined(NGROUPS_MAX)
/*
* call-seq:
- * Process.maxgroups -> fixnum
+ * Process.maxgroups -> integer
*
* Returns the maximum number of gids allowed in the supplemental
* group access list.
@@ -5929,7 +5929,7 @@ proc_getmaxgroups(VALUE obj)
#ifdef HAVE_SETGROUPS
/*
* call-seq:
- * Process.maxgroups= fixnum -> fixnum
+ * Process.maxgroups= integer -> integer
*
* Sets the maximum number of gids allowed in the supplemental group
* access list.
@@ -6064,7 +6064,7 @@ setregid(rb_gid_t rgid, rb_gid_t egid)
/*
* call-seq:
- * Process::GID.change_privilege(group) -> fixnum
+ * Process::GID.change_privilege(group) -> integer
*
* Change the current process's real and effective group ID to that
* specified by _group_. Returns the new group ID. Not
@@ -6233,9 +6233,9 @@ p_gid_change_privilege(VALUE obj, VALUE id)
/*
* call-seq:
- * Process.euid -> fixnum
- * Process::UID.eid -> fixnum
- * Process::Sys.geteuid -> fixnum
+ * Process.euid -> integer
+ * Process::UID.eid -> integer
+ * Process::Sys.geteuid -> integer
*
* Returns the effective user ID for this process.
*
@@ -6334,8 +6334,8 @@ rb_seteuid_core(rb_uid_t euid)
/*
* call-seq:
- * Process::UID.grant_privilege(user) -> fixnum
- * Process::UID.eid= user -> fixnum
+ * Process::UID.grant_privilege(user) -> integer
+ * Process::UID.eid= user -> integer
*
* Set the effective user ID, and if possible, the saved user ID of
* the process to the given _user_. Returns the new
@@ -6356,9 +6356,9 @@ p_uid_grant_privilege(VALUE obj, VALUE id)
/*
* call-seq:
- * Process.egid -> fixnum
- * Process::GID.eid -> fixnum
- * Process::Sys.geteid -> fixnum
+ * Process.egid -> integer
+ * Process::GID.eid -> integer
+ * Process::Sys.geteid -> integer
*
* Returns the effective group ID for this process. Not available on
* all platforms.
@@ -6377,7 +6377,7 @@ proc_getegid(VALUE obj)
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS)
/*
* call-seq:
- * Process.egid = fixnum -> fixnum
+ * Process.egid = integer -> integer
*
* Sets the effective group ID for this process. Not available on all
* platforms.
@@ -6464,8 +6464,8 @@ rb_setegid_core(rb_gid_t egid)
/*
* call-seq:
- * Process::GID.grant_privilege(group) -> fixnum
- * Process::GID.eid = group -> fixnum
+ * Process::GID.grant_privilege(group) -> integer
+ * Process::GID.eid = group -> integer
*
* Set the effective group ID, and if possible, the saved group ID of
* the process to the given _group_. Returns the new
@@ -6508,7 +6508,7 @@ p_uid_exchangeable(void)
/*
* call-seq:
- * Process::UID.re_exchange -> fixnum
+ * Process::UID.re_exchange -> integer
*
* Exchange real and effective user IDs and return the new effective
* user ID. Not available on all platforms.
@@ -6570,7 +6570,7 @@ p_gid_exchangeable(void)
/*
* call-seq:
- * Process::GID.re_exchange -> fixnum
+ * Process::GID.re_exchange -> integer
*
* Exchange real and effective group IDs and return the new effective
* group ID. Not available on all platforms.
@@ -6641,7 +6641,7 @@ p_uid_sw_ensure(rb_uid_t id)
/*
* call-seq:
- * Process::UID.switch -> fixnum
+ * Process::UID.switch -> integer
* Process::UID.switch {|| block} -> object
*
* Switch the effective and real user IDs of the current process. If
@@ -6754,7 +6754,7 @@ p_gid_sw_ensure(rb_gid_t id)
/*
* call-seq:
- * Process::GID.switch -> fixnum
+ * Process::GID.switch -> integer
* Process::GID.switch {|| block} -> object
*
* Switch the effective and real group IDs of the current process. If