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

cal at macports.org cal at macports.org
Sun Oct 27 17:58:24 PDT 2013


Revision: 112610
          https://trac.macports.org/changeset/112610
Author:   cal at macports.org
Date:     2013-10-27 17:58:24 -0700 (Sun, 27 Oct 2013)
Log Message:
-----------
darwintrace: comment unused code

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

Modified: trunk/base/src/darwintracelib1.0/darwintrace.c
===================================================================
--- trunk/base/src/darwintracelib1.0/darwintrace.c	2013-10-28 00:32:22 UTC (rev 112609)
+++ trunk/base/src/darwintracelib1.0/darwintrace.c	2013-10-28 00:58:24 UTC (rev 112610)
@@ -622,14 +622,16 @@
  * \param[in] path the (not necessarily absolute) path to send to tracelib
  * \param[in] fd a FD to the file, or 0, if none available
  */
-static inline void __darwintrace_log_op(const char *op, const char *path, int fd) {
+static inline void __darwintrace_log_op(const char *op, const char *path) {
 	uint32_t size;
 	char pathbuf[MAXPATHLEN];
 	char logbuffer[BUFFER_SIZE];
 	const char *realpath;
 
 	do {
+#		if 0
 #       ifdef __APPLE__ /* Only Darwin has volfs and F_GETPATH */
+		/* TODO Use getattrlist(2) ATTR_CMN_NAME to get this */
 		if ((fd > 0) && (strncmp(path, "/.vol/", 6) == 0)) {
 			if (fcntl(fd, F_GETPATH, pathbuf) != -1) {
 				realpath = pathbuf;
@@ -637,6 +639,7 @@
 			}
 		}
 #       endif
+#		endif
 
 		if (*path != '/') {
 			if (!getcwd(pathbuf, sizeof(pathbuf))) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131027/0b4ec3b3/attachment-0001.html>


More information about the macports-changes mailing list