Deleted Added
full compact
svr4_fcntl.c (177314) svr4_fcntl.c (177633)
1/*-
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994, 1997 Christos Zoulas.
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:

--- 16 unchanged lines hidden (view full) ---

25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994, 1997 Christos Zoulas.
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:

--- 16 unchanged lines hidden (view full) ---

25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_fcntl.c 177314 2008-03-17 18:27:28Z antoine $");
33__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_fcntl.c 177633 2008-03-26 15:23:12Z dfr $");
34
35#include "opt_mac.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/file.h>
40#include <sys/filedesc.h>
41/*#include <sys/ioctl.h>*/

--- 146 unchanged lines hidden (view full) ---

188 oflp->l_type = -1;
189 break;
190 }
191
192 oflp->l_whence = iflp->l_whence;
193 oflp->l_start = (off_t) iflp->l_start;
194 oflp->l_len = (off_t) iflp->l_len;
195 oflp->l_pid = (pid_t) iflp->l_pid;
34
35#include "opt_mac.h"
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/file.h>
40#include <sys/filedesc.h>
41/*#include <sys/ioctl.h>*/

--- 146 unchanged lines hidden (view full) ---

188 oflp->l_type = -1;
189 break;
190 }
191
192 oflp->l_whence = iflp->l_whence;
193 oflp->l_start = (off_t) iflp->l_start;
194 oflp->l_len = (off_t) iflp->l_len;
195 oflp->l_pid = (pid_t) iflp->l_pid;
196
196 oflp->l_sysid = iflp->l_sysid;
197}
198
199static void
200bsd_to_svr4_flock64(iflp, oflp)
201 struct flock *iflp;
202 struct svr4_flock64 *oflp;
203{
204 switch (iflp->l_type) {

--- 9 unchanged lines hidden (view full) ---

214 default:
215 oflp->l_type = -1;
216 break;
217 }
218
219 oflp->l_whence = (short) iflp->l_whence;
220 oflp->l_start = (svr4_off64_t) iflp->l_start;
221 oflp->l_len = (svr4_off64_t) iflp->l_len;
197}
198
199static void
200bsd_to_svr4_flock64(iflp, oflp)
201 struct flock *iflp;
202 struct svr4_flock64 *oflp;
203{
204 switch (iflp->l_type) {

--- 9 unchanged lines hidden (view full) ---

214 default:
215 oflp->l_type = -1;
216 break;
217 }
218
219 oflp->l_whence = (short) iflp->l_whence;
220 oflp->l_start = (svr4_off64_t) iflp->l_start;
221 oflp->l_len = (svr4_off64_t) iflp->l_len;
222 oflp->l_sysid = 0;
222 oflp->l_sysid = iflp->l_sysid;
223 oflp->l_pid = (svr4_pid_t) iflp->l_pid;
224}
225
226
227static void
228svr4_to_bsd_flock64(iflp, oflp)
229 struct svr4_flock64 *iflp;
230 struct flock *oflp;

--- 485 unchanged lines hidden ---
223 oflp->l_pid = (svr4_pid_t) iflp->l_pid;
224}
225
226
227static void
228svr4_to_bsd_flock64(iflp, oflp)
229 struct svr4_flock64 *iflp;
230 struct flock *oflp;

--- 485 unchanged lines hidden ---