[PULL] string handling, unit test & Solaris fixes

Alan Coopersmith alan.coopersmith at oracle.com
Mon Nov 7 16:46:47 PST 2011


The following changes since commit f0d50cc6651dce3a8a3cd3fb84210aa92b139763:

   Fix vesa's VBE PanelID interpretation (2011-11-06 16:41:44 -0800)

are available in the git repository at:
   git://people.freedesktop.org/~alanc/xserver.git master

Alan Coopersmith (25):
       Don't fallback to wsfb or fbdev on Solaris
       Don't require ld -wrap for tests that don't need it
       Enable memory checking during unit testing
       Remove a couple Error() instances left behind by 09dbfcb0ad7b6c8
       Fix Sun compiler check that got turned around
       Add fallback implementation of strndup()
       Convert some malloc + strncpy pairs into strndup calls
       Convert AllocXTestDevice to use asprintf
       Convert strncpy/strncat to strlcpy/strlcat
       matchDriverFromFiles: use one snprintf instead of strncpy/cat series
       Convert dmxSetDefaultFontPath to use strdup instead of malloc+strncpy
       Convert DetermineClientCmd to use strdup instead of malloc+strncpy
       Convert ProcRenderQueryFilters to use memcpy instead of strncpy
       Make XIGetKnownProperty take a const char * argument
       Remove unnecessary variable rtrn in XkbKeysymText
       AuthAudit: clean up string handling calls
       LogVMessageVerb: Fix const mismatch warning
       Convert glx/single2.c:DoGetString() to use asprintf()
       Remove bad code from DoShowOptions (Xorg -showopts handler)
       Move DoShowOptions to xf86Configure.c, delete xf86ShowOpts.c
       Remove xf86FormatPciBusNumber from API, inline the one place its used
       Convert a bunch of sprintf to snprintf calls
       Reduce unnecessary string copying in xkbtext routines
       Mark arguments to fopen/popen/system wrappers as const char *
       Mark XKB char * as const to clean up gcc -Wwrite-strings warnings

  Xext/xtest.c                           |    7 +-
  Xext/xvmc.c                            |    6 +-
  Xi/xiproperty.c                        |    2 +-
  configure.ac                           |    4 +-
  dix/atom.c                             |    7 +-
  exa/exa_render.c                       |    6 +-
  glx/single2.c                          |    4 +-
  hw/dmx/config/dmxcompat.c              |    3 +-
  hw/dmx/config/scanner.l                |    2 +-
  hw/dmx/dmxinit.c                       |   13 +--
  hw/dmx/examples/ev.c                   |    4 +-
  hw/dmx/glxProxy/glxscreens.c           |    5 +-
  hw/kdrive/ephyr/ephyrhostvideo.c       |    9 +-
  hw/kdrive/linux/linux.c                |    2 +-
  hw/kdrive/src/kinput.c                 |    4 +-
  hw/vfb/InitOutput.c                    |    3 +-
  hw/xfree86/common/Makefile.am          |    2 +-
  hw/xfree86/common/xf86.h               |    1 -
  hw/xfree86/common/xf86AutoConfig.c     |    2 +
  hw/xfree86/common/xf86Config.c         |    3 +-
  hw/xfree86/common/xf86Configure.c      |   51 +++++++++
  hw/xfree86/common/xf86Option.c         |    6 +-
  hw/xfree86/common/xf86ShowOpts.c       |  130 ----------------------
  hw/xfree86/common/xf86Xinput.c         |    5 +-
  hw/xfree86/common/xf86pciBus.c         |   28 ++---
  hw/xfree86/common/xf86sbusBus.c        |    2 +-
  hw/xfree86/fbdevhw/fbdevhw.c           |    6 +-
  hw/xfree86/os-support/bsd/bsd_init.c   |   10 +-
  hw/xfree86/os-support/bus/Sbus.c       |   12 +-
  hw/xfree86/os-support/linux/lnx_init.c |    2 +-
  hw/xfree86/parser/scan.c               |    6 +-
  hw/xfree86/x86emu/debug.c              |    2 +-
  hw/xquartz/xpr/dri.c                   |    3 +-
  include/dix-config.h.in                |    3 +
  include/exevents.h                     |    2 +-
  include/misc.h                         |    2 +-
  include/os.h                           |   10 +-
  include/xkbfile.h                      |    4 +-
  include/xkbsrv.h                       |    4 +-
  os/Makefile.am                         |    4 +
  os/access.c                            |   10 +-
  os/client.c                            |    8 +-
  os/connection.c                        |   15 +--
  os/log.c                               |    2 +-
  os/osinit.c                            |    2 +-
  os/rpcauth.c                           |    7 +-
  os/strndup.c                           |   49 ++++++++
  os/utils.c                             |   14 +--
  os/xdmcp.c                             |    4 +-
  randr/rrinfo.c                         |    2 +-
  render/render.c                        |    4 +-
  test/Makefile.am                       |    5 +-
  test/string.c                          |   63 +++++++++++
  test/xi2/Makefile.am                   |   10 ++
  xkb/ddxList.c                          |    2 +-
  xkb/ddxLoad.c                          |    6 +-
  xkb/maprules.c                         |    5 +-
  xkb/xkbInit.c                          |    4 +-
  xkb/xkbfmisc.c                         |    2 +-
  xkb/xkbout.c                           |    6 +-
  xkb/xkbtext.c                          |  189 ++++++++++++++++----------------
  61 files changed, 405 insertions(+), 385 deletions(-)
  delete mode 100644 hw/xfree86/common/xf86ShowOpts.c
  create mode 100644 os/strndup.c
  create mode 100644 test/string.c

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list