Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function to generate a temporary filename



On Thu, 29 Sep 2005 08:42:53, Matt Gough <email@hidden> wrote:

> On 28 Sep 2005, at 20:07, Mike Kluev wrote:
> 
>>>> ... We don't even have atomic "create-open" in File Manager...
>
> Haven't tried it myself, but in 10.4 I suspect that the following
> does exactly that:
> 
> OSStatus  FSCreateFileAndOpenForkUnicode(const FSRef *parentRef,
> UniCharCount nameLength, const UniChar *name, FSCatalogInfoBitmap
> whichInfo, const FSCatalogInfo *catalogInfo, UniCharCount
> forkNameLength, const UniChar *forkName, SInt8 permissions, SInt16
> *forkRefNum, FSRef *newRef);

Cool, thanks!   Is it atomic?

Mike

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.