Skip to content
  1. Jul 28, 2005
  2. Jul 12, 2005
    • Reid Spencer's avatar
      For PR540: · f404981b
      Reid Spencer authored
      Add a Mutex class for thread synchronization in a platform-independent way.
      The current implementation only supports pthreads. Win32 use of Critical
      Sections will be added later. The design permits other threading models to
      be used if (and only if) pthreads is not available.
      
      llvm-svn: 22403
      f404981b
  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 16, 2005
  8. May 06, 2005
  9. Apr 22, 2005
  10. Apr 21, 2005
    • Reid Spencer's avatar
      Provide an implementation of the GetCurrentUserId and GetCurrentGroupId · 2d45e251
      Reid Spencer authored
      methods that were recently added to the interface.
      
      llvm-svn: 21401
      2d45e251
    • 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
    • Reid Spencer's avatar
      For Bug 543: · b02566dc
      Reid Spencer authored
      Allow the ThrowErrno function to optionally accept an error number
      parameter so that callers can specify the error number to be used.
      
      llvm-svn: 21384
      b02566dc
  11. Apr 20, 2005
  12. Mar 02, 2005
  13. Feb 14, 2005
  14. Feb 13, 2005
  15. Jan 16, 2005
  16. Jan 14, 2005
  17. Jan 10, 2005
  18. Jan 08, 2005
  19. Jan 01, 2005
  20. Dec 31, 2004
  21. Dec 27, 2004
    • Reid Spencer's avatar
      For PR351: · e925d8b8
      Reid Spencer authored
      * Ensure #includes are wrapped with appropriate HAVE_ guards
      * Account for variations in time.h and sys/time.h inclusion.
      * Add macros for getting wait(2) exit status correctly (per autoconf sugg.)
      * Implement ThrowErrno in terms of strerror_r, strerror or none based on
        what is available on the platform.
      
      llvm-svn: 19161
      e925d8b8
    • Reid Spencer's avatar
      For PR351: · efda887f
      Reid Spencer authored
      * Remove redundant #includes that are now in Unix.h
      
      llvm-svn: 19160
      efda887f
    • Reid Spencer's avatar
      For PR351: · cf15b874
      Reid Spencer authored
      * Move implementation of sys::PreventCoreFiles function to this file from
        the now defunct SysConfig abstraction.
      
      llvm-svn: 19159
      cf15b874
    • 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
    • Reid Spencer's avatar
      For PR351: · 47cd6534
      Reid Spencer authored
      * Ensure #includes are wrapped with appropriate HAVE_ guards
      * Consolidate implementation from operating system specific directory.
      
      llvm-svn: 19157
      47cd6534
    • Reid Spencer's avatar
      For PR351: · d554bbce
      Reid Spencer authored
      * Ensure #includes are wrapped with appropriate HAVE_ guards
      
      llvm-svn: 19156
      d554bbce
    • Reid Spencer's avatar
      For PR351: · 0d1ad6ac
      Reid Spencer authored
      SysConf abstraction was pointless because it had a single function in it that
      pertained only to the current process. So merge it into the Process abstraction
      and remove the files completely.
      
      llvm-svn: 19149
      0d1ad6ac
  22. Dec 24, 2004
  23. Dec 21, 2004
Loading