AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
CLOSE ( 2) CLOSE (2) NAME close - close a file descriptor SYNOPSIS int close (tildes) int fildes; DESCRIPTION Fildes is a file descriptor obtained from a ere at, open, dup , fcntl, or pipe system call. Close closes the file descriptor indicated by fildes. Close will fail if fildes is not a valid open file descriptor. [EBADF[ RETURN VALUE Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO creat(2), dup(2), exec(2), fcntl(2), open(2), pipe(2). - 1 -
- Page 622 and 623: VI (l) rn OAD Av MODIFYING TEXT Cha
- Page 624 and 625: VI ( 1 ) VI( 1) file to newtext :gf
- Page 626 and 627: VI (l) VI (l) :set x? Show value of
- Page 628 and 629: VI (l) VI ( 1) mapped to I, then if
- Page 630 and 631: VI (l) VI (l) won't be broken. Inse
- Page 632 and 633: � I . .... .,_ J _ . . ·
- Page 634 and 635: .. \ '-�� -·
- Page 637 and 638: WIIO (I) WHO(l) NAME who - who is o
- Page 639: WRITE ( l ) WRITE ( l ) NAME write
- Page 642 and 643: XARGS(l) XARGS (l) -nnumber Execute
- Page 645 and 646: YACC { I ) YACC { l ) NAME yacc - y
- Page 647 and 648: INTRO ( 2) INTR0 ( 2 ) NAME intro -
- Page 649 and 650: INTRO ( 2) INTR0 (2) 21 EISDffi Is
- Page 651 and 652: INTRO (2) INTRO ( 2) ProcO is the s
- Page 653 and 654: INTR0 (2) INTR0 (2) permission requ
- Page 655 and 656: INTR0 (2) time_t shm_dtime; time_t
- Page 657: ACCESS (2} ACCESS (2} NAME access -
- Page 661 and 662: ALARM (2) ALARM (2) NAME alarm - se
- Page 663: BRK(2) BRK ( 2 ) NAME brk, sbrk - c
- Page 667 and 668: CHMOD (2) CHMOD (2) NAME chmod - ch
- Page 669: CHOWN(2) CHOWN(2) NAME chown - chan
- Page 674 and 675: '�
- Page 676 and 677: CREAT (2) CREAT (2) file descriptor
- Page 678 and 679: ·� '·-
- Page 680 and 681: EXEC (2) EXEC (2) Envp is an array
- Page 683 and 684: EXIT ( 2 ) EXIT (2) NAME exit, _exi
- Page 685 and 686: FCNTL (2) FCNTL (2) NAME fcntl - fi
- Page 687: FCNTL (2) FCNTL (2) [ENOLCK] Cmd is
- Page 690 and 691: FORK(2) FORK(2) The system-imposed
- Page 693 and 694: GETUID ( 2 ) GETUID ( 2 ) NAME getu
- Page 695 and 696: IOCTL (2) IOCTL (2) NAME ioctl - co
- Page 697: KILL(2) KILL(2) NAME kill - send a
- Page 701: LSEEK ( 2) LSEEK ( 2 ) NAME )seek -
- Page 704 and 705: MKNOD (2} MKNOD (2} RETURN VALUE Up
- Page 707 and 708: MSGCTL ( 2 ) MSGCTL ( 2 ) NAME msgc
- Page 709 and 710: MSGGET (2) MSGGET (2) NAME msgget -
- Page 711 and 712: MSGOP (2) MSGOP (2) NAME msgop - me
- Page 713 and 714: � I MSGOP {2) MSGOP {2) If (msgft
- Page 715: NICE (2) NICE (2) NAME nice - chang
- Page 718 and 719: OPEN ( 2) O_TRUNC O_EXCL OPEN(2) us
- Page 721 and 722: PAUSE( 2 ) PAUSE( 2 ) NAME pause -
CLOSE ( 2)<br />
CLOSE (2)<br />
NAME<br />
close - close a file descriptor<br />
SYNOPSIS<br />
int close (tildes)<br />
int fildes;<br />
DESCRIPTION<br />
Fildes is a file descriptor obtained from a ere at, open, dup , fcntl,<br />
or pipe system call. Close closes the file descriptor indicated by<br />
fildes.<br />
Close will fail if fildes is not a valid open file descriptor. [EBADF[<br />
RETURN VALUE<br />
Upon successful completion, a value of 0 is returned. Otherwise, a<br />
value of -1 is returned and errno is set to indicate the error.<br />
SEE ALSO<br />
creat(2), dup(2), exec(2), fcntl(2), open(2), pipe(2).<br />
- 1 -