home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / thesrc15.zip / bsd.c < prev    next >
C/C++ Source or Header  |  1993-11-17  |  5KB  |  135 lines

  1. /***********************************************************************/
  2. /* BSD.C -                                                             */
  3. /* This file contains pseudo SystemV functions that are missing in BSD.*/
  4. /***********************************************************************/
  5. /*
  6.  * THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  7.  * Copyright (C) 1991-1993 Mark Hessling
  8.  *
  9.  * This program is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU General Public License as
  11.  * published by the Free Software Foundation; either version 2 of
  12.  * the License, or any later version.
  13.  *
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17.  * General Public License for more details.
  18.  *
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to:
  21.  *
  22.  *    The Free Software Foundation, Inc.
  23.  *    675 Mass Ave,
  24.  *    Cambridge, MA 02139 USA.
  25.  *
  26.  *
  27.  * If you make modifications to this software that you feel increases
  28.  * it usefulness for the rest of the community, please email the
  29.  * changes, enhancements, bug fixes as well as any and all ideas to me.
  30.  * This software is going to be maintained and enhanced as deemed
  31.  * necessary by the community.
  32.  *
  33.  * Mark Hessling                     email: M.Hessling@gu.edu.au
  34.  * 36 David Road                     Phone: +61 7 849 7731
  35.  * Holland Park                      Fax:   +61 7 875 5314
  36.  * QLD 4121
  37.  * Australia
  38.  */
  39.  
  40. /*
  41. $Header: C:\THE\RCS\bsd.c 1.4 1993/09/01 16:25:31 MH Interim MH $
  42. */
  43.  
  44. #include <stdio.h>
  45.  
  46. #include "the.h"
  47. #include "proto.h"
  48. /*-------------------------- external data ----------------------------*/
  49. extern VIEW_DETAILS *vd_current,*vd_first;
  50. extern char current_file;                   /* pointer to current file */
  51. /*---------------------- function definitions -------------------------*/
  52. /***********************************************************************/
  53. int reset_shell_mode()
  54. /***********************************************************************/
  55. {
  56. /*--------------------------- local data ------------------------------*/
  57. /*--------------------------- processing ------------------------------*/
  58.  return(0);
  59. }
  60. /***********************************************************************/
  61. int reset_prog_mode()
  62. /***********************************************************************/
  63. {
  64. /*--------------------------- local data ------------------------------*/
  65. /*--------------------------- processing ------------------------------*/
  66.  return(0);
  67. }
  68. /***********************************************************************/
  69. int doupdate()
  70. /***********************************************************************/
  71. {
  72. /*--------------------------- local data ------------------------------*/
  73.  unsigned short y,x;
  74. /*--------------------------- processing ------------------------------*/
  75.  getyx(CURRENT_WINDOW,y,x);
  76.  refresh();
  77.  wmove(CURRENT_WINDOW,y,x);
  78.  wrefresh(CURRENT_WINDOW);
  79.  return(0);
  80. }
  81. /***********************************************************************/
  82. int wnoutrefresh(win)
  83. WINDOW *win;
  84. /***********************************************************************/
  85. {
  86. /*--------------------------- local data ------------------------------*/
  87. /*--------------------------- processing ------------------------------*/
  88.  wrefresh(win);
  89.  return(0);
  90. }
  91. /***********************************************************************/
  92. int notimeout(win,bf)
  93. WINDOW *win;
  94. bool bf;
  95. /***********************************************************************/
  96. {
  97. /*--------------------------- local data ------------------------------*/
  98. /*--------------------------- processing ------------------------------*/
  99.  return(0);
  100. }
  101. /***********************************************************************/
  102. int wattrset(win,attrs)
  103. WINDOW *win;
  104. long attrs;
  105. /***********************************************************************/
  106. {
  107. /*--------------------------- local data ------------------------------*/
  108. /*--------------------------- processing ------------------------------*/
  109.  if (attrs == A_NORMAL)
  110.     wstandend(win);
  111.  else
  112.     wstandout(win);
  113.  return(0);
  114. }
  115. #ifdef VMS
  116. /***********************************************************************/
  117. FILE *popen(str,mode)
  118. char *str,*mode;
  119. /***********************************************************************/
  120. {
  121. /*--------------------------- local data ------------------------------*/
  122. /*--------------------------- processing ------------------------------*/
  123.  return(FILE *)(0);
  124. }
  125. /***********************************************************************/
  126. int pclose(fp)
  127. FILE *fp;
  128. /***********************************************************************/
  129. {
  130. /*--------------------------- local data ------------------------------*/
  131. /*--------------------------- processing ------------------------------*/
  132.  return(0);
  133. }
  134. #endif
  135.