Deleted Added
full compact
linux_misc.c (63605) linux_misc.c (63778)
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * 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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * 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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/compat/linux/linux_misc.c 63605 2000-07-20 05:37:41Z marcel $
28 * $FreeBSD: head/sys/compat/linux/linux_misc.c 63778 2000-07-23 16:54:18Z marcel $
29 */
30
31#include "opt_compat.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/sysproto.h>
36#include <sys/kernel.h>

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

949 if ((error = copyin(args->times, &lut, sizeof lut)))
950 return error;
951 tv[0].tv_sec = lut.l_actime;
952 tv[0].tv_usec = 0;
953 tv[1].tv_sec = lut.l_modtime;
954 tv[1].tv_usec = 0;
955 /* so that utimes can copyin */
956 tvp = (struct timeval *)stackgap_alloc(&sg, sizeof(tv));
29 */
30
31#include "opt_compat.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/sysproto.h>
36#include <sys/kernel.h>

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

949 if ((error = copyin(args->times, &lut, sizeof lut)))
950 return error;
951 tv[0].tv_sec = lut.l_actime;
952 tv[0].tv_usec = 0;
953 tv[1].tv_sec = lut.l_modtime;
954 tv[1].tv_usec = 0;
955 /* so that utimes can copyin */
956 tvp = (struct timeval *)stackgap_alloc(&sg, sizeof(tv));
957 if (tvp == NULL)
958 return (ENAMETOOLONG);
957 if ((error = copyout(tv, tvp, sizeof(tv))))
958 return error;
959 bsdutimes.tptr = tvp;
960 } else
961 bsdutimes.tptr = NULL;
962
963 bsdutimes.path = args->fname;
964 return utimes(p, &bsdutimes);

--- 504 unchanged lines hidden ---
959 if ((error = copyout(tv, tvp, sizeof(tv))))
960 return error;
961 bsdutimes.tptr = tvp;
962 } else
963 bsdutimes.tptr = NULL;
964
965 bsdutimes.path = args->fname;
966 return utimes(p, &bsdutimes);

--- 504 unchanged lines hidden ---