Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151916432
D45078.id138103.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D45078.id138103.diff
View Options
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c
--- a/usr.bin/diff/diff.c
+++ b/usr.bin/diff/diff.c
@@ -26,11 +26,11 @@
#include <err.h>
#include <errno.h>
#include <getopt.h>
-#include <stdlib.h>
+#include <limits.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <limits.h>
#include "diff.h"
#include "xmalloc.h"
diff --git a/usr.bin/diff/diffdir.c b/usr.bin/diff/diffdir.c
--- a/usr.bin/diff/diffdir.c
+++ b/usr.bin/diff/diffdir.c
@@ -26,10 +26,10 @@
#include <err.h>
#include <errno.h>
#include <fnmatch.h>
+#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <limits.h>
#include <unistd.h>
#include "diff.h"
diff --git a/usr.bin/diff/diffreg_new.c b/usr.bin/diff/diffreg_new.c
--- a/usr.bin/diff/diffreg_new.c
+++ b/usr.bin/diff/diffreg_new.c
@@ -15,20 +15,22 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/types.h>
#include <sys/capsicum.h>
+#ifndef DIFF_NO_MMAP
#include <sys/mman.h>
+#endif
#include <sys/stat.h>
-#include <sys/types.h>
#include <capsicum_helpers.h>
#include <err.h>
#include <fcntl.h>
+#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
-#include <stdbool.h>
-#include <time.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include "diff.h"
@@ -266,10 +268,12 @@
diff_result_free(result);
diff_data_free(&left);
diff_data_free(&right);
+#ifndef DIFF_NO_MMAP
if (str1)
munmap(str1, st1.st_size);
if (str2)
munmap(str2, st2.st_size);
+#endif
fclose(f1);
fclose(f2);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 12:39 PM (21 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31348673
Default Alt Text
D45078.id138103.diff (1 KB)
Attached To
Mode
D45078: diff: Sort headers.
Attached
Detach File
Event Timeline
Log In to Comment