Changeset 14554 in project for chicken/trunk/manual/Unit posix


Ignore:
Timestamp:
05/07/09 11:59:34 (11 years ago)
Author:
felix winkelmann
Message:

fixed bug #16 (setter for file-position accepts list, now)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chicken/trunk/manual/Unit posix

    r13740 r14554  
    406406
    407407<procedure>(file-position FILE)</procedure>
    408 
    409 Returns the current file position of {{FILE}}, which should be a
     408<procedure>(set! (file-position FILE) POSITION)</procedure>
     409
     410{{file-position}} Returns the current file position of {{FILE}}, which should be a
    410411port or a file-descriptor.
     412
     413{{(set! (file-position FILE) POSITION)}} Sets the current read/write position of {{FILE}} to
     414{{POSITION}}, which should be an exact integer or a list of two elements. {{FILE}}
     415should be a port or a file-descriptor. If {{POSITION}} is a list, it should
     416be of the form {{(POSITION WHENCE)}} where {{WHENCE}} specifies
     417how the position is to interpreted and should be one of the values
     418{{seek/set, seek/cur}} and {{seek/end}}. It defaults to
     419{{seek/set}}.
     420
     421Exceptions: {{(exn bounds)}}, {{(exn i/o file)}}
     422
    411423
    412424==== file-size
     
    482494{{OFFSET}} then nothing is done.  {{FILE}} should be a filename
    483495or a file-descriptor.
    484 
    485 ==== set-file-position!
    486 
    487 <procedure>(set-file-position! FILE POSITION [WHENCE])</procedure>
    488 <procedure>(set! (file-position FILE) POSITION)</procedure>
    489 
    490 Sets the current read/write position of {{FILE}} to
    491 {{POSITION}}, which should be an exact integer. {{FILE}}
    492 should be a port or a file-descriptor.  {{WHENCE}} specifies
    493 how the position is to interpreted and should be one of the values
    494 {{seek/set, seek/cur}} and {{seek/end}}. It defaults to
    495 {{seek/set}}.
    496 
    497 Exceptions: {{(exn bounds)}}, {{(exn i/o file)}}
    498496
    499497==== change-file-mode
Note: See TracChangeset for help on using the changeset viewer.