mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/xfree86/devfs-vc.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. --- xfree86-cvs-2003-01-08/programs/Xserver/hw/kdrive/linux/linux.c~ 2002-10-08 23:27:55.000000000 +0200
  23. +++ xfree86-cvs-2003-01-08/programs/Xserver/hw/kdrive/linux/linux.c 2003-01-11 21:26:19.000000000 +0100
  24. @@ -79,10 +79,10 @@
  25. vtno = kdVirtualTerminal;
  26. else
  27. {
  28. - if ((fd = open("/dev/tty0",O_WRONLY,0)) < 0)
  29. + if ((fd = open("/dev/vc/0",O_WRONLY,0)) < 0)
  30. {
  31. FatalError(
  32. - "LinuxInit: Cannot open /dev/tty0 (%s)\n",
  33. + "LinuxInit: Cannot open /dev/vc/0 (%s)\n",
  34. strerror(errno));
  35. }
  36. if ((ioctl(fd, VT_OPENQRY, &vtno) < 0) ||
  37. @@ -93,7 +93,7 @@
  38. }
  39. close(fd);
  40. - sprintf(vtname,"/dev/tty%d",vtno); /* /dev/tty1-64 */
  41. + sprintf(vtname,"/dev/vc/%d",vtno); /* /dev/vc/1-64 */
  42. if ((LinuxConsoleFd = open(vtname, O_RDWR|O_NDELAY, 0)) < 0)
  43. {
  44. @@ -110,7 +110,7 @@
  45. *
  46. * Why is this needed?
  47. */
  48. - LinuxCheckChown ("/dev/tty0");
  49. + LinuxCheckChown ("/dev/vc/0");
  50. /*
  51. * Linux doesn't switch to an active vt after the last close of a vt,
  52. * so we do this ourselves by remembering which is active now.
  53. @@ -441,7 +441,7 @@
  54. activeVT = -1;
  55. }
  56. close(LinuxConsoleFd); /* make the vt-manager happy */
  57. - fd = open ("/dev/tty0", O_RDWR|O_NDELAY, 0);
  58. + fd = open ("/dev/vc/0", O_RDWR|O_NDELAY, 0);
  59. if (fd >= 0)
  60. {
  61. ioctl (fd, VT_GETSTATE, &vts);