home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: WPS_PM / WPS_PM.zip / console.zip / Console / src / common / syslib.h < prev   
C/C++ Source or Header  |  1997-07-30  |  2KB  |  51 lines

  1. /******************************************************************************\
  2. |*                                                                            *|
  3. |* Operating system-related functions: header file                            *|
  4. |* Copyright (C) 1997 by FRIENDS software                                     *|
  5. |* All Rights Reserved                                                        *|
  6. |* Portability: OS/2                                                          *|
  7. |*                                                                            *|
  8. |* This program is free software; you can redistribute it and/or modify       *|
  9. |* it under the terms of the GNU General Public License as published by       *|
  10. |* the Free Software Foundation; either version 2 of the License, or          *|
  11. |* (at your option) any later version.                                        *|
  12. |*                                                                            *|
  13. |* This program is distributed in the hope that it will be useful,            *|
  14. |* but WITHOUT ANY WARRANTY; without even the implied warranty of             *|
  15. |* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *|
  16. |* GNU General Public License for more details.                               *|
  17. |*                                                                            *|
  18. |* You should have received a copy of the GNU General Public License          *|
  19. |* along with this program; if not, write to the Free Software                *|
  20. |* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  *|
  21. |*                                                                            *|
  22. \******************************************************************************/
  23.  
  24. #ifndef __SYSLIB_H__
  25. #define __SYSLIB_H__
  26.  
  27. #ifdef __cplusplus
  28.  extern "C" {
  29. #endif
  30.  
  31. // for debugging
  32. #define brk __asm__("int $3")
  33.  
  34. /* Each of the following routines returns a pre-allocated pointer to char[] */
  35. /* You should take care to free it yourself after you`re done with results  */
  36.  
  37. /* Return a pointer to raw environment */
  38. char *Environment();
  39.  
  40. /* Return fully-qualified program pathname */
  41. char *SourceName();
  42.  
  43. /* Return fully-qualified program path */
  44. char *SourcePath();
  45.  
  46. #ifdef __cplusplus
  47.  }
  48. #endif
  49.  
  50. #endif __SYSLIB_H__
  51.