PageRenderTime 33ms CodeModel.GetById 29ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/core/externals/update-engine/externals/google-toolbox-for-mac/SnowLeopardGcov/GTM_fdopen2003.c

http://macfuse.googlecode.com/
C | 28 lines | 4 code | 3 blank | 21 comment | 0 complexity | 34da3eb94714aae34219dfc8cb574175 MD5 | raw file
 1//
 2//  GTM_fdopen2003.c
 3//
 4//  Copyright 2010 Google Inc.
 5//  Licensed under the Apache License, Version 2.0 (the "License"); you may not
 6//  use this file except in compliance with the License.  You may obtain a copy
 7//  of the License at
 8//
 9//  http://www.apache.org/licenses/LICENSE-2.0
10//
11//  Unless required by applicable law or agreed to in writing, software
12//  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13//  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
14//  License for the specific language governing permissions and limitations under
15//  the License.
16//
17
18// This file exists because when you build with your SDK set to 10.5 and
19// and compiler version set to gcc 4.0 on using Xcode 3.2.2 on Snow Leopard
20// you will receive a link error for missing the _fdopen$UNIX2003 symbol.
21// See http://code.google.com/p/coverstory/wiki/SnowLeopardGCov
22// for more details.
23
24#include <stdio.h>
25
26FILE *fdopen$UNIX2003(int fildes, const char *mode) {
27  return fdopen(fildes, mode);
28}