win-pvdrivers

view mingw/mingw_extras.h @ 783:644e5ddb1b47

Handle SCSI INQUIRY command better in xenvbd
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 15 20:53:57 2010 +1100 (2010-02-15)
parents 8e10579159a0
children
line source
1 #include <stdio.h>
3 #define __FUNCTION__ __func__
5 NTSTATUS bit_scan_forward(unsigned long *index, unsigned long mask);
6 int synch_set_bit(int nr, volatile long * addr);
7 int synch_clear_bit(int nr, volatile long * addr);
9 /* windows wchar 2 bytes, Linux's is 4! */
10 typedef unsigned short win_wchar_t;
12 NTSTATUS
13 RtlStringCbPrintfW(
14 win_wchar_t *dest_str,
15 size_t dest_size,
16 win_wchar_t *format,
17 ...);