Skip to content
  1. Jul 07, 2006
  2. Jul 28, 2005
  3. Jul 09, 2005
  4. Jul 08, 2005
    • Reid Spencer's avatar
      Ensure that functions like isDirectory don't fail if the file doesn't · 2d85f569
      Reid Spencer authored
      exist but just return false instead.
      
      llvm-svn: 22361
      2d85f569
    • Reid Spencer's avatar
      Two changes: · d28e432c
      Reid Spencer authored
      1. Use isValid() to check validity of the resulting path name in the
         eraseSuffix even though we can't think of a case where eraseSuffix could
         possibly cause an invalid path name.
      2. Rewrite isValid() to not use the deprecated realpath function any more.
         It now just uses isascii to make sure all the characters are legit.
      
      llvm-svn: 22359
      d28e432c
    • Jeff Cohen's avatar
      Stamp out tabs · f5067761
      Jeff Cohen authored
      llvm-svn: 22357
      f5067761
    • Jeff Cohen's avatar
      Fix eraseSuffix() · 4c24144d
      Jeff Cohen authored
      llvm-svn: 22355
      4c24144d
    • Reid Spencer's avatar
      Final Changes For PR495: · af48d864
      Reid Spencer authored
      This chagne just renames some sys::Path methods to ensure they are not
      misused. The Path documentation now divides methods into two dimensions:
      Path/Disk and accessor/mutator. Path accessors and mutators only operate
      on the Path object itself without making any disk accesses. Disk accessors
      and mutators will also access or modify the file system. Because of the
      potentially destructive nature of disk mutators, it was decided that all
      such methods should end in the work "Disk" to ensure the user recognizes
      that the change will occur on the file system. This patch makes that
      change. The method name changes are:
      
      makeReadable        -> makeReadableOnDisk
      makeWriteable       -> makeWriteableOnDisk
      makeExecutable      -> makeExecutableOnDisk
      setStatusInfo       -> setStatusInfoOnDisk
      createDirectory     -> createDirectoryOnDisk
      createFile          -> createFileOnDisk
      createTemporaryFile -> createTemporaryFileOnDisk
      destroy             -> eraseFromDisk
      rename              -> renamePathOnDisk
      
      These changes pass the Linux Deja Gnu tests.
      
      llvm-svn: 22354
      af48d864
    • Reid Spencer's avatar
      For PR495: · c9c0473f
      Reid Spencer authored
      Get rid of the difference between file paths and directory paths. The Path
      class now simply stores a path that can refer to either a file or a
      directory. This required various changes in the implementation and interface
      of the class with the corresponding impact to its users. Doxygen comments were
      also updated to reflect these changes. Interface changes are:
      
      appendDirectory -> appendComponent
      appendFile -> appendComponent
      elideDirectory -> eraseComponent
      elideFile -> eraseComponent
      elideSuffix -> eraseSuffix
      renameFile -> rename
      setDirectory -> set
      setFile -> set
      
      Changes pass Dejagnu and llvm-test/SingleSource tests.
      
      llvm-svn: 22349
      c9c0473f
  5. Jul 07, 2005
    • Reid Spencer's avatar
      For PR495: · 5b891e98
      Reid Spencer authored
      Change interface to Path class:
      readable -> canRead
      writable -> canWrite
      executable -> canExecute
      
      More (incremental) changes coming to close 495.
      
      llvm-svn: 22345
      5b891e98
  6. Jun 02, 2005
  7. May 06, 2005
  8. Apr 21, 2005
    • Reid Spencer's avatar
      For Bug 543: · 8424ba37
      Reid Spencer authored
      Standardize the error messages to be in "path: what failed: why" format.
      Also attempt to use the correct errno to ThrowErrno in situations where
      the errno value is erased by subsequent system calls.
      
      llvm-svn: 21385
      8424ba37
  9. Apr 20, 2005
  10. Mar 02, 2005
  11. Jan 10, 2005
  12. Dec 27, 2004
    • Reid Spencer's avatar
      For PR351: · d103e085
      Reid Spencer authored
      * Ensure #includes are wrapped with appropriate HAVE_ guards
      * Ensure variations in "dirent" structure are accounted for.
      
      llvm-svn: 19158
      d103e085
  13. Dec 24, 2004
    • Reid Spencer's avatar
      For PR351: · 20540311
      Reid Spencer authored
      Merge implementations of isValid and GetTemporaryDirectory into this file. There
      is not any point having the operating system specific files for such little
      variation between the Unix family of systems.
      
      llvm-svn: 19134
      20540311
  14. Dec 21, 2004
  15. Dec 20, 2004
  16. Dec 16, 2004
  17. Dec 15, 2004
    • Reid Spencer's avatar
      Remove automatic insertion of CFE's lib directory into the bytecode path · 879f11df
      Reid Spencer authored
      because LLVM should be agnostic to the needs of specific front ends.
      
      llvm-svn: 18968
      879f11df
    • Reid Spencer's avatar
      Fix a file overwrite bug in llvm-ar introduced by changes to · 98ce23ff
      Reid Spencer authored
      createTemporaryFile semantics where it doesn't create a fully unique name
      if the basename doesn't exist. This functionality is now optionally
      provided by the boolean reuse_current parameter to createTemporaryFile and
      makeUnique. The default values differ because of the way these functions
      are used in LLVM.
      
      llvm-svn: 18961
      98ce23ff
    • Reid Spencer's avatar
      For PR351: · f66d9323
      Reid Spencer authored
      * Fix implementation and documentation about LLVMGCCDIR/bytecode-libs
      * Add the makeUnique method, replacement for getUniqueFilename in Support.
      * Add the sys::CopyFile function, replacement for CopyFile in Support.
      * Move GetLLVMConfigDir() into generic code area since its generic.
      
      llvm-svn: 18947
      f66d9323
  18. Dec 13, 2004
  19. Dec 11, 2004
  20. Dec 02, 2004
  21. Nov 16, 2004
    • Reid Spencer's avatar
      * Use low-level unix I/O interface since we're on Unix. · 1b13a7cd
      Reid Spencer authored
      * Don't use variable length arrays (replaced with alloca)
      
      llvm-svn: 17901
      1b13a7cd
    • Reid Spencer's avatar
      Per code review: · 91f505ea
      Reid Spencer authored
      * Clean up the StatusInfo constructor to construct all members and give
        them reasonable values.
      * Get rid of the Vector typedef and make the interface to
        getDirectoryContent use a std::set instead of a std::vector so the dir
        content is sorted.
      * Make the getStatusInfo method const and not return a useless boolean.
      
      llvm-svn: 17872
      91f505ea
  22. Nov 15, 2004
  23. Nov 14, 2004
  24. Nov 09, 2004
  25. Nov 05, 2004
  26. Sep 18, 2004
  27. Sep 16, 2004
Loading