View | Details | Raw Unified | Return to bug 75544
Collapse All | Expand All

(-)./acl.3 (-3 / +3 lines)
Lines 37-43 Link Here
37
.In sys/types.h
37
.In sys/types.h
38
.In sys/acl.h
38
.In sys/acl.h
39
.Sh DESCRIPTION
39
.Sh DESCRIPTION
40
As shipped, 
40
As shipped,
41
.Fx 4.0
41
.Fx 4.0
42
permits file systems to export
42
permits file systems to export
43
Access Control Lists via the VFS, and provides a library for userland
43
Access Control Lists via the VFS, and provides a library for userland
Lines 130-136 Link Here
130
.Fn acl_valid_file_np ,
130
.Fn acl_valid_file_np ,
131
.Fn acl_valid_fd_np
131
.Fn acl_valid_fd_np
132
.Pp
132
.Pp
133
Thee functions are described in
133
Three functions are described in
134
.Xr acl_valid 3 ,
134
.Xr acl_valid 3 ,
135
and may be used to validate an ACL as correct POSIX.1e-semantics, or
135
and may be used to validate an ACL as correct POSIX.1e-semantics, or
136
as appropriate for a particular file system object regardless of semantics.
136
as appropriate for a particular file system object regardless of semantics.
Lines 170-176 Link Here
170
POSIX.1e is described in IEEE POSIX.1e draft 17.  Discussion
170
POSIX.1e is described in IEEE POSIX.1e draft 17.  Discussion
171
of the draft continues on the cross-platform POSIX.1e implementation
171
of the draft continues on the cross-platform POSIX.1e implementation
172
mailing list.  To join this list, see the
172
mailing list.  To join this list, see the
173
.Fx 
173
.Fx
174
POSIX.1e implementation
174
POSIX.1e implementation
175
page for more information.
175
page for more information.
176
.Sh HISTORY
176
.Sh HISTORY
(-)./assertions.3 (-4 / +4 lines)
Lines 59-65 Link Here
59
.Fn INVARIANT
59
.Fn INVARIANT
60
macros evaluate a boolean expression, and if it is false, they invoke the
60
macros evaluate a boolean expression, and if it is false, they invoke the
61
current assertion failure callback.  The default callback will print a message
61
current assertion failure callback.  The default callback will print a message
62
to 
62
to
63
.Li stderr
63
.Li stderr
64
describing the failure, and then cause the program to dump core.
64
describing the failure, and then cause the program to dump core.
65
If the
65
If the
Lines 94-100 Link Here
94
.Pp
94
.Pp
95
When an
95
When an
96
.Fn assertion_failure_callback
96
.Fn assertion_failure_callback
97
is called, the 
97
is called, the
98
.Fa filename
98
.Fa filename
99
and
99
and
100
.Fa line
100
.Fa line
Lines 112-121 Link Here
112
and may be used by the callback to determine the type of the failing
112
and may be used by the callback to determine the type of the failing
113
assertion.
113
assertion.
114
.Fa condition
114
.Fa condition
115
is the literal text of the assertion that failed. 
115
is the literal text of the assertion that failed.
116
.Fa print_errno
116
.Fa print_errno
117
will be non-zero if the callback should print
117
will be non-zero if the callback should print
118
.Fa strerror "errno"
118
.Fn strerror "errno"
119
as part of its output.
119
as part of its output.
120
.Pp
120
.Pp
121
.Fn assertion_type_to_text
121
.Fn assertion_type_to_text
(-)./curs_beep.3 (-2 / +3 lines)
Lines 45-57 Link Here
45
alert is possible, nothing happens.  Nearly all terminals have an audible alert
45
alert is possible, nothing happens.  Nearly all terminals have an audible alert
46
(bell or beep), but only some can flash the screen.
46
(bell or beep), but only some can flash the screen.
47
.SH RETURN VALUE
47
.SH RETURN VALUE
48
These routines return \fBOK\fR if they succeed in beeping or flashing, 
48
These routines return \fBOK\fR if they succeed in beeping or flashing,
49
\fBERR\fR otherwise.
49
\fBERR\fR otherwise.
50
.SH EXTENSIONS
50
.SH EXTENSIONS
51
SVr4's beep and flash routines always returned \fBOK\fR, so it was not
51
SVr4's beep and flash routines always returned \fBOK\fR, so it was not
52
possible to tell when the beep or flash failed.
52
possible to tell when the beep or flash failed.
53
.SH PORTABILITY
53
.SH PORTABILITY
54
These functions are defined in the XSI Curses standard, Issue 4.  Like SVr4, it
54
These functions are described in the XSI Curses standard, Issue 4.
55
Like SVr4, it
55
specifies that they always return \fBOK\fR.
56
specifies that they always return \fBOK\fR.
56
.SH SEE ALSO
57
.SH SEE ALSO
57
\fBcurses\fR(3X)
58
\fBcurses\fR(3X)
(-)./curs_color.3 (-1 / +1 lines)
Lines 201-207 Link Here
201
.PP
201
.PP
202
The assumption that \fBCOLOR_BLACK\fR is the default
202
The assumption that \fBCOLOR_BLACK\fR is the default
203
background color for all terminals can be modified using the
203
background color for all terminals can be modified using the
204
\fBassume_default_colors\fP extension,
204
\fBassume_default_colors\fP extension.
205
..
205
..
206
.SH SEE ALSO
206
.SH SEE ALSO
207
\fBcurses\fR(3X),
207
\fBcurses\fR(3X),
(-)./curs_extend.3 (-2 / +2 lines)
Lines 57-67 Link Here
57
is able to use user-defined or nonstandard names
57
is able to use user-defined or nonstandard names
58
which may be compiled into the terminfo
58
which may be compiled into the terminfo
59
description, i.e., via the terminfo or termcap interfaces.
59
description, i.e., via the terminfo or termcap interfaces.
60
Normally these names are available for use, since the essential descision
60
Normally these names are available for use, since the essential decision
61
is made by using the \fB-x\fP option of \fItic\fP to compile
61
is made by using the \fB-x\fP option of \fItic\fP to compile
62
extended terminal definitions.
62
extended terminal definitions.
63
However you can disable this feature
63
However you can disable this feature
64
to ensure compatiblity with other implementations of curses
64
to ensure compatibility with other implementations of curses
65
..
65
..
66
.SH PORTABILITY
66
.SH PORTABILITY
67
These routines are specific to ncurses.  They were not supported on
67
These routines are specific to ncurses.  They were not supported on
(-)./dialog.3 (-11 / +12 lines)
Lines 127-141 Link Here
127
.Fn end_dialog "void"
127
.Fn end_dialog "void"
128
.Ft "int"
128
.Ft "int"
129
.Fn dialog_ftree "unsigned char *filename" "unsigned char FS" "unsigned char *title" "unsigned char *prompt" "int height" "int width" "int menu_height" "unsigned char **result"
129
.Fn dialog_ftree "unsigned char *filename" "unsigned char FS" "unsigned char *title" "unsigned char *prompt" "int height" "int width" "int menu_height" "unsigned char **result"
130
.Ft "int" 
130
.Ft "int"
131
.Fo dialog_tree 
131
.Fo dialog_tree
132
.Fa "unsigned char **names" 
132
.Fa "unsigned char **names"
133
.Fa "int size"
133
.Fa "int size"
134
.Fa "unsigned char FS" 
134
.Fa "unsigned char FS"
135
.Fa "unsigned char *title" 
135
.Fa "unsigned char *title"
136
.Fa "unsigned char *prompt"
136
.Fa "unsigned char *prompt"
137
.Fa "int height" 
137
.Fa "int height"
138
.Fa "int width" 
138
.Fa "int width"
139
.Fa "int menu_height"
139
.Fa "int menu_height"
140
.Fa "unsigned char **result"
140
.Fa "unsigned char **result"
141
.Fc
141
.Fc
Lines 393-399 Link Here
393
.Va fire
393
.Va fire
394
actions are used to override the default behavior, and
394
actions are used to override the default behavior, and
395
.Va it
395
.Va it
396
to the same for the OK button.
396
does the same for the OK button.
397
.Pp
397
.Pp
398
Using either API behavior, the
398
Using either API behavior, the
399
.Va ch
399
.Va ch
Lines 682-688 Link Here
682
.Va menu_height
682
.Va menu_height
683
sets the height of the tree subwindow inside the
683
sets the height of the tree subwindow inside the
684
.Fn dialog_ftree
684
.Fn dialog_ftree
685
box and must be set. 
685
box and must be set.
686
.Va title
686
.Va title
687
is shown centered on the upper border of the
687
is shown centered on the upper border of the
688
.Fn dialog_ftree
688
.Fn dialog_ftree
Lines 728-734 Link Here
728
.Fn dialog_ftree
728
.Fn dialog_ftree
729
on ESC, the function returns -1.
729
on ESC, the function returns -1.
730
.Pp
730
.Pp
731
.Fn dialog_tree 
731
.Fn dialog_tree
732
function returns the same results as
732
function returns the same results as
733
.Fn dialog_ftree .
733
.Fn dialog_ftree .
734
If 0 is returned, result will contain a pointer from the array
734
If 0 is returned, result will contain a pointer from the array
Lines 764-770 Link Here
764
command and were soon split into a separate library
764
command and were soon split into a separate library
765
and command by
765
and command by
766
.An Andrey Chernov .
766
.An Andrey Chernov .
767
.An Marc van Kempen implemented most of the
767
.An Marc van Kempen
768
implemented most of the
768
extra controls and objects,
769
extra controls and objects,
769
.An Jordan Hubbard
770
.An Jordan Hubbard
770
added the dialogMenuItem renovations and this man page and
771
added the dialogMenuItem renovations and this man page and
(-)./dlinfo.3 (-4 / +4 lines)
Lines 84-91 Link Here
84
.Fa handle
84
.Fa handle
85
argument.
85
argument.
86
.Ft Link_map
86
.Ft Link_map
87
stuctures are maintained as double-linked list by
87
structures are maintained as double-linked list by
88
.Xr ld.so 1 
88
.Xr ld.so 1
89
in same order as
89
in same order as
90
.Fn dlopen
90
.Fn dlopen
91
and
91
and
Lines 104-110 Link Here
104
  const char      *l_name;   /* Absolute Path to Library */
