Re: unique temporary file name
Re: unique temporary file name
- Subject: Re: unique temporary file name
- From: Angelo Chen <email@hidden>
- Date: Wed, 17 May 2006 02:20:25 -0700 (PDT)
Thanks for all those who answered my question, i tried
all and all works:) btw does mkstemp works in a
networked directory?
--- Greg Herlihy <email@hidden> wrote:
> Note that the tempnam man page strongly discourages
> programs from calling
> tempnam due to security issues and a potential race
> condition with the
> routine. The tempnam man page recommends mkstemp as
> a safer alternative.
>
> Greg
>
>
> On 5/16/06 5:21 PM, "Deborah Goldsmith"
> <email@hidden> wrote:
>
> > Also:
> >
> > man tempnam
> >
> > Deborah Goldsmith
> > Internationalization, Unicode liaison
> > Apple Computer, Inc.
> > email@hidden
> >
> > On May 16, 2006, at 4:51 PM, Ryan Britton wrote:
> >
> >> Here's a snippet from some code I use to get a
> unique, temporary
> >> path name:
> >>
> >> CFUUIDRef uuid = CFUUIDCreate(NULL);
> >> CFStringRef uuidString = CFUUIDCreateString(NULL,
> uuid);
> >> CFRelease(uuid);
> >> [self setTemporaryStore:[NSTemporaryDirectory()
> >> stringByAppendingPathComponent:(NSString *)
> uuidString]];
> >> CFRelease(uuidString);
> >>
> >>
> >> On May 16, 2006, at 4:42 PM, Angelo Chen wrote:
> >>
> >>> Hi,
> >>>
> >>> How to obtain a unique file name from a
> directory? thanks
> >>>
> >>>
> >>> ---------------------------------
> >>> Sneak preview the all-new Yahoo.com. It's not
> radically
> >>> different. Just radically better.
> >>> _______________________________________________
> >>> Do not post admin requests to the list. They
> will be ignored.
> >>> Cocoa-dev mailing list
> (email@hidden)
> >>> Help/Unsubscribe/Update your Subscription:
> >>>
>
> >>>
> >>> This email sent to email@hidden
> >>
> >> _______________________________________________
> >> Do not post admin requests to the list. They will
> be ignored.
> >> Cocoa-dev mailing list
> (email@hidden)
> >> Help/Unsubscribe/Update your Subscription:
> >>
>
> >>
> >> This email sent to email@hidden
> >
> > _______________________________________________
> > Do not post admin requests to the list. They will
> be ignored.
> > Cocoa-dev mailing list
> (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
>
> >
> > This email sent to email@hidden
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Cocoa-dev mailing list
> (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden