file definitions



p4_bin_ : ( access-mode -- access-mode' )

modify the give file access-mode to be a binary-mode

reference: ../src/file.c:0042

p4_close_file

reference: ../src/misc.c:1143

p4_close_file_ : ( file -- code )

close the file and return the status-code

reference: ../src/file.c:0050

p4_create_file_ : ( str-adr str-len mode -- file code )

create the file with the given name and open it - returns the file id and a status code. A code of zero means success. An existing file of the same name is truncated upon open.

reference: ../src/file.c:0063

p4_delete_file_ : ( str-adr str-len -- code )

delete the named file and return a status code

reference: ../src/file.c:0078

p4_file_position_ : ( file -- p.pos code )

return the current position in the file and return a status code. A code of zero means success.

reference: ../src/file.c:0093

p4_file_size_ : ( file -- s.size code )

return the current size of the file and return a status code. A code of zero means success.

reference: ../src/file.c:0117

p4_file_status_ : ( str-adr str-len -- sub-code code )

check the named file - if it exists the status code is zero. The sub-code is implementation-specific.

reference: ../src/file.c:0279

p4_flush_file_ : ( file -- code )

flush all unsaved buffers of the file to disk. A status code of zero means success.

reference: ../src/file.c:0299

p4_include_file

reference: ../src/file.c:0142

p4_include_file_ : ( file -- )

INTERPRET the given file

reference: ../src/file.c:0140

p4_included

reference: ../src/misc.c:1191

p4_included_ : ( str-adr str-len -- )

open the named file and then INCLUDE-FILE see also the interactive INCLUDE

reference: ../src/file.c:0149

p4_open_file_ : ( str-adr str-len mode -- file code )

open the named file with mode. returns the file id and a status code. A code of zero means success.

reference: ../src/file.c:0163

p4_read_file_ : ( str-adr str-len file -- count code )

fill the given string buffer with characters from the buffer. A status code of zero means success and the returned count gives the number of bytes actually read. If an error occurs the number of already transferred bytes is returned.

reference: ../src/file.c:0183

p4_read_line_ : ( str-adr str-len file -- count flag code )

fill the given string buffer with one line from the file. A line termination character (or character sequence under WIN/DOS) may also be placed in the buffer but is not included in the final count. In other respects this function performs a READ-FILE

reference: ../src/file.c:0203

p4_rename_file_ : ( str-adr1 str-len1 str-adr2 str-len2 -- code )

rename the file named by string1 to the name of string2. returns a status-code

reference: ../src/file.c:0321

p4_reposition_file_ : ( o.offset file -- code )

reposition the file offset - the next FILE-POSITION would return o.offset then. returns a status code.

reference: ../src/file.c:0220

p4_resize_file

reference: ../src/p4ed.c:0161

p4_resize_file_ : ( s.size file -- code )

resize the give file, returns a status code.

reference: ../src/file.c:0232

p4_write_file_ : ( str-adr str-len file -- code )

write characters from the string buffer to a file, returns a status code.

reference: ../src/file.c:0248

p4_write_line_ : ( str-adr str-len file -- )

write characters from the string buffer to a file, and add the line-terminator to the end of it. returns a status code.

reference: ../src/file.c:0263