Displaying 6 results from an estimated 6 matches for "noerr".
Did you mean:
nerr
2004 Jan 06
1
Keychain Patch Try II
...def USE_KEYCHAIN
-
-int get_passphrase_from_keychain(const char *prompt, char buf[],
size_t size)
-{
- void *password_data;
- UInt32 password_length;
-
- if (SecKeychainFindGenericPassword(NULL, strlen(prompt), prompt,
strlen(prompt), prompt, &password_length, &password_data, NULL) ==
noErr) {
- /* Then we got the password from the Keychain */
- fprintf(stderr, "%s found in Keychain.", prompt);
- strncpy(buf, (char *)password_data, (size < password_length+1 ?
size : password_length + 1));
- memset(password_data, 'x', password_length);
- SecKeychain...
2007 Aug 24
0
rsync patch to add Apple keychain support
...static int get_secret_from_keychain(int module, char *user, char
*secret, unsigned secretmaxlen)
{
char accountname[100] = "";
char* modulename = lp_name(module);
strcat(accountname, modulename);
strcat(accountname, "-");
strcat(accountname, user);
OSStatus status = noErr;
UInt32 passwordLength = 0;
void* passwordData = nil; // will be allocated and filled in by
SecKeychainFindGenericPassword
SecKeychainItemRef* itemRef = NULL;
status = SecKeychainFindGenericPassword (
NULL, // default keychain
strlen("rsyncd&quo...
2004 Feb 07
0
OS X
...to trouble... .
You need some infos?
char buffer[4096];
OSStatus Render(...) {
bytes_read = ov_read(&vf, buffer, sizeof(buffer), 0, 2, 1,
¤t_section);
memcpy(ioData->mBuffers[0].mData, buffer, bytes_read);
ioData->mBuffers[0].mDataByteSize = bytes_read;
return noErr;
}
SomewhereThePlay Function(...){
...
AURenderCallbackStruct in;
in.inputProc = Render;
in.inputProcRefCon = NULL;
...
AudioStreamBasicDescription sFormat;
sFormat.mSampleRate = 44100;
sFormat.mFormatID = kAudioFormatLinearPCM;
sFormat.mFormatFlags = kLinearPCM...
2003 Oct 12
1
Altivec-enabled libvorbis...
...his variable exists in my AL implementation
and not libvorbis. The code to detect an Altivec unit in MacOSX looks
like this:
#include <CoreServices/CoreServices.h>
long cpufeature = 0;
OSErr err = Gestalt(gestaltPowerPCProcessorFeatures, &cpufeature);
if (err == noErr) {
if ((1 << gestaltPowerPCHasVectorInstructions) & cpufeature)
VectorUnitDetected = 1;
}
Using this code will need "-framework Carbon" on the gcc and ld
commandline.
Non-Mac platforms should already have _al_has_vector_unit() #defined to
be (...
2010 Aug 15
2
Beginner Hurdles
...g parts:
////////////////////////////////////////
Video video; // my wrapper class for Ogg Theora
ImageBuffer videoBuffer; // my wrapper class for OpenGL texture
BufferSoundChannel bufChan; // my wrapper class for OpenAL
if( video.Load( "~/Desktop/ogg-theora-tests/320x240.ogg" ) != noErr )
ErrorDialog( "Couldn't load file" );
double startTime = video.HasAudio() ? 0 : bufChan.GetTime();
double audioStartTime = 0, audioStaleTime = 0,
videoStartTime = 0, videoStaleTime = 0;
int audioStatus = kVideoAudioBuffering, videoStatus =
kVideoVideoBuffering;
Boolean...
2002 Nov 10
2
Harddisk gone bad
Hi all,
I know this is the EXT3 list, and my problem is with an EXT2 filesys, but I cannot seem to find a more suitable list on this server, and I have seen a lot of knowledge go by on this list and in the archives, so I thought I'd give it a try anyway...
Here goes nothing:
I am in a terrible problem: My data disk on my Linux server has gone bad, with approx 18 GB of data on it, and I