About: Open (system call)     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : yago:WikicatSystemCalls, within Data Space : dbpedia.demo.openlinksw.com associated with source document(s)
QRcode icon
http://dbpedia.demo.openlinksw.com/describe/?url=http%3A%2F%2Fdbpedia.org%2Fresource%2FOpen_%28system_call%29

For most file systems, a program initializes access to a file in a file system using the open system call. This allocates resources associated to the file (the file descriptor), and returns a handle that the process will use to refer to that file. In some cases the open is performed by the first access. During the open, the filesystem may allocate memory for buffers, or it may wait until the first operation. Various other errors which may occur during the open include directory update failures, un-permitted multiple connections, media failures, communication link failures and device failures.

AttributesValues
rdf:type
rdfs:label
  • Open (systémové volání) (cs)
  • Open (sistema-deia) (eu)
  • Open (system call) (en)
rdfs:comment
  • open je v informatice speciální systémové volání jádra operačního systému, pomocí kterého si proces může zpřístupnit soubory uložené v souborovém systému. Tato funkce je obsažena ve většině moderních operačních systémů, protože tento způsob práce se soubory je nejrozšířenější abstrakcí v informatice. (cs)
  • Fitxategia programaren esku jartzeko erabiltzen da sistema-dei hau. Unix eta antzeko sistematan zenbaki bat itzultzen du bestelako sistema-deietan erabilia ahal izateko. Irekitzean fitxategiarekin lotutako baliabideak eskuratzen dira sistema eragiletik (fitxategiaren deskribatzailea esaterako). Programen hasieran erabili ohi da behin fitxategi bakoitzeko. int open(const char *pathname, int flags); int open(const char *pathname,int flags, mode_t mode); Parametroak: * pathname: fitxategiaren izena * flags: fitxategia nola erabiliko den adierazten dute. * mode: fitxategiaren gaineko baimenak. (eu)
  • For most file systems, a program initializes access to a file in a file system using the open system call. This allocates resources associated to the file (the file descriptor), and returns a handle that the process will use to refer to that file. In some cases the open is performed by the first access. During the open, the filesystem may allocate memory for buffers, or it may wait until the first operation. Various other errors which may occur during the open include directory update failures, un-permitted multiple connections, media failures, communication link failures and device failures. (en)
