Skip to content
Snippets Groups Projects
  1. Nov 03, 2003
    • gerd's avatar
      (with-open-file (stream "test.123" :direction :output · b10e98ff
      gerd authored
      	                        :if-exists :supersede)
      	  (format stream "~S ~S ~S~%" 'these 'are 'symbols))
      
      	(with-open-file (stream "test.123" :direction :io
      	                        :if-exists :overwrite)
      	  (read stream) (prin1 'insert stream))
      
      	(with-open-file (stream "test.123")
      	  (loop for line = (read-line stream nil)
      	        until (null line) do (write-line line)))
      
      	Output should be "these insertmbols"
      	Output is "these are symbols\ninsert"
      
      	* src/code/fd-stream.lisp (def-output-routines): If there is any
      	input read from UNIX but not supplied to the user of the stream,
      	reposition to the real file position as seen from Lisp.
      	Reported by Adam Warner.
      b10e98ff
  2. Aug 19, 2003
  3. Aug 05, 2003
  4. Jun 26, 2003
    • toy's avatar
      From Paul Foley: · bfbb8fd1
      toy authored
      Non-simple-streams-related changes:
      
      * Stop commands which go through invoke-command-interactive from
        affecting the history variables.
      
      * Fix some typos in comments
      
      * When the GC closes a lost stream, revert to original contents
      
      * Replace #+nil with #+(or) in unix*.lisp
        [NIL is a potentially valid feature name]
      
      
      Simple-streams-related changes:
      
      * Teach reader to handle simple-streams
      
      * Add missing package prefixes in OPEN
      
      * Add unix:unix-msync for force-output on mmapped files
      
      * Add placeholder documentation
      
      * Numerous changes in simple-streams implementation
      
      * Add "external-formats" directory for external formats
      
      
      Note: :BIG-ENDIAN or :LITTLE-ENDIAN should be put on *features*
      bfbb8fd1
  5. Jun 11, 2003
  6. Jun 10, 2003
    • toy's avatar
      Some changes from Paul Foley: · 842ce4c2
      toy authored
      o Fix a number of spelling errors.
      o Add EXT:PURGE-FILES (hmm, should that be renamed to
        purge-backup-files?) to delete old versions of files.
      o Opening a file with :if-exists :append shouldn't set the Unix append
        flag, else you can't seek back to a point before you started
        appending. (Actually from Rudi Schlatte.)
      o Fix a bug in logical pathname parsing.
      o Fix FASL-file versioning so we don't create versioned fasl files.
      842ce4c2
  7. Jun 07, 2003
    • toy's avatar
      More simple-streams updates from Paul Foley: · d03aa23c
      toy authored
      o An update to fix Gerd's complaint about :simple-streams being on
        *features*
      o Corrects a few bugs
      o Renames all the strategy functions
      o Gets rid of DEVICE-EXTEND (Duane Rettig tells me it's going away in
        the next ACL release)
      o A start on getting stream& composition working.
      d03aa23c
  8. Jun 06, 2003
  9. Jun 05, 2003
  10. Jun 02, 2003
  11. Dec 12, 2002
    • moore's avatar
      · 5fa826f9
      moore authored
      Remove cruft from last checkin.
      5fa826f9
    • moore's avatar
      · 1a766c11
      moore authored
      Fix a typo in apply-with-bindings.
      
      Add string-stream and file-stream, required by the ANSI spec, as
      structure classes.  Make the string streams and fd-stream,
      respectively, inherit from them.  Add bootstrap magic.
      1a766c11
  12. Aug 23, 2002
  13. Aug 02, 2002
  14. Apr 03, 2002
  15. Feb 04, 2002
  16. Jul 08, 2001
    • pw's avatar
      From Paul Foley: · c9918062
      pw authored
      	Implements READ- and WRITE-SEQUENCE on Gray streams, via
      	STREAM-READ-SEQUENCE and STREAM-WRITE-SEQUENCE, and provides a :class
      	keyword to OPEN which lets it return Gray streams classes wrapped
      	around lisp-streams.
      
      	Load exports.lisp before compiling with this set of changes.
      c9918062
  17. Jun 17, 2001
    • pw's avatar
      From Eric Marsden: · 45a54c42
      pw authored
      FILE-LENGTH should signal a type-error if arg is not associated with a file.
      45a54c42
  18. Mar 04, 2001
  19. Oct 16, 2000
  20. Aug 25, 2000
  21. Aug 24, 2000
  22. Jun 19, 2000
  23. Dec 04, 1999
  24. Sep 04, 1999
  25. Jan 22, 1999
  26. Jan 15, 1999
  27. Dec 19, 1998
  28. Jul 16, 1998
  29. Jul 14, 1998
    • pw's avatar
      This revision merges in many of the fixes for ANSI condition types · 42efe00d
      pw authored
      in various calls to ERROR. Those easily handled by using new condition
      types simple-file-error and simple-program-error are included.
      
      The only functional change here is that the function CHARACTER no longer
      accepts an integer argument so as to be ANSI compliant. This may
      break some code.
      42efe00d
  30. May 04, 1998
    • dtc's avatar
      Gray streams support: · 6c21ff8a
      dtc authored
      * Rename the 'stream structure class to sys:lisp-stream.
      * Add a new none hierarchical 'stream built-in class which inherits
        from: instance, t.
      * Hack in the new stream class as a mixin for the structure base
        lisp-stream class which now inherits from: stream, structure-object,
        instance, t.
      * Add a new 'fundamental-stream standard-class which includes 'stream
        as a mixin, and add PCL hacks to allow this to be redefined after PCL is
        loaded to be (defclass fundamental-stream (standard-object stream) ...).
      * Add appropriate support to the base stream functions to dispatch to
        the Gray stream functions for the handling of fundamental-streams.
        Some of the lisp-streams encapsulating CLOS streams still need
        a little work.
      6c21ff8a
  31. Jan 04, 1998
  32. Dec 27, 1997
    • dtc's avatar
      There were a the few calls to unix-select that limited the file · 19ce82a1
      dtc authored
      descriptor to an (unsigned-byte 32) and thus limited this code to file
      descriptors less than 32, this was probably done to limit consing.
      Replace these with unix-fast-select, allowing the use of file
      descriptors upto fd-setsize (doesn't cons). Tested with over 128 FDs
      running CL-HTTP on FreeBSD.
      19ce82a1
  33. Mar 25, 1997
  34. Feb 25, 1997
  35. Jan 18, 1997
  36. May 07, 1996
  37. Oct 31, 1994
  38. Oct 02, 1994
  39. Aug 23, 1994
Loading