On Tue, 2014-03-18 at 14:35 +0100, [email protected] wrote: > Hi! > > +#include "config.h" > > +#include "test.h" > > +#include "usctest.h" > > + > > +TCID_DEFINE(modify_ldt03); > > This macro is primarily used to define right TCID when compiling two > tests from one source (the _16 ones). There is no need to use it > otherwise. >
Thank you for your review. :) Best regards, Zeng > > +int TST_TOTAL = 1; > > + > > +#if defined(__i386__) && defined(HAVE_MODIFY_LDT) > > + > > +#ifdef HAVE_ASM_LDT_H > > +#include <asm/ldt.h> > > +#endif > > +extern int modify_ldt(int, void *, unsigned long); > > + > > +#include <asm/unistd.h> > > +#include <string.h> > > +#include <sys/wait.h> > > +#include <errno.h> > > +#include "safe_macros.h" > > + > > +static unsigned long bytecount = 10; > > Where did you get this number from? Is this sizeof(struct user_desc) ? > > > +static void *ptr; > > Do you need to allocate the memory, wouldn't char buf[bytecount] do the > same? > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
