sys_pipe.c (250159) | sys_pipe.c (254356) |
---|---|
1/*- 2 * Copyright (c) 1996 John S. Dyson 3 * Copyright (c) 2012 Giovanni Trematerra 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 76 unchanged lines hidden (view full) --- 85 * both directions of a pipe. 86 * 87 * As pipelock() may have to sleep before it can acquire the flag, it 88 * is important to reread all data after a call to pipelock(); everything 89 * in the structure may have changed. 90 */ 91 92#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1996 John S. Dyson 3 * Copyright (c) 2012 Giovanni Trematerra 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 76 unchanged lines hidden (view full) --- 85 * both directions of a pipe. 86 * 87 * As pipelock() may have to sleep before it can acquire the flag, it 88 * is important to reread all data after a call to pipelock(); everything 89 * in the structure may have changed. 90 */ 91 92#include <sys/cdefs.h> |
93__FBSDID("$FreeBSD: head/sys/kern/sys_pipe.c 250159 2013-05-01 22:42:42Z jilles $"); | 93__FBSDID("$FreeBSD: head/sys/kern/sys_pipe.c 254356 2013-08-15 07:54:31Z glebius $"); |
94 95#include <sys/param.h> 96#include <sys/systm.h> 97#include <sys/conf.h> 98#include <sys/fcntl.h> 99#include <sys/file.h> 100#include <sys/filedesc.h> 101#include <sys/filio.h> --- 57 unchanged lines hidden (view full) --- 159 .fo_truncate = pipe_truncate, 160 .fo_ioctl = pipe_ioctl, 161 .fo_poll = pipe_poll, 162 .fo_kqfilter = pipe_kqfilter, 163 .fo_stat = pipe_stat, 164 .fo_close = pipe_close, 165 .fo_chmod = pipe_chmod, 166 .fo_chown = pipe_chown, | 94 95#include <sys/param.h> 96#include <sys/systm.h> 97#include <sys/conf.h> 98#include <sys/fcntl.h> 99#include <sys/file.h> 100#include <sys/filedesc.h> 101#include <sys/filio.h> --- 57 unchanged lines hidden (view full) --- 159 .fo_truncate = pipe_truncate, 160 .fo_ioctl = pipe_ioctl, 161 .fo_poll = pipe_poll, 162 .fo_kqfilter = pipe_kqfilter, 163 .fo_stat = pipe_stat, 164 .fo_close = pipe_close, 165 .fo_chmod = pipe_chmod, 166 .fo_chown = pipe_chown, |
167 .fo_sendfile = invfo_sendfile, |
|
167 .fo_flags = DFLAG_PASSABLE 168}; 169 170static void filt_pipedetach(struct knote *kn); 171static void filt_pipedetach_notsup(struct knote *kn); 172static int filt_pipenotsup(struct knote *kn, long hint); 173static int filt_piperead(struct knote *kn, long hint); 174static int filt_pipewrite(struct knote *kn, long hint); --- 1659 unchanged lines hidden --- | 168 .fo_flags = DFLAG_PASSABLE 169}; 170 171static void filt_pipedetach(struct knote *kn); 172static void filt_pipedetach_notsup(struct knote *kn); 173static int filt_pipenotsup(struct knote *kn, long hint); 174static int filt_piperead(struct knote *kn, long hint); 175static int filt_pipewrite(struct knote *kn, long hint); --- 1659 unchanged lines hidden --- |