summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorzethra <jediben97@gmail.com>2016-11-23 05:33:36 -0500
committerzethra <jediben97@gmail.com>2016-11-23 05:33:36 -0500
commit5d0b17078a8ef19802d5ba609845d2f5703ffc20 (patch)
tree2de6290c1ea7af1ec863913d2a8568f0d96ba372 /src/unistd.rs
parent81c1c9ab0975fc7982eb9be0ad5b31db7303f2da (diff)
downloadnix-5d0b17078a8ef19802d5ba609845d2f5703ffc20.zip
Fixed typo in tcsetpgrp
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs
index 68a22ea1..f06f708b 100644
--- a/src/unistd.rs
+++ b/src/unistd.rs
@@ -136,7 +136,7 @@ pub fn setsid() -> Result<pid_t> {
/// Get the group process id (GPID) of the foreground process group on the
/// terminal associated to file descriptor (FD).
#[inline]
-pub fn tcgetgrp(fd: c_int) -> Result<pid_t> {
+pub fn tcgetpgrp(fd: c_int) -> Result<pid_t> {
let res = unsafe { libc::tcgetpgrp(fd) };
Errno::result(res)
}