Date: Fri, 24 Oct 2008 22:29:22 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 151883 for review Message-ID: <200810242229.m9OMTMtm016591@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 ---*/ /*--------------------------------------------------------------------*/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810242229.m9OMTMtm016591>