dcterms:subject
Wikipage page ID
Wikipage revision ID
Link from a Wikipage to another Wikipage
Link from a Wikipage to an external page
sameAs
dbp:wikiPageUsesTemplate
has abstract
  • open je v informatice speciální systémové volání jádra operačního systému, pomocí kterého si proces může zpřístupnit soubory uložené v souborovém systému. Tato funkce je obsažena ve většině moderních operačních systémů, protože tento způsob práce se soubory je nejrozšířenější abstrakcí v informatice. (cs)
  • Fitxategia programaren esku jartzeko erabiltzen da sistema-dei hau. Unix eta antzeko sistematan zenbaki bat itzultzen du bestelako sistema-deietan erabilia ahal izateko. Irekitzean fitxategiarekin lotutako baliabideak eskuratzen dira sistema eragiletik (fitxategiaren deskribatzailea esaterako). Programen hasieran erabili ohi da behin fitxategi bakoitzeko. int open(const char *pathname, int flags); int open(const char *pathname,int flags, mode_t mode); Fitxategi baten izena emanik fitxategi deskribatzaile bat itzultzen du, zenbaki positibo txiki bat. Hau beste sistema-deietan (read, write, lseek etab.) erabiltzen da fitxategia atzitzeko. Parametroak: * pathname: fitxategiaren izena * flags: fitxategia nola erabiliko den adierazten dute. * mode: fitxategiaren gaineko baimenak. Emaitza: * Erabili gabe dagoen lehen fitxategi deskribatzailea den zenbaki oso bat. Lehenengo irekiera baldin bada orokorrean 3 izango da; 0, 1 eta 2 erreserbatuta baitaude- sarrera estandarra, irteera estandarra eta errore estandarra. * -1 errore bat egon bada. Flagek sarbide modu bat adierazi behar dute: O_RDONLY, O_WRONLY, edo O_RDWR. Soilik irakurri, soilik idatzi edo irakurri/idatzi, hurrenez hurren. Beste hainbat flag daude bestelako ezaugarriak adierazten dituztenak. Aipagarriena, O_CREAT, hau erabiliz fitxategia ez bada existitzen sortu egiten du, beraz sistema-dei hau fitxategia irekitzeko nahiz sortzeko erabiltzen da. Fitxategi bat sortzeko kodearen adibidea: int fd = open("foo", O_CREAT|O_WRONLY|O_TRUNC, S_IRUSR|S_IWUSR); * O_TRUNC: jada dagoen edukia ezabatu. * S_IRUSR: erabiltzaileak irakurri dezake. * S_IWUSR: erabiltzaileak idatzi dezake. * Datuak: Q7095932 (eu)
  • For most file systems, a program initializes access to a file in a file system using the open system call. This allocates resources associated to the file (the file descriptor), and returns a handle that the process will use to refer to that file. In some cases the open is performed by the first access. The same file may be opened simultaneously by several processes, and even by the same process, resulting in several file descriptors for the same file; depending on the file organization and filesystem. Operations on the descriptors such as moving the file pointer or closing it are independent—they do not affect other descriptors for the same file. Operations on the file, such as a write, can be seen by operations on the other descriptors: a later read can read the newly written data. During the open, the filesystem may allocate memory for buffers, or it may wait until the first operation. The absolute file path is resolved. This may include connecting to a remote host and notifying an operator that a removable medium is required. It may include the initialization of a communication device. At this point an error may be returned if the host or medium is not available. The first access to at least the directory within the filesystem is performed. An error will usually be returned if the higher level components of the path (directories) cannot be located or accessed. An error will be returned if the file is expected to exist and it does not or if the file should not already exist and it does. If the file is expected to exist and it does, the file access, as restricted by permission flags within the file meta data or access control list, is validated against the requested type of operations. This usually requires an additional filesystem access although in some filesystems meta-flags may be part of the directory structure. If the file is being created, the filesystem may allocate the default initial amount of storage or a specified amount depending on the file system capabilities. If this fails an error will be returned. Updating the directory with the new entry may be performed or it may be delayed until the close is performed. Various other errors which may occur during the open include directory update failures, un-permitted multiple connections, media failures, communication link failures and device failures. The return value must always be examined and an error specific action taken. In many cases programming language-specific run-time library opens may perform additional actions including initializing a run-time library structure related to the file. As soon as a file is no longer needed, the program should close it. This will cause run-time library and filesystem buffers to be updated to the physical media and permit other processes to access the data if exclusive use had been required. Some run-time libraries may close a file if the program calls the run-time exit. Some filesystems may perform the necessary operations if the program terminates. Neither of these is likely to take place in the event of a kernel or power failure. This can cause damaged filesystem structures requiring the running of privileged and lengthy filesystem utilities during which the entire filesystem may be inaccessible. (en)
prov:wasDerivedFrom
page length (characters) of wiki page
foaf:isPrimaryTopicOf
is Link from a Wikipage to another Wikipage of
is Wikipage redirect of
is Wikipage disambiguates of
is foaf:primaryTopic of
Faceted Search & Find service v1.17_git139 as of Feb 29 2024


Alternative Linked Data Documents: ODE     Content Formats:   [cxml] [csv]     RDF   [text] [turtle] [ld+json] [rdf+json] [rdf+xml]     ODATA   [atom+xml] [odata+json]     Microdata   [microdata+json] [html]    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3330 as of Mar 19 2024, on Linux (x86_64-generic-linux-glibc212), Single-Server Edition (378 GB total memory, 67 GB memory in use)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software