Lines Matching +full:- +full:- +full:arg +full:- +full:file

33 .Nd file control
53 .Fa arg .
55 .Fa arg
58 .Bl -tag -width F_DUP2FD_CLOEXEC
62 .Bl -bullet -compact -offset 4n
65 .Fa arg .
69 New descriptor shares the same file offset if the object
70 was a file.
74 Same file status flags (i.e., both file descriptors
75 share the same file status flags).
77 The close-on-exec flag
79 associated with the new file descriptor is cleared, so the file descriptor is
84 The fork-on-exec flag
86 associated with the new file descriptor is cleared, so the file descriptor is
101 flag associated with the new file descriptor is set, so the file descriptor
110 flag associated with the new file descriptor is set, so the file descriptor
116 .Bd -literal -offset indent
117 dup2(fd, arg)
124 flag associated with the new file descriptor is set.
142 Get the flags associated with the file descriptor
145 .Bl -tag -width FD_RESOLVE_BENEATH
147 The file will be closed upon execution of
149 .Fa ( arg
151 Otherwise, the file descriptor will remain open.
153 The file will be closed upon execution of the
157 All path name lookups relative to that file descriptor
167 on such a file descriptor.
190 .Fa ( arg
194 .Fa arg .
203 .Fa ( arg
213 .Fa arg
215 .Fa arg
220 .Fa arg ,
223 .Fa arg
228 .Fa arg
229 is non-zero.
231 .Fa arg
234 Add seals to the file as described below, if the underlying filesystem supports
237 Get seals associated with the file, if the underlying filesystem supports seals.
246 for the file referenced by the specified file descriptor.
248 .Fa arg
263 .Bl -tag -width O_NONBLOCKX
265 Non-blocking I/O; if no data is available to a
270 the read or write call returns -1 with the error
273 Force each write to append at the end of file;
311 .Bl -tag -width F_SEAL_SHRINK
313 Prevent any further seals from being applied to the file.
315 Prevent the file from being shrunk with
318 Prevent the file from being enlarged with
323 calls to the file.
331 Seals are on a per-inode basis and require support by the underlying filesystem.
339 Several operations are available for doing advisory file locking;
341 .Bd -literal
344 off_t l_len; /* len = 0 means until end of file */
351 These advisory file locking operations take a pointer to
354 .Fa arg .
356 .Bl -tag -width F_SETLKWX
360 .Fa arg ,
374 Set or clear a file segment lock according to the lock description
376 .Fa arg ,
406 When a shared lock has been set on a segment of a file,
411 A request for a shared lock fails if the file descriptor was not
416 A request for an exclusive lock fails if the file was not
428 bytes, will be measured from the start of the file,
429 current position, or end of the file, respectively.
454 Locks may start and extend beyond the current end of a file,
455 but may not start or extend before the beginning of the file.
457 file offset for that file if
464 point to the beginning of the file, and
466 is zero, the entire file is locked.
467 If an application wishes only to do entire file locking, the
471 There is at most one type of lock set for each byte in the file.
497 .St -p1003.1-88
498 that require that all locks associated with a file for a given process are
501 file descriptor for that file is closed by that process.
504 For example if an application for updating the password file locks the
505 password file database while making the update, and then calls
535 over the same file safely.
538 If a file is locked by a process through
540 any record within the file will be seen as locked
548 returns \-1 in
551 file descriptor by
554 All locks associated with a file for a given process are
573 .Bl -tag -width F_GETOWNX -offset indent
575 A new file descriptor.
577 A file descriptor equal to
578 .Fa arg .
584 Value of file descriptor owner.
586 Value other than -1.
589 Otherwise, a value of -1 is returned and
596 .Bl -tag -width Er
608 and the segment of a file to be locked is already
609 exclusive-locked by another process;
611 segment of a file to be locked is already shared-locked or
612 exclusive-locked by another process.
617 is not a valid open file descriptor.
624 .Fa arg
625 is not a valid file descriptor.
639 is not a valid file descriptor open for reading.
653 is not a valid file descriptor open for writing.
661 and writeable mappings of the file exist.
681 .Fa arg
694 .Fa arg
713 and the maximum number of file descriptors permitted for the
715 or no file descriptors greater than or equal to
716 .Fa arg
721 argument is not a valid file descriptor for the requested operation.
734 number of locked regions in the system exceeding a system-imposed limit.
745 refers to a file for which locking is not supported.
820 .St -susv4 ,