[50702] trunk/base/src/darwintracelib1.0/darwintrace.c

toby at macports.org toby at macports.org
Thu May 7 01:59:20 PDT 2009


Revision: 50702
          http://trac.macports.org/changeset/50702
Author:   toby at macports.org
Date:     2009-05-07 01:59:20 -0700 (Thu, 07 May 2009)
Log Message:
-----------
compile with clang

Modified Paths:
--------------
    trunk/base/src/darwintracelib1.0/darwintrace.c

Modified: trunk/base/src/darwintracelib1.0/darwintrace.c
===================================================================
--- trunk/base/src/darwintracelib1.0/darwintrace.c	2009-05-07 08:52:58 UTC (rev 50701)
+++ trunk/base/src/darwintracelib1.0/darwintrace.c	2009-05-07 08:59:20 UTC (rev 50702)
@@ -324,6 +324,7 @@
 		filemap=0;
 }
 
+__attribute__((always_inline))
 inline void __darwintrace_setup() {
 #define open(x,y,z) syscall(SYS_open, (x), (y), (z))
 #define close(x) syscall(SYS_close, (x))
@@ -354,6 +355,7 @@
  * path:		the path of the file
  * fd:			a fd to the file, or 0 if we don't have any.
  */
+__attribute__((always_inline))
 inline void __darwintrace_log_op(const char* op, const char* path, int fd) {
 	int size;
 	char somepath[MAXPATHLEN];
@@ -530,6 +532,7 @@
 /*
  * return 1 if path (once normalized) is in sandbox or redirected, 0 otherwise.
  */
+__attribute__((always_inline))
 inline int __darwintrace_is_in_sandbox(const char* path, char * newpath) {
 	char * t, * p, * _;
 	int result=-1;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090507/62533527/attachment.html>


More information about the macports-changes mailing list