Ignore:
Timestamp:
Jan 15, 2010, 1:16:04 PM (16 years ago)
Author:
Silvan Scherrer
Message:

remove hardcoded path, remove some files

Location:
branches/samba-3.3.x/source/lib
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/os2ea.c

    r370 r372  
    2929
    3030#ifndef TESTING
     31
     32// Samba DEBUG() needs the following includes and defines
    3133#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2)))
    3234#define CMD_KI_RDCNT            (0x63)
    33 
     35#include <stdbool.h>
    3436#include "local.h"
    3537#include "xfile.h"
    36 #define DEBUG(a,b) (0)
    37 
     38#include "debug.h"
    3839#else
    3940
     
    167168} CPUUTIL;
    168169
     170APIRET APIENTRY(*pfnDosPerfSysCall) (ULONG ulCommand, ULONG ulParm1, ULONG ulParm2, ULONG ulParm3) = NULL;
     171APIRET APIENTRY(*pfnDosQuerySysState) (ULONG func, ULONG arg1, ULONG pid, ULONG _res_, PVOID buf, ULONG bufsz) = NULL;
    169172
    170173static UCHAR randbyte_perf()
     
    174177    int c;
    175178
    176 #ifndef __INNOTEK_LIBC__
    177179    if (hDoscalls == 0) {
    178180        char failed_module[20];
     
    183185
    184186        if (rc == 0) {
    185             rc = DosQueryProcAddr(hDoscalls, 976, NULL, (PFN *)&DosPerfSysCall);
     187            rc = DosQueryProcAddr(hDoscalls, 976, NULL, (PFN *)&pfnDosPerfSysCall);
    186188
    187189            if (rc) {
    188                 DosPerfSysCall = NULL;
     190                pfnDosPerfSysCall = NULL;
    189191            }
    190192        }
    191193    }
    192194
    193     if (DosPerfSysCall) {
    194         if (DosPerfSysCall(CMD_KI_RDCNT, (ULONG)&util, 0, 0) == 0) {
     195    if (pfnDosPerfSysCall) {
     196        if ((*pfnDosPerfSysCall) (CMD_KI_RDCNT, (ULONG)&util, 0, 0) == 0) {
    195197            for (c = 0; c < sizeof(util); c++) {
    196198                byte ^= ((UCHAR *)&util)[c];
     
    198200        }
    199201        else {
    200             DosPerfSysCall = NULL;
     202            pfnDosPerfSysCall = NULL;
    201203        }
    202204    }
    203 #endif
     205
    204206    return byte;
    205207}
Note: See TracChangeset for help on using the changeset viewer.