gdb: rename

 
 rename
 ......
 
 Synopsis:
           int rename(const char *oldpath, const char *newpath);
 
 Request:
      'Frename,OLDPATHPTR/LEN,NEWPATHPTR/LEN'
 
 Return value:
      On success, zero is returned.  On error, -1 is returned.
 
 Errors:
 
      'EISDIR'
           NEWPATH is an existing directory, but OLDPATH is not a
           directory.
 
      'EEXIST'
           NEWPATH is a non-empty directory.
 
      'EBUSY'
           OLDPATH or NEWPATH is a directory that is in use by some
           process.
 
      'EINVAL'
           An attempt was made to make a directory a subdirectory of
           itself.
 
      'ENOTDIR'
           A component used as a directory in OLDPATH or new path is not
           a directory.  Or OLDPATH is a directory and NEWPATH exists but
           is not a directory.
 
      'EFAULT'
           OLDPATHPTR or NEWPATHPTR are invalid pointer values.
 
      'EACCES'
           No access to the file or the path of the file.
 
      'ENAMETOOLONG'
 
           OLDPATH or NEWPATH was too long.
 
      'ENOENT'
           A directory component in OLDPATH or NEWPATH does not exist.
 
      'EROFS'
           The file is on a read-only filesystem.
 
      'ENOSPC'
           The device containing the file has no room for the new
           directory entry.
 
      'EINTR'
           The call was interrupted by the user.