~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to tools/perf/util/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
#include <sys/poll.h>
71
71
#include <sys/socket.h>
72
72
#include <sys/ioctl.h>
73
 
#ifndef NO_SYS_SELECT_H
74
73
#include <sys/select.h>
75
 
#endif
76
74
#include <netinet/in.h>
77
75
#include <netinet/tcp.h>
78
76
#include <arpa/inet.h>
83
81
#include "types.h"
84
82
#include <sys/ttydefaults.h>
85
83
 
86
 
#ifndef NO_ICONV
87
 
#include <iconv.h>
88
 
#endif
89
 
 
90
84
extern const char *graph_line;
91
85
extern const char *graph_dotted_line;
92
86
extern char buildid_dir[];
236
230
        return x;
237
231
}
238
232
 
239
 
#ifndef DIR_HAS_BSD_GROUP_SEMANTICS
240
 
# define FORCE_DIR_SET_GID S_ISGID
241
 
#else
242
 
# define FORCE_DIR_SET_GID 0
243
 
#endif
244
 
 
245
 
#ifdef NO_NSEC
246
 
#undef USE_NSEC
247
 
#define ST_CTIME_NSEC(st) 0
248
 
#define ST_MTIME_NSEC(st) 0
249
 
#else
250
 
#ifdef USE_ST_TIMESPEC
251
 
#define ST_CTIME_NSEC(st) ((unsigned int)((st).st_ctimespec.tv_nsec))
252
 
#define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtimespec.tv_nsec))
253
 
#else
254
 
#define ST_CTIME_NSEC(st) ((unsigned int)((st).st_ctim.tv_nsec))
255
 
#define ST_MTIME_NSEC(st) ((unsigned int)((st).st_mtim.tv_nsec))
256
 
#endif
257
 
#endif
258
 
 
259
233
int mkdir_p(char *path, mode_t mode);
260
234
int copyfile(const char *from, const char *to);
261
235