[Python-checkins] python/dist/src/Doc/lib libos.tex,1.97,1.98

loewis@users.sourceforge.net loewis@users.sourceforge.net
Thu, 10 Oct 2002 07:27:32 -0700


Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv3565/Doc/lib

Modified Files:
	libos.tex 
Log Message:
Patch #569139: Implementation of major, minor and makedev.


Index: libos.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libos.tex,v
retrieving revision 1.97
retrieving revision 1.98
diff -C2 -d -r1.97 -r1.98
*** libos.tex	5 Oct 2002 09:46:48 -0000	1.97
--- libos.tex	10 Oct 2002 14:27:30 -0000	1.98
***************
*** 701,711 ****
  \end{funcdesc}
  
! \begin{funcdesc}{mknod}{path\optional{, mode=0600, major, minor}}
  Create a filesystem node (file, device special file or named pipe)
! named filename. mode specifies both the permissions to use and the
! type of node to be created, being combined (bitwise OR) with one of
! S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO (those constants are available
! in \module{stat}). For S_IFCHR and S_IFBLK, major and minor define the
! newly created device special file, otherwise they are ignored.
  
  \versionadded{2.3}
--- 701,730 ----
  \end{funcdesc}
  
! \begin{funcdesc}{mknod}{path\optional{, mode=0600, device}}
  Create a filesystem node (file, device special file or named pipe)
! named filename. \var{mode} specifies both the permissions to use and
! the type of node to be created, being combined (bitwise OR) with one
! of S_IFREG, S_IFCHR, S_IFBLK, and S_IFIFO (those constants are
! available in \module{stat}). For S_IFCHR and S_IFBLK, \var{device}
! defines the newly created device special file (probably using
! \function{os.makedev()}), otherwise it is ignored.
! 
! \versionadded{2.3}
! \end{funcdesc}
! 
! \begin{funcdesc}{major}{device}
! Extracts a device major number from a raw device number.
! 
! \versionadded{2.3}
! \end{funcdesc}
! 
! \begin{funcdesc}{minor}{device}
! Extracts a device minor number from a raw device number.
! 
! \versionadded{2.3}
! \end{funcdesc}
! 
! \begin{funcdesc}{makedev}{major, minor}
! Composes a raw device number from the major and minor device numbers.
  
  \versionadded{2.3}