Deleted Added
full compact
fcntl.c (179358) fcntl.c (179434)
1/*-
2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
3 * Authors: Doug Rabson <dfr@rabson.org>
4 * Developed with Red Inc: Alfred Perlstein <alfred@freebsd.org>
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:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008 Isilon Inc http://www.isilon.com/
3 * Authors: Doug Rabson <dfr@rabson.org>
4 * Developed with Red Inc: Alfred Perlstein <alfred@freebsd.org>
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:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/lib/libc/sys/fcntl.c 179358 2008-05-27 14:03:32Z dfr $");
29__FBSDID("$FreeBSD: head/lib/libc/sys/fcntl.c 179434 2008-05-30 14:47:42Z dfr $");
30
31#include <fcntl.h>
32#include <stdarg.h>
33#include <sys/types.h>
34#include <sys/syscall.h>
35#include "libc_private.h"
36
30
31#include <fcntl.h>
32#include <stdarg.h>
33#include <sys/types.h>
34#include <sys/syscall.h>
35#include "libc_private.h"
36
37__weak_reference(__fcntl, fcntl);
37__weak_reference(__fcntl_compat, fcntl);
38
39int
38
39int
40__fcntl(int fd, int cmd, ...)
40__fcntl_compat(int fd, int cmd, ...)
41{
42 va_list args;
43 long arg;
44 struct oflock ofl;
45 struct flock *flp;
46 int res;
47
48 va_start(args, cmd);

--- 41 unchanged lines hidden ---
41{
42 va_list args;
43 long arg;
44 struct oflock ofl;
45 struct flock *flp;
46 int res;
47
48 va_start(args, cmd);

--- 41 unchanged lines hidden ---