search for: t_sec

Displaying 9 results from an estimated 9 matches for "t_sec".

Did you mean: tv_sec
2013 Nov 27
0
[PATCH 2/4] efi: Location, size and alignment of .text section
...+ entry += hdr_sz; + memset(&hdr, 0, sizeof(hdr)); hdr.msdos_signature = MSDOS_SIGNATURE; @@ -77,11 +81,6 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size, c_hdr.nr_sections = 2; c_hdr.nr_syms = 1; if (class == ELFCLASS32) { - hdr_sz = sizeof(o_hdr) + sizeof(t_sec) + sizeof(e_hdr) + - sizeof(r_sec) + sizeof(c_hdr) + sizeof(hdr) + sizeof(c_rel) - + sizeof(dummy); - total_sz += hdr_sz; - entry += hdr_sz; c_hdr.arch = IMAGE_FILE_MACHINE_I386; c_hdr.characteristics = IMAGE_FILE_32BIT_MACHINE | IMAGE_FILE_DEBUG_STRIPPED | IMAGE_FILE_EXECUTABLE_I...
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF perform a few consistency checks, syslinux was unable to run on it. I don't pretend to have a thorough understanding of the PE+ headers, some bugs may remain. :) Celelibi (4): efi: Fix PE header field rva_and_sizes_nr efi: Location, size and alignment of .text section efi: Useless relocations in PE file efi: PE
2013 Dec 01
0
[PATCH v2 3/4] efi: Useless relocations in PE file
...ns(-) diff --git a/efi/wrapper.c b/efi/wrapper.c index 8b553f8..4839e52 100644 --- a/efi/wrapper.c +++ b/efi/wrapper.c @@ -48,14 +48,12 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size, { struct optional_hdr o_hdr; struct optional_hdr_pe32p o_hdr_pe32p; - struct section t_sec, r_sec; + struct section t_sec; struct extra_hdr e_hdr; struct extra_hdr_pe32p e_hdr_pe32p; struct coff_hdr c_hdr; struct header hdr; - struct coff_reloc c_rel; __uint32_t total_sz = data_size; - __uint32_t dummy = 0; __uint32_t hdr_sz; __uint32_t reloc_start, reloc_end; @@ -82,7 +8...
2013 Nov 27
0
[PATCH 3/4] efi: Useless relocations in PE file
...ns(-) diff --git a/efi/wrapper.c b/efi/wrapper.c index bd2c175..9652368 100644 --- a/efi/wrapper.c +++ b/efi/wrapper.c @@ -48,14 +48,12 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size, { struct optional_hdr o_hdr; struct optional_hdr_pe32p o_hdr_pe32p; - struct section t_sec, r_sec; + struct section t_sec; struct extra_hdr e_hdr; struct extra_hdr_pe32p e_hdr_pe32p; struct coff_hdr c_hdr; struct header hdr; - struct coff_reloc c_rel; __uint32_t total_sz = data_size; - __uint32_t dummy = 0; __uint32_t hdr_sz; __uint32_t reloc_start, reloc_end; @@ -78,7 +7...
2000 Aug 01
2
ogg123 timekeeping
Does this look okay? : Time: 1:15.50 of 4:13.73, Bitrate: 133.3 How about? : <snip from=ogg123.c> info.u_time = ov_time_total (&vf, -1); /* Seconds with double precision */ gettimeofday (&start_time, NULL); t_min = (long) info.u_time / (long) 60; t_sec = info.u_time - 60 * t_min; while (! eos) { gettimeofday (&cur_time, NULL); c_min = (long) (cur_time.tv_sec - start_time.tv_sec) / (long) 60; c_sec = (cur_time.tv_sec - start_time.tv_sec) - 60 * c_min + ((cur_time.tv_usec - start_time.tv_usec) / 1000000.0); </...
2005 Jun 09
1
Zap Clocking - Frame Slips - tdm400p wcfxo zttest cpu spikes spandsp
...gt; #include <sys/time.h> #include <sys/signal.h> #include <math.h> int main(int argc, char *argv[]) { int fd; int res; int count=0; int pass=1; int lastcount; char buf[1024]; float score; float t_usec; float t_sec; float t_intervals; float sf; struct timeval start, now; fd = open("/dev/zap/pseudo", O_RDWR); if (fd < 0) { fprintf(stderr, "Unable to open zap interface: %s\n", strerror(errno)); exit(1); }...
2008 Dec 20
1
How to do indexing after splitting my data-frame?
...quot;01" "03" ... $ day : chr "29" "29" "29" "29" ... $ month : chr "Nov" "Nov" "Nov" "Nov" ... $ year : chr "2008" "2008" "2008" "2008" ... $ t_sec : atomic 1.23e+09 1.23e+09 1.23e+09 1.23e+09 1.23e+09 ... ..- attr(*, "tzone")= chr "" > > > weblog_by_date <- split(weblog, weblog$date) > > weblog_by_date$"01-Dec-2008"$host [1] 74.6.22.164 74.6.22.164 74.6.22.164 67.195.37.169...
2013 Nov 29
1
[PATCH 2/4] efi: Location, size and alignment of .text section
...> @@ -163,6 +159,16 @@ static void write_header(FILE *f, __uint32_t entry, size_t data_size, > fwrite(&c_rel, sizeof(c_rel), 1, f); > fwrite(&dummy, sizeof(dummy), 1, f); > > + /* > + * Add some padding to align the ELF as needed > + */ > + if (ftell(f) > t_sec.virtual_address) { > + // A fseek that rewind would be a bug hard to track Use C-style comments please. Other than that, the patch looks good. Thanks! -- Matt Fleming, Intel Open Source Technology Center
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...t; 43) | + (((xfs_fsblock_t)l1) >> 21); + dest->br_blockcount = (xfs_filblks_t)(l1 & 0x00000000001fffffULL); + dest->br_state = (l0 & 0x8000000000000000ULL) ? + XFS_EXT_UNWRITTEN : XFS_EXT_NORM; +} + +typedef struct xfs_timestamp { + int32_t t_sec; + int32_t t_nsec; +} __attribute__((__packed__)) xfs_timestamp_t; + +/* + * Fork identifiers. + */ +#define XFS_DATA_FORK 0 +#define xFS_ATTR_FORK 1 + +typedef enum xfs_dinode_fmt { + XFS_DINODE_FMT_DEV, + XFS_DINODE_FMT_LOCAL, + XFS_DINODE_FMT_EXTENTS, + XFS_DINODE_FMT_BTREE, +...