diff options
author | kib <kib@FreeBSD.org> | 2014-11-13 18:01:51 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2014-11-13 18:01:51 +0000 |
commit | b4ef709604332a259f2a08f546cceec6ab3ecace (patch) | |
tree | 6efcfbcf870ce7232247484b3f06affbcf5570d6 /sys/dev/streams | |
parent | bc10954c50985cb9f46aa05d31b1309198d2e65c (diff) | |
download | FreeBSD-src-b4ef709604332a259f2a08f546cceec6ab3ecace.zip FreeBSD-src-b4ef709604332a259f2a08f546cceec6ab3ecace.tar.gz |
Remove the no-at variants of the kern_xx() syscall helpers. E.g., we
have both kern_open() and kern_openat(); change the callers to use
kern_openat().
This removes one (sometimes two) levels of indirection and
consolidates arguments checks.
Reviewed by: mckusick
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/dev/streams')
-rw-r--r-- | sys/dev/streams/streams.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index 42265a4..6a9219e 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -302,7 +302,8 @@ svr4_ptm_alloc(td) ptyname[8] = ttyletters[l]; ptyname[9] = ttynumbers[n]; - error = kern_open(td, ptyname, UIO_SYSSPACE, O_RDWR, 0); + error = kern_openat(td, AT_FDCWD, ptyname, UIO_SYSSPACE, + O_RDWR, 0); switch (error) { case ENOENT: case ENXIO: |