[PATCH 1/9] util: Add support for QUOTE_0_TERMINATED in user_style to ptrintstr_ex

2016-10-11 Thread Eugene Syromyatnikov
This enables printing size-limited (expectedly) ASCIZ strings. --- util.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/util.c b/util.c index 23a5fdb..00148d4 100644 --- a/util.c +++ b/util.c @@ -820,13 +820,13 @@ printstr_ex(struct tcb *tcp, long addr,

[PATCH 07/11] util: Add getarg_ull/getarg_ll functions

2016-09-21 Thread Eugene Syromyatnikov
These allow retrieving specific argument in full taking into account peculiarities of runtimes which employ EXT_ARG (x32, for example). * defs.h: Add declarations of getarg_ull, getarg_ll. * util.c (getarg_ull): New function. (getarg_ll): Likewise. (printargs): Use getarg_ull for argument retr

Re: [PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-04-28 Thread Dmitry V. Levin
On Thu, Apr 28, 2016 at 11:26:59AM -0400, Jeff Mahoney wrote: > Some ioctls have flags fields that are 64-bit. A 32-bit val means > these flags will never be matched or printed. > > * util.c: > (xlookup) Use uint64_t for val. > (xlat_search) Likewise. > (printxvals) Likewise. > (addflags6

[PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-04-28 Thread Jeff Mahoney
Some ioctls have flags fields that are 64-bit. A 32-bit val means these flags will never be matched or printed. * util.c: (xlookup) Use uint64_t for val. (xlat_search) Likewise. (printxvals) Likewise. (addflags64) New function. (printflags64) New function. (sprintflags64) New function

Re: [PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-03-31 Thread Dmitry V. Levin
On Thu, Mar 31, 2016 at 12:34:16AM -0400, Jeff Mahoney wrote: > -extern const char *xlookup(const struct xlat *, const unsigned int); > -extern const char *xlat_search(const struct xlat *, const size_t, const > unsigned int); > +extern const char *xlookup(const struct xlat *, const uint64_t); > +e

[PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-03-30 Thread Jeff Mahoney
Some ioctls have flags fields that are 64-bit. A 32-bit val means these flags will never be matched or printed. * util.c: (xlookup) Use uint64_t for val. (xlat_search) Likewise. (printxvals) Likewise. (addflags64) New function. (printflags64) New function. (sprintflags64) New function

Re: [PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-03-30 Thread Dmitry V. Levin
On Wed, Mar 30, 2016 at 10:47:49PM -0400, Jeff Mahoney wrote: > On 3/30/16 9:48 PM, Dmitry V. Levin wrote: > > On Wed, Mar 30, 2016 at 09:19:25PM -0400, Jeff Mahoney wrote: > >> Some ioctls have flags fields that are 64-bit. A 32-bit val means > >> these flags will never be matched or printed. [..

Re: [PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-03-30 Thread Jeff Mahoney
On 3/30/16 9:48 PM, Dmitry V. Levin wrote: > On Wed, Mar 30, 2016 at 09:19:25PM -0400, Jeff Mahoney wrote: >> Some ioctls have flags fields that are 64-bit. A 32-bit val means >> these flags will never be matched or printed. Thanks for the review. TBH, I expected there to be some discussion on t

Re: [PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-03-30 Thread Dmitry V. Levin
On Wed, Mar 30, 2016 at 09:19:25PM -0400, Jeff Mahoney wrote: > Some ioctls have flags fields that are 64-bit. A 32-bit val means > these flags will never be matched or printed. struct xlat is used for various kinds of thing all over the code, and this tiny change of type might have unforeseen co

[PATCH 1/3] util: change type of struct xlat.val to uint64_t

2016-03-30 Thread Jeff Mahoney
Some ioctls have flags fields that are 64-bit. A 32-bit val means these flags will never be matched or printed. * util.c: (xlookup) Use uint64_t for val. (xlat_search) Likewise. (printxvals) Likewise. (addflags) Use uint64_t for val and print with PRIx64 . (printflags) Likewise. (spri

[PATCH] util: fix building when glibc has a stub process_vm_readv

2012-05-04 Thread Mike Frysinger
If you have a newer glibc which provides process_vm_readv, but it is built against older kernel headers which lack __NR_process_vm_readv, the library will contain a stub implementation that just returns ENOSYS. Autoconf checks for this case explicitly and will declare it as unavailable. So we end

Re: [PATCH] util: check for process_vm_readv in C library

2012-02-19 Thread Dmitry V. Levin
On Thu, Feb 16, 2012 at 01:28:01PM -0500, Mike Frysinger wrote: > On Thursday 16 February 2012 11:55:06 Dmitry V. Levin wrote: > > A ChangeLog-style entry is missing in the commit message, > > but the commit is already pushed... > > blah, sorry. i started to look at `git log` to look at the style

Re: [PATCH] util: check for process_vm_readv in C library

2012-02-16 Thread Mike Frysinger
On Thursday 16 February 2012 11:55:06 Dmitry V. Levin wrote: > A ChangeLog-style entry is missing in the commit message, > but the commit is already pushed... blah, sorry. i started to look at `git log` to look at the style needed for the changelog, but then noticed something in my commit i had

Re: [PATCH] util: check for process_vm_readv in C library

2012-02-16 Thread Dmitry V. Levin
On Tue, Feb 14, 2012 at 02:59:58PM +0100, Denys Vlasenko wrote: > On 02/14/2012 05:56 AM, Mike Frysinger wrote: > > glibc-2.15 provides process_vm_readv, so trying to provide this ourselves > > with that version fails: > > util.c:797:16: error: static declaration of 'process_vm_readv' > >

Re: [PATCH] util: check for process_vm_readv in C library

2012-02-14 Thread Denys Vlasenko
On 02/14/2012 05:56 AM, Mike Frysinger wrote: > glibc-2.15 provides process_vm_readv, so trying to provide this ourselves > with that version fails: > util.c:797:16: error: static declaration of 'process_vm_readv' > follows non-static declaration > /usr/include/bits/uio.h:

[PATCH] util: check for process_vm_readv in C library

2012-02-13 Thread Mike Frysinger
glibc-2.15 provides process_vm_readv, so trying to provide this ourselves with that version fails: util.c:797:16: error: static declaration of 'process_vm_readv' follows non-static declaration /usr/include/bits/uio.h:58:16: note: previous declaration of

util

2009-02-14 Thread Cornel
Title: util      Evrika Group - cursuri de perfectionare : - contabilitate costul cursului este de 300 ron cu incepere din 23 februarie 2009  . - expert fiscal  costul cursului este de 1000 ron cu incepere in 04 martie 2009. - inspector protectia

util

2008-12-18 Thread Cornel
Title: util      Evrika Group - cursuri de perfectionare : - contabilitate costul cursului este de 300 ron cu incepere din 25 ianuarie 2009  . - expert fiscal  costul cursului este de 1000 ron cu incepere in 21 ianuarie 2009. - inspector protectia

util

2008-11-06 Thread Cornel
Title: util      Evrika Group - cursuri de perfectionare : - contabilitate costul cursului este de 300 ron cu incepere din 10 noiembrie 2008  . - expert fiscal  costul cursului este de 1000 ron cu incepere in 3 decembrie 2008. - inspector protectia

util

2008-10-23 Thread CORNEL
Evrika Group - cursuri de perfectionare : - contabilitate costul cursului este de 300 ron cu incepere din 10 noiembrie 2008 . - expert fiscal costul cursului este de 1000 ron cu incepere in 01 noiembrie 2008. - inspector protectia muncii costul cursului este de 300 ron cu incepere din