/[path-sandbox]/trunk/getcwd.c
Gentoo

Diff of /trunk/getcwd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 24 Revision 25
43/* AIX requires this to be the first thing in the file. */ 43/* AIX requires this to be the first thing in the file. */
44#if defined _AIX && !defined __GNUC__ 44#if defined _AIX && !defined __GNUC__
45#pragma alloca 45#pragma alloca
46#endif 46#endif
47 47
48#ifdef HAVE_CONFIG_H
49# include "config.h"
50#endif
51 48
52#include <errno.h> 49#include <errno.h>
53#include <sys/types.h> 50#include <sys/types.h>
54#include <sys/stat.h> 51#include <sys/stat.h>
55 52
56#ifdef STDC_HEADERS 53#ifdef STDC_HEADERS
57# include <stddef.h> 54# include <stddef.h>
58#endif 55#endif
56
57#include "config.h"
58#include <sys/param.h>
59#include "sb_path_max.h"
60
59 61
60#if !defined __GNU_LIBRARY__ && !defined STDC_HEADERS 62#if !defined __GNU_LIBRARY__ && !defined STDC_HEADERS
61extern int errno; 63extern int errno;
62#endif 64#endif
63#ifndef __set_errno 65#ifndef __set_errno
213 215
214#ifndef GETCWD_RETURN_TYPE 216#ifndef GETCWD_RETURN_TYPE
215# define GETCWD_RETURN_TYPE char * 217# define GETCWD_RETURN_TYPE char *
216#endif 218#endif
217 219
218#ifndef SB_PATH_MAX
219//# include "localdecls.h"
220# define OUTSIDE_LIBSANDBOX
221#endif
222
223#ifndef __LIBC 220#ifndef __LIBC
224# define __lstat lstat 221# define __lstat lstat
225# define __readdir readdir 222# define __readdir readdir
226# define __closedir closedir 223# define __closedir closedir
227#endif 224#endif

Legend:
Removed from v.24  
changed lines
  Added in v.25

  ViewVC Help
Powered by ViewVC 1.1.20