PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/filesystems-objc/Support/NSError+POSIX.h

http://macfuse.googlecode.com/
C++ Header | 26 lines | 4 code | 2 blank | 20 comment | 0 complexity | 59f50c8d3fab19280971b5c8af7ad8d1 MD5 | raw file
 1//
 2//  NSError+POSIX.h
 3//
 4// ================================================================
 5// Copyright (C) 2008 Google Inc.
 6// 
 7// Licensed under the Apache License, Version 2.0 (the "License");
 8// you may not use this file except in compliance with the License.
 9// You may obtain a copy of the License at
10// 
11//      http://www.apache.org/licenses/LICENSE-2.0
12// 
13// Unless required by applicable law or agreed to in writing, software
14// distributed under the License is distributed on an "AS IS" BASIS,
15// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16// See the License for the specific language governing permissions and
17// limitations under the License.
18// ================================================================
19//
20
21#import <Foundation/Foundation.h>
22
23// Category on NSError to  simplify creating an NSError based on posix errno.
24@interface NSError (POSIX)
25+ (NSError *)errorWithPOSIXCode:(int)code;
26@end