Public feed
#889167
diff -Naur atscap-1.1rc9g/Makefile atscap-1.1rc9g-working/Makefile--- atscap-1.1rc9g/Makefile 2007-02-25 21:16:51.000000000 -0500+++ atscap-1.1rc9g-working/Makefile 2007-11-04 10:02:42.000000000 -0500@@ -183,7 +183,7 @@ atscut: atscut.c @echo @echo Building a shiney object:- @$(CC) $(CFLAGS) -lrt -o $@ $^+ @$(CC) $(CFLAGS) -o $@ $^ @echo +++ atscut is compiled. You have a stream tool. Try atscut -h. # X11 and DVB flagsdiff -Naur atscap-1.1rc9g/atscut.c atscap-1.1rc9g-working/atscut.c--- atscap-1.1rc9g/atscut.c 2007-02-25 21:16:50.000000000 -0500+++ atscap-1.1rc9g-working/atscut.c 2007-11-04 10:29:33.000000000 -0500@@ -7,6 +7,7 @@ #define LASTEDIT "20070202" #define VERSION "1.1.0" +#include <sys/types.h> #warning README is first 180 lines of this file /* * atscut.c (c) Copyright 2004-2007 by inkling@nop.org@@ -386,6 +387,7 @@ static int arg_ean = 0; /* -e3,1 sets this to 1 */ static int arg_forge = 0; /* forge new PAT + PMT, only for -e option */ static int arg_crc = 0; /* generate list of crc32s for each packet */+#define clockid_t int static clockid_t clock_method; static unsigned long long pcr = 0; /* current pcr */@@ -7646,14 +7648,22 @@ void start_timer( void ) {- clock_gettime( clock_method, &cap_start);+ #if 0+ clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &cap_start);+ #else+ memset( &cap_start, 0, sizeof(cap_start));+ #endif } static void stop_timer( void ) {- clock_gettime( clock_method, &cap_stop);+ #if 0+ clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &cap_stop);+ #else+ memset( &cap_stop, 0, sizeof(cap_stop));+ #endif memcpy( &cap_et, &cap_stop, sizeof(cap_et) ); // if nanos subtracts borrow@@ -7669,6 +7679,10 @@ } #define RTC_MAX 3+#if 0+#define CLOCK_REALTIME 1+#define CLOCK_PROCESS_CPUTIME_ID 2+#define CLOCK_THREAD_CPUTIME_ID 3 /* find the most accurate clock and set clock_method global */ static void@@ -7729,6 +7743,7 @@ #endif }+#endif static void@@ -7782,7 +7797,7 @@ i = j = 0; - test_clock_res(); /* find most accurate clock for clock_gettime */+ //test_clock_res(); /* find most accurate clock for clock_gettime */ start_timer();