Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c

Issue 23005005: [NaCl SDK] nacl_io: Add initial implementations of kill and signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
diff --git a/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c b/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
index dd235304d5667c06ce2e6d50f947ba9b264ed07f..c1cd7d004a02b030edfea5a56c1f5c18e6afb081 100644
--- a/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
+++ b/native_client_sdk/src/libraries/nacl_io/syscalls/ioctl.c
@@ -2,9 +2,15 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
+#include <stdarg.h>
+
#include "nacl_io/kernel_intercept.h"
#include "nacl_io/kernel_wrap.h"
-int ioctl(int d, int request, char* argp) {
- return ki_ioctl(d, request, argp);
+int ioctl(int fd, unsigned long request, ...) {
+ va_list ap;
+ va_start(ap, request);
+ char* arg = va_arg(ap, char*);
+ va_end(ap);
+ return ki_ioctl(fd, request, arg);
}

Powered by Google App Engine
This is Rietveld 408576698