diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 19:13:37 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-10-09 19:13:37 +0200 |
commit | 86af500777f45066aa6a6817d4b695cf4b626c38 (patch) | |
tree | 759cff5e6e285f430b2abf576fe0a3577cab5f52 /sysdeps/posix/ttyname_r.c | |
parent | fdb93243abfa5db1e79860a4595bbd9065b05aae (diff) | |
parent | 7bb5f8a836b916d6ebf7b6921b136e99cea2442d (diff) |
Merge commit 'refs/top-bases/cvs/exc2signal-template' into cvs/exc2signal-template
Diffstat (limited to 'sysdeps/posix/ttyname_r.c')
-rw-r--r-- | sysdeps/posix/ttyname_r.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/sysdeps/posix/ttyname_r.c b/sysdeps/posix/ttyname_r.c index 483b78516e..6da98b3510 100644 --- a/sysdeps/posix/ttyname_r.c +++ b/sysdeps/posix/ttyname_r.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991-2015 Free Software Foundation, Inc. +/* Copyright (C) 1991-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -37,14 +37,8 @@ static int getttyname_r (int fd, char *buf, size_t buflen, static int internal_function -getttyname_r (fd, buf, buflen, mydev, myino, save, dostat) - int fd; - char *buf; - size_t buflen; - dev_t mydev; - ino_t myino; - int save; - int *dostat; +getttyname_r (int fd, char *buf, size_t buflen, dev_t mydev, ino_t myino, + int save, int *dostat) { struct stat st; DIR *dirstream; @@ -101,10 +95,7 @@ getttyname_r (fd, buf, buflen, mydev, myino, save, dostat) /* Store at most BUFLEN character of the pathname of the terminal FD is open on in BUF. Return 0 on success, otherwise an error number. */ int -__ttyname_r (fd, buf, buflen) - int fd; - char *buf; - size_t buflen; +__ttyname_r (int fd, char *buf, size_t buflen) { struct stat st; int dostat = 0; |