68N/A * Copyright (c) 2006, 2008-2009, Oracle and/or its affiliates. All rights reserved. 68N/A * Permission is hereby granted, free of charge, to any person obtaining a 68N/A * copy of this software and associated documentation files (the "Software"), 68N/A * to deal in the Software without restriction, including without limitation 68N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 68N/A * and/or sell copies of the Software, and to permit persons to whom the 68N/A * Software is furnished to do so, subject to the following conditions: 68N/A * The above copyright notice and this permission notice (including the next 68N/A * paragraph) shall be included in all copies or substantial portions of the 68N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 68N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 68N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 68N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 68N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 68N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 68N/A * DEALINGS IN THE SOFTWARE. 68N/A * gfx_vts_set_debug_mask() 87N/A * Set the gfx_vts_debug_mask bits according to environment variables. }
/* gfx_vts_set_debug_mask() */ * Write a variable format debug message to stderr, prefixed by the int flags,
/* Current debug categories bit mask */ const char *
func,
/* Name of function to report */ const char *
format,
/* printf()-style format string */ ...)
/* printf()-style variable arguments */ * Add a message to the existing VTS test return packet. * Grow the arrays (this doesn't happen often enough to call for char *
string)
/* Message string, else NULL */ }
/* gfx_vts_add_message() */ * Initialize the message in the VTS test return packet. * The "count" parameter allows for reporting the number of messages * encountered, whereas the array size allows for multiple messages. char *
string)
/* Message string, else NULL */ }
/* gfx_vts_set_message() */ * See whether the specified file descriptor number looks valid. If * invalid, prepare a message in the return packet and return 1. int fd,
/* File descriptor number */ }
/* gfx_vts_check_fd() */ * Free any and all dynamically allocated memory to which the test }
/* gfx_vts_free_tests() */ * gfx_vts_console_interrupt() * See whether a console interrupt (Ctrl-C or ^C) has been typed. * If so, send a SIGINT signal to our own PID. Otherwise just #
define CTRL_C '\003' /* Ctrl-C (^C) */ int i;
/* Loop counter / keystr[] index */ char keystr[
5] =
"";
/* Buffer for returned string */ int len;
/* Length of returned string */ for (i = 0; i <
len; i +=
1) {
}
/* gfx_vts_console_interrupt() */