/************************************************************************************** Copyright (c) 2002 The UbixOS Project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are prohibited. $Id$ **************************************************************************************/ #include <sys/types.h> uShort getpid(void) { char pid[1]; asm( "int %0\n" : : "i" (0x80),"a" (1),"b" (pid) ); return(pid[0]); }