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
FOPEN (3S) FOPEN (3S) may be used to reposition the file pointer to any position in the file, but when output is written to the file the current file pointer is disregarded. All output is written at the end of the file and causes the file pointer to be repositioned at the end of the output. If two separate processes open the same file for append, each process may write freely to the file without fear of destroying output � being written by the other. The output from the two processes will be intermixed in the file in the order in which it is written. SEE ALSO open(2), fclose(3S). DIAGNOSTICS Fopen and [reopen return a NULL pointer on failure. - 2-
FORM ( 3T ) ( AT&T UNIX PC only ) FORM ( 3T ) NAME form - display and accept forms SYNOPSIS #include #include int fo rm( form, op) form_t *form; int op; DESCRIPTION This routine manipulates a form as determined by the operation code ( op ) . If the op arg is F _BEGIN, the form is initialized and displayed. If op is F _INPUT, user input is accepted. If op is F _END, the form is terminated and removed from the display. These functions may be combined in many ways. By specifying (F _BEGIN IF _INPUT IF _END), the caller creates a "pop-up" form which is initialized (displayed), used for input, then removed. Generally, (F _BEGIN IF _INPUT) is used for the first call, F _INPUT for each subsequent interaction, and F _END when the form is to be discarded. During the F _INPUT function, the user may point to fields with the mouse or with the keyboard (arrows, Prev, Next, Beg, Home, End, Tab). The user may may modify fields by typing and editing (Back Space, Dlete Char, Clear Line, Cancel) or by selecting a choice from a menu optionally associated with the field. The form structure has the following form: typedef struct { char char char int track_t field_t field_t } form_t; *f_label; *f_name; f_fl.ags; f_win; *f_track; *f_fields; *f_curfl; I* form label *I I* form name *I I* form flags *I I* form window *I I* tracking info *I I* fields *I I* current field *I F_label is the form label, displayed on the window label line of the form. If /_label is NULL, no label is displayed. F _name is the form name, or NULL if the form has no name. F _flags contains flags. The F _ WINNEW flag causes form to use the "new " algorithm to place the window. Basically, the new algorithm looks for relatively empty screen space to place the window. F_WINSON causes form to use the "son" algorithm which causes the new window to slightly overlap the current window. If neither F _ WINNEW nor F _WINSON is given, the "popup" algorithm is used. This causes the new window to appear near the middle of the current window, inside it if possible. F _NO MOVE is set if the - 1 -
- Page 793: ABS (3C) ABS (3C) NAME abs - return
- Page 797: ATOF ( 3C ) ATOF ( 3C ) NAME atof -
- Page 800 and 801: ·�
- Page 803: CLOCK( 3C ) CLOCK( 3C ) NAME clock
- Page 806 and 807: J ··- � . ..._ __ .·
- Page 809: CTERMID ( 3S ) CTERMID ( 3S ) NAME
- Page 812 and 813: CTIME (3C) CTIME(3C) The external l
- Page 815 and 816: CURSES ( 3 ) CURSES ( 3 ) NAME curs
- Page 817 and 818: CUSERID ( 3S ) CUSERID ( 3S ) NAME
- Page 819 and 820: DIAL (3C) DIAL(3C) NAME dial - esta
- Page 821 and 822: DRAND48 ( 3C ) DRAND48 ( 3C ) NAME
- Page 823 and 824: DRAND48 ( 3C ) DRAND48 ( 3C ) have
- Page 825: ECVT (3C) ECVT (3C) NAME ecvt, fcvt
- Page 829 and 830: EPRINTF ( 3T ) ( AT&T UNIX PC only
- Page 831 and 832: ERF (3M) ERF (3M) NAME erf1 erfc -
- Page 833: EXP ( 3M ) EXP ( 3M ) NAME exp, log
- Page 837: FERROR (3S) FERROR (3S) NAME ferror
- Page 841: FOPEN(3S) FOPEN (3S) NAME fopen, fr
- Page 845 and 846: FORM (3T) (AT&T UNIX PC only ) fiel
- Page 847 and 848: FORM (3T) }; (AT&T UNIX PC only ) F
- Page 849: FREAD ( 3S ) FREAD ( 3S ) NAME frea
- Page 853: FSEEK ( 3S ) FSEEK ( 3S ) NAME fsee
- Page 857 and 858: GAMMA ( 3M ) GAMMA ( 3M ) NAME gamm
- Page 859 and 860: GETC ( 3S ) GETC ( 3S ) NAME getc,
- Page 861: GETCWD ( 3C } GETCWD ( 3C ) NAME ge
- Page 865 and 866: GETGRENT ( 3C ) GETGRENT ( 3C ) NAM
- Page 867: GETLOGIN ( 3C ) GETLOGIN ( 3C ) NAM
- Page 870 and 871: GETOPT (3C) } SEE ALSO getopt(l). e
- Page 873 and 874: GETPENT (3) (AT&T UNIX PC only ) GE
- Page 875: GETPW ( 3C ) GETPW ( 3C ) NAME getp
- Page 878 and 879: GETPWENT ( 3C ) GETPWENT ( 3C ) par
- Page 881 and 882: GETUT ( 3C ) GETUT ( 3C ) NAME getu
- Page 883 and 884: HSEARCH ( 3C ) HSEARCH ( 3C ) NAME
- Page 885 and 886: HYPOT ( 3M ) HYPOT (3M) NAME hypot
- Page 887: L3TOL (3C) L3TOL (3C) NAME 13tol, l
- Page 890 and 891: (�
FOPEN (3S) FOPEN (3S)<br />
may be used to reposition the file pointer to any position in the<br />
file, but when output is written to the file the current file pointer<br />
is disregarded. All output is written at the end of the file and<br />
causes the file pointer to be repositioned at the end of the output.<br />
If two separate processes open the same file for append, each process<br />
may write freely to the file without fear of destroying output �<br />
being written by the other. The output from the two processes<br />
will be intermixed in the file in the order in which it is written.<br />
SEE ALSO<br />
open(2), fclose(3S).<br />
DIAGNOSTICS<br />
Fopen and [reopen return a NULL pointer on failure.<br />
- 2-