bdos man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     BDOS(DOS)		      XENIX System V		     BDOS(DOS)

     Name
	  bdos - Invokes a DOS system call.

     Syntax
	  #include <dos.h>

	  int bdos (dosfn, dosdx, dosal);
	  int dosfn;
	  unsigned int dosdx;
	  unsigned int dosal;

     Description
	  The bdos function invokes the MS-DOS system call specified
	  by dosfn after placing the values specified by dosdx and
	  dosal in the DX and AL registers, respectively. bdos
	  executes an INT 21H instruction to invoke the system call.
	  When the system call returns, bdos returns the content of
	  the AX register.

	  bdos is intended to be used to invoke DOS system calls that
	  either take no arguments or only take arguments in the DX
	  (DH,DL) and/or AL registers.

     Return Value
	  bdos returns the value of the AX register after the system
	  call has completed.

     See Also
	  intdos(DOS), intdosx(DOS)

     Example
	  #include <bdos.h>

	  char *buffer = "Enter file name:$";

	       /* AL is not needed, so 0 is used */ bdos (9,

     Page 1					      (printed 8/7/87)

     BDOS(DOS)		      XENIX System V		     BDOS(DOS)

	  (unsigned) buffer, 0);

     Notes
	  This call should not be used to invoke system calls that
	  indicate errors by setting the carry flag.  Since C programs
	  do not have access to this flag, the status of the return
	  value cannot be determined.  The intdos function should be
	  used in these cases.

	  This call must be compiled with the -dos flag.

     Page 2					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net