~ubuntu-branches/ubuntu/edgy/xorg-server/edgy-updates

« back to all changes in this revision

Viewing changes to hw/xfree86/common/xf86Init.c

  • Committer: Bazaar Package Importer
  • Author(s): Rodrigo Parra Novo
  • Date: 2006-07-25 20:06:28 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060725200628-gjmmd9gxfxdc4ejs
Tags: 1:1.1.1-0ubuntu1
* New Upstream version
* Changed Build-Depends from mesa-swrast-source to mesa-swx11-source,
  following Debian package nomenclature
* Re-did 12_security_policy_in_etc.diff for 1.1.1
* Dropped 15_security_allocate_local.diff (applied upstream)
* Dropped 16_SECURITY_setuid.diff (applied upstream)
* Dropped 000_ubuntu_fix_read_kernel_mapping.patch (applied upstream)
* Dropped 002_ubuntu_fix_for_certain_intel_chipsets.patch (applied upstream)
* Updated versioned Build-Depends on mesa-swx11-source to version
  6.5.0.cvs.20060725-0ubuntu1
* Added arrayobj.c, arrayobj.h, bitset.h & rbadaptors.h to
  GL/symlink-mesa.sh (linked from mesa-swx11-source)
* Added arrayobj.c to default build target on GL/mesa/main

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* $XFree86: xc/programs/Xserver/hw/xfree86/common/xf86Init.c,v 3.212 2004/01/27 01:31:45 dawes Exp $ */
2
 
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Init.c,v 1.29 2005/12/14 20:11:16 ajax Exp $ */
 
2
/* $XdotOrg: xserver/xorg/hw/xfree86/common/xf86Init.c,v 1.33.2.1 2006/04/04 14:16:56 ajax Exp $ */
3
3
 
4
4
/*
5
5
 * Loosely based on code bearing the following copyright:
1170
1170
{
1171
1171
  static Bool beenHere = FALSE;
1172
1172
 
1173
 
  /* xf86WrapperInit() is called directly from OsInit() */
 
1173
  xf86WrapperInit();
 
1174
 
1174
1175
#ifdef SIGCHLD
1175
1176
  signal(SIGCHLD, SIG_DFL);     /* Need to wait for child processes */
1176
1177
#endif
1660
1661
    xf86silkenMouseDisableFlag = TRUE;
1661
1662
    return 1;
1662
1663
  }
 
1664
#ifdef HAVE_ACPI
1663
1665
  if (!strcmp(argv[i], "-noacpi"))
1664
1666
  {
1665
1667
    xf86acpiDisableFlag = TRUE;
1666
1668
    return 1;
1667
1669
  }
 
1670
#endif
1668
1671
  if (!strcmp(argv[i], "-scanpci"))
1669
1672
  {
1670
1673
    DoScanPci(argc, argv, i);
1672
1675
  if (!strcmp(argv[i], "-probe"))
1673
1676
  {
1674
1677
    xf86DoProbe = TRUE;
1675
 
#if 0
1676
 
    DoProbe(argc, argv, i);
1677
 
#endif
1678
1678
    return 1;
1679
1679
  }
1680
1680
  if (!strcmp(argv[i], "-configure"))
1831
1831
  ErrorF("\nRelease Date: %s\n", XORG_DATE);
1832
1832
  ErrorF("X Protocol Version %d, Revision %d, %s\n",
1833
1833
         X_PROTOCOL, X_PROTOCOL_REVISION, XORG_RELEASE );
1834
 
  ErrorF("Build Operating System:%s%s\n", OSNAME, OSVENDOR);
 
1834
  ErrorF("Build Operating System: %s %s\n", OSNAME, OSVENDOR);
1835
1835
#ifdef HAS_UTSNAME
1836
1836
  {
1837
1837
    struct utsname name;
1905
1905
          FatalError("xf86RunVtInit: fork failed (%s)\n", strerror(errno));
1906
1906
          break;
1907
1907
      case 0:  /* child */
1908
 
          setuid(getuid());
 
1908
          if (setuid(getuid()) == -1) {
 
1909
              xf86Msg(X_ERROR, "xf86RunVtInit: setuid failed (%s)\n",
 
1910
                         strerror(errno));
 
1911
              exit(255);
 
1912
          }
1909
1913
          /* set stdin, stdout to the consoleFd */
1910
1914
          for (i = 0; i < 2; i++) {
1911
1915
            if (xf86Info.consoleFd != i) {
1971
1975
 
1972
1976
/* Pixmap format stuff */
1973
1977
 
1974
 
PixmapFormatPtr
 
1978
_X_EXPORT PixmapFormatPtr
1975
1979
xf86GetPixFormat(ScrnInfoPtr pScrn, int depth)
1976
1980
{
1977
1981
    int i;
2016
2020
    return NULL;
2017
2021
}
2018
2022
 
2019
 
int
 
2023
_X_EXPORT int
2020
2024
xf86GetBppFromDepth(ScrnInfoPtr pScrn, int depth)
2021
2025
{
2022
2026
    PixmapFormatPtr format;