   }
 
   public func readdir(dirp: COpaquePointer) -> DirentEntry {
-    return dirp != nil ? _readdir(dirp) : nil
+    return dirp != nil ? Glibc.readdir(dirp) : nil
   }
 
   public func opendir(path: String) -> COpaquePointer {
-    return _opendir(path)
+    return Glibc.opendir(path)
   }
 
   public func opendir(pathBytes: [UInt8]) -> COpaquePointer {
-    return _opendir(UnsafePointer<CChar>(pathBytes))
+    return Glibc.opendir(UnsafePointer<CChar>(pathBytes))
   }
 
   public func closedir(dirp: COpaquePointer) -> Int32 {
-    return retry { _closedir(dirp) }
+    return retry { Glibc.closedir(dirp) }
   }
 
   public func fgets(buffer: UnsafeMutablePointer<CChar>, length: Int32,
       fp: UnsafeMutablePointer<FILE>) -> UnsafeMutablePointer<CChar> {
-    return _fgets(buffer, length, fp)
+    return Glibc.fgets(buffer, length, fp)
   }
 
   public func fread(buffer: UnsafeMutablePointer<Void>, size: Int,
       nmemb: Int, fp: UnsafeMutablePointer<FILE>) -> Int {
-    return _fread(buffer, size, nmemb, fp)
+    return Glibc.fread(buffer, size, nmemb, fp)
   }
 
   public func popen(command: String, operation: PopenOperation = .R)

  // name stat.
  public func doStat(path: String, buffer: UnsafeMutablePointer<stat>)
      -> Int32 {
    return _stat(path, buffer)
  }

  public func lstat(path: String, buffer: UnsafeMutablePointer<stat>) -> Int32 {
    return _lstat(path, buffer)
  }

  public func statBuffer() -> stat {

  }

  public func close(fd: Int32) -> Int32 {
    return retry { Glibc.close(fd) }
  }

  public func fflush(stream: UnsafeMutablePointer<FILE> = nil) -> Int32 {
    return Glibc.fflush(stream)
  }

  public func lseek(fd: Int32, offset: Int, whence: Int32) -> Int {
    return retry { Glibc.lseek(fd, offset, whence) }
  }

  public var pid: Int32 {
    return Glibc.getpid()
  }

  public func rename(oldPath: String, newPath: String) -> Int32 {
    return Glibc.rename(oldPath, newPath)
  }

  public func unlink(path: String) -> Int32 {
    return Glibc.unlink(path)
  }

  public var cwd: String? {
    var a = [CChar](count:256, repeatedValue: 0)
    let i = Glibc.getcwd(&a, 255)
    if i != nil {
      return String.fromCharCodes(a)
    }