104
  const char      *l_name;   /* Absolute Path to Library */
105
  const void      *l_ld;     /* Pointer to .dynamic in memory */
105
  const void      *l_ld;     /* Pointer to .dynamic in memory */
106
  struct link_map *l_next,   /* linked list of of mapped libs */
106
  struct link_map *l_next,   /* linked list of of mapped libs */
107
                  *l_prev;     
107
                  *l_prev;
108
.Ed
108
.Ed
109
.Bl -tag -width Ds
109
.Bl -tag -width Ds
110
.It l_addr
110
.It l_addr
Lines 232-238 Link Here
232
.Ed
232
.Ed
233
.Sh RETURN VALUES
233
.Sh RETURN VALUES
234
.Fn dlinfo
234
.Fn dlinfo
235
returns 0 on success, or -1 if error occured.
235
returns 0 on success, or -1 if error occurred.
236
Whenever an error has been detected, a message detailing it can
236
Whenever an error has been detected, a message detailing it can
237
be retrieved via a call to
237
be retrieved via a call to
238
.Fn dlerror .
238
.Fn dlerror .
(-)./eventlib.3 (-53 / +53 lines)
Lines 120-128 Link Here
120
.Ft int
120
.Ft int
121
.Fn evSetIdleTimer "evContext opaqueCtx" "evTimerFunc func" "void *uap" \
121
.Fn evSetIdleTimer "evContext opaqueCtx" "evTimerFunc func" "void *uap" \
122
"struct timespec max_idle" "evTimerID *opaqueID"
122
"struct timespec max_idle" "evTimerID *opaqueID"
123
.Ft int 
123
.Ft int
124
.Fn evTouchIdleTimer "evContext opaqueCtx" "evTimerID id"
124
.Fn evTouchIdleTimer "evContext opaqueCtx" "evTimerID id"
125
.Ft int 
125
.Ft int
126
.Fn evResetIdleTimer "evContext opaqueCtx" "evTimerID id" "evTimerFunc func" \
126
.Fn evResetIdleTimer "evContext opaqueCtx" "evTimerID id" "evTimerFunc func" \
127
"void *uap" "struct timespec max_idle"
127
"void *uap" "struct timespec max_idle"
128
.Ft int
128
.Ft int
Lines 196-202 Link Here
196
.Fn evCreate
196
.Fn evCreate
197
creates an event context which is needed by all the other functions in this
197
creates an event context which is needed by all the other functions in this
198
library.  All information used internally by this library is bound to this
198
library.  All information used internally by this library is bound to this
199
context, rather than to static storage.  This makes the library 
199
context, rather than to static storage.  This makes the library
200
.Dq thread safe ,
200
.Dq thread safe ,
201
and permits other library functions to use events without
201
and permits other library functions to use events without
202
disrupting the application's use of events.
202
disrupting the application's use of events.
Lines 236-249 Link Here
236
.Fa EV_NULL ,
236
.Fa EV_NULL ,
237
which tells
237
which tells
238
.Fn evGetNext
238
.Fn evGetNext
239
that it should return a special 
239
that it should return a special
240
.Dq no-op 
240
.Dq no-op
241
event, which is ignored by
241
event, which is ignored by
242
.Fn evDispatch
242
.Fn evDispatch
243
but handled correctly by
243
but handled correctly by
244
.Fn evDrop .
244
.Fn evDrop .
245
.Fa EV_NULL
245
.Fa EV_NULL
246
can be necessary to the correct functioning of a caller\-written equivilent to
246
can be necessary to the correct functioning of a caller\-written equivalent to
247
.Fn evMainLoop ,
247
.Fn evMainLoop ,
248
wherein perterbations caused by external system events must be polled for, and
248
wherein perterbations caused by external system events must be polled for, and
249
the default behaviour of internally ignoring such events is undesirable.
249
the default behaviour of internally ignoring such events is undesirable.
Lines 309-318 Link Here
309
The functions
309
The functions
310
.Fn evTimeSpec
310
.Fn evTimeSpec
311
and
311
and
312
.Fn evTimeVal 
312
.Fn evTimeVal
313
are utilities which allow the caller to convert a
313
are utilities which allow the caller to convert a
314
.Dq Fa struct timeval
314
.Dq Fa struct timeval
315
to a 
315
to a
316
.Dq Fa struct timespec
316
.Dq Fa struct timespec
317
(the function of
317
(the function of
318
.Fn evTimeSpec )
318
.Fn evTimeSpec )
Lines 359-374 Link Here
359
.Xr gettimeofday 2 . )
359
.Xr gettimeofday 2 . )
360
.Pp
360
.Pp
361
The function
361
The function
362
.Fn evLastEventTime 
362
.Fn evLastEventTime
363
returns the
363
returns the
364
.Dq Fa struct timespec
364
.Dq Fa struct timespec
365
which describes the last time that certain events happened to the 
365
which describes the last time that certain events happened to the
366
event context indicated by 
366
event context indicated by
367
.Fa opaqueCtx .
367
.Fa opaqueCtx .
368
This value is updated by
368
This value is updated by
369
.Fn evCreate 
369
.Fn evCreate
370
and
370
and
371
.Fn evGetNext 
371
.Fn evGetNext
372
(upon entry and after
372
(upon entry and after
373
.Xr select 2
373
.Xr select 2
374
returns); it is routinely compared with other times in the internal handling
374
returns); it is routinely compared with other times in the internal handling
Lines 391-408 Link Here
391
.Fa due
391
.Fa due
392
argument equal to
392
argument equal to
393
.Dq Fn evConsTime 0 0
393
.Dq Fn evConsTime 0 0
394
means 
394
means
395
.Dq due immediately .
395
.Dq due immediately .
396
The
396
The
397
.Fa opaqueID
397
.Fa opaqueID
398
argument, if specified as a value other than
398
argument, if specified as a value other than
399
.Fa NULL ,
399
.Fa NULL ,
400
will be used to store the resulting 
400
will be used to store the resulting
401
.Dq timer \s-1ID\s+1 , 
401
.Dq timer \s-1ID\s+1 ,
402
useful as an argument to
402
useful as an argument to
403
.Fn evClearTimer .
403
.Fn evClearTimer .
404
Note that in a 
404
Note that in a
405
.Dq one\-shot 
405
.Dq one\-shot
406
timer (which has an
406
timer (which has an
407
.Fa inter
407
.Fa inter
408
argument equal to
408
argument equal to
Lines 438-444 Link Here
438
will exist within the event library.
438
will exist within the event library.
439
.Pp
439
.Pp
440
The function
440
The function
441
.Fn evSetIdleTimer 
441
.Fn evSetIdleTimer
442
is similar to (and built on)
442
is similar to (and built on)
443
.Fn evSetTimer ;
443
.Fn evSetTimer ;
444
it registers an idle timer event which provides for the function call to
444
it registers an idle timer event which provides for the function call to
Lines 450-473 Link Here
450
time has passed since the time the idle timer was
450
time has passed since the time the idle timer was
451
.Dq last touched ;
451
.Dq last touched ;
452
originally, this is set to the time returned by
452
originally, this is set to the time returned by
453
.Fn evLastEventTime 
453
.Fn evLastEventTime
454
(described above) for the event context specified by 
454
(described above) for the event context specified by
455
.Fa opaqueCtx .  
455
.Fa opaqueCtx .
456
This is a 
456
This is a
457
.Dq one\-shot 
457
.Dq one\-shot
458
timer, but the time at which the
458
timer, but the time at which the
459
.Fa func
459
.Fa func
460
is actually called can be changed by recourse to
460
is actually called can be changed by recourse to
461
.Fn evTouchIdleTimer
461
.Fn evTouchIdleTimer
462
(described below).  The pointer to the underlying 
462
(described below).  The pointer to the underlying
463
.Dq timer \s-1ID\s+1 
463
.Dq timer \s-1ID\s+1
464
is returned in
464
is returned in
465
.Fa opaqueID ,
465
.Fa opaqueID ,
466
if it is
466
if it is
467
.No non- Ns Dv NULL .
467
.No non- Ns Dv NULL .
468
.Pp
468
.Pp
469
The
469
The
470
.Fn evTouchIdleTimer 
470
.Fn evTouchIdleTimer
471
function updates the idle timer associated with
471
function updates the idle timer associated with
472
.Fa id ,
472
.Fa id ,
473
setting its idea of the time it was last accessed to the value returned by
473
setting its idea of the time it was last accessed to the value returned by
Lines 496-502 Link Here
496
function unregisters the idle timer associated with
496
function unregisters the idle timer associated with
497
.Fa id .
497
.Fa id .
498
See the discussion under
498
See the discussion under
499
.Fn evClearTimer , 
499
.Fn evClearTimer ,
500
above, for information regarding caller handling of the
500
above, for information regarding caller handling of the
501
.Fa uap
501
.Fa uap
502
associated with the corresponding
502
associated with the corresponding
Lines 510-529 Link Here
510
on the given event context's wait queue with the associated (possibly
510
on the given event context's wait queue with the associated (possibly
511
.Dv NULL )
511
.Dv NULL )
512
.Dq Fa tag ;
512
.Dq Fa tag ;
513
if 
513
if
514
.Fa id
514
.Fa id
515
is 
515
is
516
.No non- Ns Dv NULL ,
516
.No non- Ns Dv NULL ,
517
then it will contain the 
517
then it will contain the
518
.Dq wait \s-1ID\s+1 
518
.Dq wait \s-1ID\s+1
519
associated with the created queue element.
519
associated with the created queue element.
520
.Pp
520
.Pp
521
The function
521
The function
522
.Fn evDo 
522
.Fn evDo
523
marks 
523
marks
524
.Em all
524
.Em all
525
of the 
525
of the
526
.Dq waiting 
526
.Dq waiting
527
functions in the given event context's wait queue with the associated (possibly
527
functions in the given event context's wait queue with the associated (possibly
528
.Dv NULL )
528
.Dv NULL )
529
.Dq Fa tag
529
.Dq Fa tag
Lines 533-544 Link Here
533
.Fn evGetNext .
533
.Fn evGetNext .
534
.Pp
534
.Pp
535
The function
535
The function
536
.Fn evUnwait 
536
.Fn evUnwait
537
will search for the
537
will search for the
538
.Dq wait \s-1ID\s+1 
538
.Dq wait \s-1ID\s+1
539
.Fa id
539
.Fa id
540
in the wait queue of the given event context; if an element with the given
540
in the wait queue of the given event context; if an element with the given
541
.Fa id 
541
.Fa id
542
is not found, then the
542
is not found, then the
543
.Dq done
543
.Dq done
544
queue of that context is searched.  If found, the queue element is removed
544
queue of that context is searched.  If found, the queue element is removed
Lines 660-668 Link Here
660
.Pp
660
.Pp
661
The function
661
The function
662
.Fn evTimeRW
662
.Fn evTimeRW
663
sets the stream associated with the given stream \s-1ID\s+1 
663
sets the stream associated with the given stream \s-1ID\s+1
664
.Dq Fa id
664
.Dq Fa id
665
to have the idle timer associated with the timer \s-1ID\s+1 
665
to have the idle timer associated with the timer \s-1ID\s+1
666
.Dq Fa timer .
666
.Dq Fa timer .
667
.Pp
667
.Pp
668
The function
668
The function
Lines 721-727 Link Here
721
.Fn \*(lp*func\*(rp
721
.Fn \*(lp*func\*(rp
722
will be
722
will be
723
.Fa -1
723
.Fa -1
724
if an error occurred that prevented this connection from completing 
724
if an error occurred that prevented this connection from completing
725
successfully.  In this case
725
successfully.  In this case
726
.Fn errno
726
.Fn errno
727
will have been set and the socket described by
727
will have been set and the socket described by
Lines 777-789 Link Here
777
.Pp
777
.Pp
778
The function
778
The function
779
.Fn evInitID
779
.Fn evInitID
780
will initialize an opaque 
780
will initialize an opaque
781
.Dq evConn \s-1ID\s+1 , 
781
.Dq evConn \s-1ID\s+1 ,
782
.Dq evFile \s-1ID\s+1 , 
782
.Dq evFile \s-1ID\s+1 ,
783
.Dq evStream \s-1ID\s+1 , 
783
.Dq evStream \s-1ID\s+1 ,
784
.Dq evTimer \s-1ID\s+1 , 
784
.Dq evTimer \s-1ID\s+1 ,
785
.Dq evWait \s-1ID\s+1 , 
785
.Dq evWait \s-1ID\s+1 ,
786
.Dq evContext , 
786
.Dq evContext ,
787
or
787
or
788
.Dq evEvent ,
788
.Dq evEvent ,
789
which is passed by reference.
789
which is passed by reference.
Lines 804-812 Link Here
804
to indicate failure.
804
to indicate failure.
805
.Sh FILE
805
.Sh FILE
806
.Pa heap.h ,
806
.Pa heap.h ,
807
which is in the 
807
which is in the
808
.Pa src/lib/isc
808
.Pa src/lib/isc
809
directory of the current 
809
directory of the current
810
.Sy BIND
810
.Sy BIND
811
distribution.
811
distribution.
812
.Sh ERRORS
812
.Sh ERRORS
Lines 825-832 Link Here
825
.Fa FD_SETSIZE ,
825
.Fa FD_SETSIZE ,
826
meaning that the application's limit is higher than the library's.
826
meaning that the application's limit is higher than the library's.
827
.It Bq Er ENOENT
827
.It Bq Er ENOENT
828
The specified 
828
The specified
829
.Dq event \s-1ID\s+1 
829
.Dq event \s-1ID\s+1
830
does not exist.
830
does not exist.
831
.It Bq Er EWOULDBLOCK
831
.It Bq Er EWOULDBLOCK
832
No events have occurred and the
832
No events have occurred and the
(-)./exec.3 (-2 / +2 lines)
Lines 159-165 Link Here
159
as being ambiguous here, although only the critical error
159
as being ambiguous here, although only the critical error
160
.Er EACCES
160
.Er EACCES
161
is really ambiguous),
161
is really ambiguous),
162
then these functions will act as if they stat the file to determine
162
then these functions will act as if they state the file to determine
163
whether the file exists and has suitable execute permissions.
163
whether the file exists and has suitable execute permissions.
164
If it does, they will return immediately with the global variable
164
If it does, they will return immediately with the global variable
165
.Va errno
165
.Va errno
Lines 266-272 Link Here
266
upon which they returned.
266
upon which they returned.
267
They now return for
267
They now return for
268
.Er ETXTBSY ,
268
.Er ETXTBSY ,
269
and determine existence and executability more carefully.
269
and determine existence and executablity more carefully.
270
In particular,
270
In particular,
271
.Er EACCES
271
.Er EACCES
272
for inaccessible directories in the path prefix is no longer
272
for inaccessible directories in the path prefix is no longer

Return to bug 75544