Mercurial > hg > audiodb
comparison soap.cpp @ 651:5b2c0d9bc63d
Broken implementation of mkstemp() for WIN32 (no-cygwin)
Since the only user is the SOAP server, and since I would strongly like
to see the SOAP server either removed completely or else written to call
the API rather than a fake-command-line-emulation, I'm not too worried
about the brokenness. YMMV.
author | mas01cr |
---|---|
date | Wed, 14 Oct 2009 12:12:39 +0000 |
parents | d5ada9532a40 |
children |
comparison
equal
deleted
inserted
replaced
650:6d5d4c733781 | 651:5b2c0d9bc63d |
---|---|
377 soap_receiver_fault(soap, err, ""); | 377 soap_receiver_fault(soap, err, ""); |
378 return SOAP_FAULT; | 378 return SOAP_FAULT; |
379 } | 379 } |
380 } | 380 } |
381 | 381 |
382 #if defined(WIN32) | |
383 int mkstemp(char *tmpFileName) { | |
384 int fd = -1; | |
385 mktemp(tmpFileName); | |
386 fd = open(tmpFileName,O_RDWR|O_BINARY|O_CREAT|O_EXCL, _S_IREAD|_S_IWRITE); | |
387 return fd; | |
388 } | |
389 #endif | |
390 | |
382 // Query an audioDB database by vector (serialized) | 391 // Query an audioDB database by vector (serialized) |
383 int adb__shingleQuery(struct soap* soap, xsd__string dbName, struct adb__queryVector qVector, xsd__string keyList, xsd__string timesFileName, xsd__int queryType, xsd__int queryPos, xsd__int pointNN, xsd__int trackNN, xsd__int sequenceLength, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, xsd__int no_unit_norming, struct adb__queryResponse &adbQueryResponse){ | 392 int adb__shingleQuery(struct soap* soap, xsd__string dbName, struct adb__queryVector qVector, xsd__string keyList, xsd__string timesFileName, xsd__int queryType, xsd__int queryPos, xsd__int pointNN, xsd__int trackNN, xsd__int sequenceLength, xsd__double radius, xsd__double absolute_threshold, xsd__double relative_threshold, xsd__int exhaustive, xsd__int lsh_exact, xsd__int no_unit_norming, struct adb__queryResponse &adbQueryResponse){ |
384 | 393 |
385 // open a tmp file on the server, write shingle, query as a file with query point 0 | 394 // open a tmp file on the server, write shingle, query as a file with query point 0 |
386 // and shingle length l/dim | 395 // and shingle length l/dim |