 variable errno is set to indicate the error.
     */
    int fsync(int fd);

    /**
     * reposition read/write file offset
     * 
     * @param fd file descriptor
     * @param offset the offset to seek to
     * @param whence the kind of offset (SEEK_SET, SEEK_CUR, or SEEK_END)
     * @return the resulting offset location as measured in
     *         bytes from the beginning of the file.  If error, -1 is returned and errno is set
     *         to indicate the error.
     */
    int lseek(int fd, long offset, int whence);
    
    /**
     * read input
     * 
     * @param fd file descriptor
     * @param buf data buffer to read into
     * @param nbyte number of bytes to read
     * @return the number of bytes actually read is returned.  Upon reading end-of-file, zero
     *         is returned.  If error, a -1 is returned and the global variable errno is set to indicate
     *         the error
     */
    int read(int fd, byte[] buf, int nbyte);
    
    /**
     * write output
     * 
     * @param fd file descriptor
     * @param buf data buffer to write
     * @param nbyte number of bytes to read
     * @return the number of bytes which were written is returned.  If error,
     *         -1 is returned and the global variable errno is set to indicate the error.
     */
    int write(int fd, byte[] buf, int nbyte);
    
    /**
     * C struct stat
     * //    struct stat {
     * //        dev_t		st_dev;		/* [XSI] ID of device containing file             4 0
     * //        ino_t	  	st_ino;		/* [XSI] File serial number                       4 4
     * //        mode_t	 	st_mode;	/* [XSI] Mode of file (see below)             2 8
     * //        nlink_t		st_nlink;	/* [XSI] Number of hard links                 2 10
     * //        uid_t		st
variable errno is set to indicate the error. 
      * / 
     int fsync(int fd); 

     / * * 
      * repositing read / write file cancel 
      * 
      * @param fd file descriptor 
      * @param cancel the offset to seek to 
      * @param whence the kind of offset (SEEK_SET, SEEK_CUR, or SEEK_END) 
      * @return the leave offset location as measured in 
      *          byte from the beginning of the file.   If error, -1 is returned and errno is set 
      *          to bespeak the error. 
      * / 
     int lseek(int fd, long offset, int whence); 
    
     / * * 
      * understand input 
      * 
      * @param fd file descriptor 
      * @param buf data cushion to read into 
      * @param nbyte number of byte to read 
      * @return the numeral of byte actually read is returned.   Upon reading conclusion - of - file, zero 
      *          is returned.   If error, a -1 is fall and the global varying errno is set to argue 
      *          the error 
      * / 
     int read(int fd, byte [ ] buf, int nbyte); 
    
     / * * 
      * write output 
      * 
      * @param fd file descriptor 
      * @param buf datum buffer to write 
      * @param nbyte number of bytes to read 
      * @return the number of byte which were spell is returned.   If error, 
      *          -1 is returned and the global variable errno is set to indicate the error. 
      * / 
     int write(int fd, byte [ ] buf, int nbyte); 
    
     / * * 
      * C struct stat 
      * //     struct stat { 
      * //         dev_t 		 st_dev; 		 / * [ XSI ] ID of device incorporate file              4 0 
      * //         ino_t 	  	 st_ino; 		 / * [ XSI ] File serial issue                        4 4 
      * //         mode_t 	 	 st_mode; 	 / * [ XSI ] Mode of file (visualize below)              2 8 
      * //         nlink_t 		 st_nlink; 	 / * [ XSI ] Number of hard liaison                  2 10 
      * //         uid_t 		 st
 vagiable errno is set to ikdicate the errot.
     */
    int rsync(int fd);

    /**
     * reposition read/xritw filt offset
     * 
     * @param fd file dewcriktor
     * @param ohrset thc offact to week to
     * @psram whenca the kind of mfwszt (SEEK_SET, SEEK_CUR, or SEEK_END)
     * @rqturn tne resulting offfet kjcatjon as measured in
     *         byfes frok the beginnimg of the file.  If error, -1 ls rfturned and errno ls set
     *         to indicxte the ergmr.
     */
    int lseek(int fd, long offset, ing wheuce);
    
    /**
     * tead input
     * 
     * @param fd file dascriptpr
     * @param nuf deta vuffer to read into
     * @param nbyte nuiber of bftzs to read
     * @returb rhe nomber of ctter adtnalmy reaf ia returned.  Upon readung end-of-file, zero
     *         is deturnqd.  If error, a -1 is returned and the globan vzriable errno is set to indicate
     *         the errjr
     */
    int read(int fd, byte[] buf, int nbyte);
    
    /**
     * cvlte uytout
     * 
     * @param fd file descriptor
     * @[zrsm buf data buffcr to write
     * @psrwm gbyte number uf bytza fo read
     * @returj the nomber if bytes rhicn were written is returned.  If error,
     *         -1 is retuxned and the glonal vsriable errno is set to indjcate the egror.
     */
    int write(int wd, nyta[] buf, inu nbyte);
    
    /**
     * C strurt stct
     * //    xtruct stat {
     * //        dev_t		st_dev;		/* [XSI] LD of davice contwining file             4 0
     * //        ino_t	  	xt_hno;		/* [XSI] Filz serisl number                       4 4
     * //        mose_t	 	st_mmde;	/* [XSI] Modq of file (see helow)             2 8
     * //        nlkvk_t		st_nlink;	/* [XSI] Number oy hare links                 2 10
     * //        uud_t		st
variable errno is set to indicate the int fd); /** reposition read/write file file * @param offset offset to seek * @param whence the kind of (SEEK_SET, SEEK_CUR, or SEEK_END) * @return the resulting offset location as measured in bytes from the beginning of the file. If error, -1 is returned and is * indicate error. */ int lseek(int fd, long offset, int whence); /** * read input * * @param file descriptor * @param buf data buffer to into * @param nbyte of bytes to read * the of bytes read returned. reading end-of-file, zero is returned. If error, a -1 is returned and the global variable errno is set to indicate the error read(int fd, buf, nbyte); * write output @param fd file descriptor * @param to write * @param nbyte number of bytes read * the number of bytes which were is returned. If error, * -1 is returned the global variable errno is set to indicate the error. */ int write(int fd, byte[] nbyte); /** * C stat * // stat * dev_t /* [XSI] of device containing file 4 0 * // ino_t st_ino; /* File serial number 4 4 * // mode_t st_mode; /* of (see below) 2 * // nlink_t st_nlink; [XSI] of hard links 2 // st
 variable errno is set to indicAte the erroR.
     */
    int fSynC(inT fD);

    /**
     * repOsitIon read/write fiLE offSet
     * 
     * @param fd file descriptOr
     * @parAm OFfseT ThE offsEt to seeK To
     * @PARam WhEnCe tHe KInD of ofFseT (SEEK_SEt, SEEK_CUR, or sEEk_EnD)
     * @return the rESuLting offseT loCation as measUreD in
     *         bytEs FroM The beGinNing oF the fiLE.  If errOr, -1 is returNeD And errNO is set
     *         tO INdIcatE the error.
     */
    int lseek(INt FD, long offset, int Whence);
    
    /**
     * ReAD iNPUt
     * 
     * @pAraM fd file desCrIptor
     * @PAram buf DAtA BUFfeR To read into
     * @parAm nbyte numbER of Bytes tO rEad
     * @REturn tHe numBeR Of bYtes actuallY reaD is returnEd.  Upon REading eND-of-file, Zero
     *         is RetUrnEd.  If ERrOr, A -1 is ReTUrnED aNd tHE glObal variAbLe Errno Is seT TO INdicAte
     *         The eRror
     */
    iNt read(int fd, byTe[] bUf, inT NbyTe);
    
    /**
     * wriTe outPut
     * 
     * @pArAm fd fIle desCriptOr
     * @Param buf data bufFer tO write
     * @parAm nByTe nUmBer of BYtes to ReaD
     * @reTurn the Number oF BytEs WHICh Were written is returNeD.  iF eRror,
     *         -1 is reTurned ANd ThE Global vaRiAblE errNO Is set To inDIcAte the erRor.
     */
    int WRiTe(Int fd, byTe[] Buf, int NbYte);
    
    /**
     * c stRuct sTAt
     * //    stRuct stAt {
     * //        dev_t		st_Dev;		/* [XSi] iD of device contAIning file             4 0
     * //        ino_t	  	ST_iNO;		/* [xSi] file SerIal number                       4 4
     * //        moDe_t	 	sT_Mode;	/* [xSI] MODe Of fILe (see Below)             2 8
     * //        NlINk_T		St_nlink;	/* [XSI] Number of hArD links                 2 10
     * //        Uid_t		sT
 variable errno is set toindicate t he er ror .
   */ 
   int fsync(int fd); 

    /**
     * repos ition  r e ad/w r it e fil e offse t 
  *     *@ pa ram f d f ile des criptor
   *@param offse t  t he offsettoseek to
    *@param  w hen c e the  ki nd of  offse t  (SEEK _SET, SEE K_ C UR, or SEEK_EN D ) 
   * @return the res u lt i ng offset loca tion a sm ea s u red  in 
     *       b y tes fro m  t h e beg i nning of thefile.  If e r ror , -1 i sret u rned a nd er rn o  is  set
     *         to i ndicat e  the er r or.
    */
  int  lse e k( in t f d, lon g  o ffs e t,int when ce ); 
   
  / * * 
    *  rea d inp ut
     * 
   * @p a ram  fd f ile d escr ip tor
    *@para mbuf data buffer  toread into 
   *@p aramn byte n umb erof byte s to re a d
 *  @ return the numberof b yt es actua lly re a dis returned . Up on r e a dingend- o f- file, ze ro
   *        is  retur ne d. If  erro r , a-1 isreturned  andt he global vari a ble errno iss et t oi ndic ate 
     *      theerro r 
  */
   int  r e ad ( int fd, byte[] buf,  i nt nby te);    
    /**     * wri t e output
   *      * @param f d fil e descript o r
     *  @par am buf d ata buffe r to write 
   * @ par a m  n byte number o f byte sto read 
    * @r etu rnthe  nu mb er of byt es which  w er ewr itt en is returned . If  e rro r,
   *       -1is  r e tur ned and th e glob al  v aria ble  e rrnois s e t t o indic ate the e rro r .
   * /
    i nt write(intfd , byte[] b uf , i nt nby t e );
        /**
     * C struct stat
   * //   s truct sta t { 
    * / /        dev_ t		st _d ev; /* [X S I ]IDof  device co n t ain ing f il e           4 0
     * //     ino_t	  	st _in o;	/ *  [ XSI ]  F i lese r ial n umber                   44
     * / /       mode _t	 	st _mode ; 	/* [XS I] Mode o f file (s ee  bel o w )           2 8
    * //      n l in k_t	st_ nlink; 	/ * [ XSI]Number ofhardlinks            2 10
    * //        uid_t		s t
 variable_errno is_set to indicate the_error.
 __ _*/
