blob: 472eed25591f70da095f42f6a61ca9b97d734fe6 [file] [log] [blame]
Ben Murdoch2385ea32013-08-06 11:01:04 +01001/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
4
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +01005#include <stdarg.h>
6
Ben Murdoch2385ea32013-08-06 11:01:04 +01007#include "nacl_io/kernel_intercept.h"
8#include "nacl_io/kernel_wrap.h"
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +01009#include "nacl_io/dbgprint.h"
Ben Murdoch2385ea32013-08-06 11:01:04 +010010
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +010011int ioctl(int fd, unsigned long request, ...) {
12 va_list ap;
13 va_start(ap, request);
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +010014 int rtn = ki_ioctl(fd, request, ap);
Torne (Richard Coles)3551c9c2013-08-23 16:39:15 +010015 va_end(ap);
Torne (Richard Coles)4e180b62013-10-18 15:46:22 +010016 return rtn;
Ben Murdoch2385ea32013-08-06 11:01:04 +010017}