projects
/
grml-scripts.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* random-hostname: add idspispopd, kitchensink and spispopd to
[grml-scripts.git]
/
compile
/
vmware-detect.c
1
#include <stdio.h>
2
int main() {
3
unsigned char idtr[6];
4
asm("sidt %0" : "=m" (idtr));
5
if(0xff==idtr[5])
6
{
7
return 0;
8
}
9
else
10
{
11
return 1;
12
}
13
}