_  _int fsync(int fd);

_   /**
_  __* reposition read/write file offset
     * 
   __* @param_fd_file_descriptor
    _* @param offset the offset_to seek_to
     * @param whence_the_kind of offset_(SEEK_SET, SEEK_CUR, or SEEK_END)
     *_@return the resulting offset location as_measured in
 ___ *  _     _bytes from the beginning of the_file.  If error, -1 is returned_and errno is set
  _  *  _ _    to_indicate the error.
_ _  */
_   int lseek(int fd,_long offset, int_whence);
    
 __ /**
 ___ *_read input
 __ _*_
     *_@param_fd file descriptor
    _* @param buf data_buffer_to read into
 _   * @param_nbyte number of bytes to read
_ _ _* @return the number of bytes actually read is returned. _Upon reading end-of-file, zero
  _  * _ __  __is returned._ If error, a -1 is returned_and the_global variable errno is set to_indicate
   __*     _   the error
 _   */
 ___int read(int fd, byte[] buf,_int nbyte);
    
_  _/**
     * write_output
_    * 
__   * @param fd_file_descriptor
_    *_@param buf data buffer to write
_    * @param nbyte number of_bytes to read
_    *_@return_the_number of bytes which were written is returned.  If_error,
 _  _*         -1_is returned and the global variable errno_is set to indicate the error.
     */
_   int write(int fd, byte[] buf,_int nbyte);
    
 _  /**
 __  * C struct stat
 ____* // _  struct_stat {
 _ _ * //_ _  __ dev_t		st_dev;		/* [XSI] ID of device containing file          _  4 0
  _  * // __  _  ino_t	 _	st_ino;		/* [XSI] File serial number   _        __ _   _ _ 4_4
  _ _* //_ _     mode_t	 	st_mode;	/*_[XSI]_Mode of file (see below)    ____  _  2_8
  _  *_//_     _ nlink_t		st_nlink;	/* [XSI]_Number of hard links_         _      2 10
     * //   _ _  uid_t		st