filedesc.h (192080) | filedesc.h (219999) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93 | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * @(#)filedesc.h 8.1 (Berkeley) 6/2/93 |
30 * $FreeBSD: head/sys/sys/filedesc.h 192080 2009-05-14 03:24:22Z jeff $ | 30 * $FreeBSD: head/sys/sys/filedesc.h 219999 2011-03-25 14:00:36Z kib $ |
31 */ 32 33#ifndef _SYS_FILEDESC_H_ 34#define _SYS_FILEDESC_H_ 35 36#include <sys/queue.h> 37#include <sys/event.h> 38#include <sys/lock.h> --- 68 unchanged lines hidden (view full) --- 107 SX_NOTRECURSED) 108 109struct thread; 110 111int closef(struct file *fp, struct thread *td); 112int dupfdopen(struct thread *td, struct filedesc *fdp, int indx, int dfd, 113 int mode, int error); 114int falloc(struct thread *td, struct file **resultfp, int *resultfd); | 31 */ 32 33#ifndef _SYS_FILEDESC_H_ 34#define _SYS_FILEDESC_H_ 35 36#include <sys/queue.h> 37#include <sys/event.h> 38#include <sys/lock.h> --- 68 unchanged lines hidden (view full) --- 107 SX_NOTRECURSED) 108 109struct thread; 110 111int closef(struct file *fp, struct thread *td); 112int dupfdopen(struct thread *td, struct filedesc *fdp, int indx, int dfd, 113 int mode, int error); 114int falloc(struct thread *td, struct file **resultfp, int *resultfd); |
115int fallocf(struct thread *td, struct file **resultfp, int *resultfd, 116 int flags); |
|
115int fdalloc(struct thread *td, int minfd, int *result); 116int fdavail(struct thread *td, int n); 117int fdcheckstd(struct thread *td); 118void fdclose(struct filedesc *fdp, struct file *fp, int idx, struct thread *td); 119void fdcloseexec(struct thread *td); 120struct filedesc *fdcopy(struct filedesc *fdp); 121void fdunshare(struct proc *p, struct thread *td); 122void fdfree(struct thread *td); --- 23 unchanged lines hidden --- | 117int fdalloc(struct thread *td, int minfd, int *result); 118int fdavail(struct thread *td, int n); 119int fdcheckstd(struct thread *td); 120void fdclose(struct filedesc *fdp, struct file *fp, int idx, struct thread *td); 121void fdcloseexec(struct thread *td); 122struct filedesc *fdcopy(struct filedesc *fdp); 123void fdunshare(struct proc *p, struct thread *td); 124void fdfree(struct thread *td); --- 23 unchanged lines hidden --- |