|
|
DataMuseum.dkPresents historical artifacts from the history of: ICL Comet 32 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about ICL Comet 32 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 913 (0x391)
Types: TextFile
Notes: UNIX file
Names: »open.2«
└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
└─⟦28c352965⟧ »/a« UNIX Filesystem
└─⟦this⟧ »usr/man/man2/open.2«
.ig @(#)open.2 2.1 7/1/84 @(#)Copyright (C) 1983 by National Semiconductor Corp. .. .TH OPEN 2 .UC 4 .SH NAME open \- open for reading or writing .SH SYNOPSIS .nf .B open(name, mode) .B char *name; .fi .SH DESCRIPTION .I Open opens the file .I name for reading (if .I mode is 0), writing (if .I mode is 1) or for both reading and writing (if .I mode is 2). .I Name is the address of a string of ASCII characters representing a path name, terminated by a null character. .PP The file is positioned at the beginning (byte 0). The returned file descriptor must be used for subsequent calls for other input-output functions on the file. .SH "SEE ALSO" creat(2), read(2), write(2), dup(2), close(2) .SH DIAGNOSTICS The value \-1 is returned if the file does not exist, if one of the necessary directories does not exist or is unreadable, if the file is not readable (resp. writable), or if too many files are open.