|
|
1.1 ! root 1: ! 2: ! 3: close() COHERENT System Call close() ! 4: ! 5: ! 6: ! 7: ! 8: Close a file ! 9: ! 10: iinntt cclloossee(_f_d) iinntt _f_d; ! 11: ! 12: close closes the file identified by the file descriptor _f_d, which ! 13: was returned by ccrreeaatt, dduupp, ooppeenn, or ppiippee. close also frees the ! 14: associated file descriptor. ! 15: ! 16: Because each program can have only a limited number of files open ! 17: at any given time, programs that process many files should close ! 18: files whenever possible. The function exit automatically calls ! 19: fclose for all open files; however, the system call _exit does ! 20: not. ! 21: ! 22: ***** Example ***** ! 23: ! 24: For an example of this function, see the entry for open. ! 25: ! 26: ***** See Also ***** ! 27: ! 28: COHERENT system calls, creat(), open() ! 29: ! 30: ***** Diagnostics ***** ! 31: ! 32: close returns -1 if an error occurs, such as its being handed a ! 33: bad file descriptor; otherwise, it returns zero. ! 34: ! 35: ! 36: ! 37: ! 38: ! 39: ! 40: ! 41: ! 42: ! 43: ! 44: ! 45: ! 46: ! 47: ! 48: ! 49: ! 50: ! 51: ! 52: ! 53: ! 54: ! 55: ! 56: ! 57: ! 58: ! 59: ! 60: ! 61: ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.