From owner-p4-projects@FreeBSD.ORG Fri Oct 24 22:29:23 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4EB5C106567A; Fri, 24 Oct 2008 22:29:23 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12EC1106566B for ; Fri, 24 Oct 2008 22:29:23 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 01A588FC08 for ; Fri, 24 Oct 2008 22:29:23 +0000 (UTC) (envelope-from peter-gmail@wemm.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9OMTMVi016593 for ; Fri, 24 Oct 2008 22:29:22 GMT (envelope-from peter-gmail@wemm.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9OMTMtm016591 for perforce@freebsd.org; Fri, 24 Oct 2008 22:29:22 GMT (envelope-from peter-gmail@wemm.org) Date: Fri, 24 Oct 2008 22:29:22 GMT Message-Id: <200810242229.m9OMTMtm016591@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter-gmail@wemm.org using -f From: Peter Wemm To: Perforce Change Reviews Cc: Subject: PERFORCE change 151883 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Oct 2008 22:29:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=151883 Change 151883 by peter@peter_cheese on 2008/10/24 22:29:19 Add uuidgen Affected files ... .. //depot/projects/valgrind/coregrind/m_syswrap/priv_syswrap-freebsd.h#9 edit .. //depot/projects/valgrind/coregrind/m_syswrap/syswrap-freebsd.c#16 edit .. //depot/projects/valgrind/include/vki/vki-freebsd.h#6 edit Differences ... ==== //depot/projects/valgrind/coregrind/m_syswrap/priv_syswrap-freebsd.h#9 (text+ko) ==== @@ -249,6 +249,7 @@ DECL_TEMPLATE(freebsd, sys_symlinkat); DECL_TEMPLATE(freebsd, sys_unlinkat); DECL_TEMPLATE(freebsd, sys_posix_openpt); +DECL_TEMPLATE(freebsd, sys_uuidgen); #endif // __PRIV_SYSWRAP_FREEBSD_H /*--------------------------------------------------------------------*/ ==== //depot/projects/valgrind/coregrind/m_syswrap/syswrap-freebsd.c#16 (text+ko) ==== @@ -2200,6 +2200,21 @@ PRE_REG_READ0(long, "lkmnosys8"); } +PRE(sys_uuidgen) +{ + PRINT("sys_uuidgen ( %#lx, %ld )", ARG1,ARG2); + PRE_REG_READ2(long, "uuidgen", + struct vki_uuid *, store, int, count); + PRE_MEM_WRITE( "uuidgen(store)", ARG1, ARG2 * sizeof(struct vki_uuid)); +} + +POST(sys_uuidgen) +{ + if (SUCCESS) + POST_MEM_WRITE( ARG1, ARG2 * sizeof(struct vki_uuid) ); +} + + PRE(sys_shmget) { PRINT("sys_shmget ( %ld, %ld, %ld )",ARG1,ARG2,ARG3); @@ -3123,7 +3138,7 @@ // kenv 390 // lchflags 391 - // uuidgen 392 + BSDXY(__NR_uuidgen, sys_uuidgen), // 392 BSDXY(__NR_sendfile, sys_sendfile), // 393 // mac_syscall 394 // getfsstat 395 ==== //depot/projects/valgrind/include/vki/vki-freebsd.h#6 (text+ko) ==== @@ -1726,6 +1726,20 @@ struct vki_acl_entry acl_entry[VKI_ACL_MAX_ENTRIES]; }; + +//---------------------------------------------------------------------- +// From sys/uuid.h +//---------------------------------------------------------------------- + +struct vki_uuid { + vki_uint32_t time_low; + vki_uint16_t time_mid; + vki_uint16_t time_hi_and_version; + vki_uint8_t clock_seq_hi_and_reserved; + vki_uint8_t clock_seq_low; + vki_uint8_t node[6]; +}; + /*--------------------------------------------------------------------*/ /*--- end ---*/ /*--------------------------------------------------------------------*/