freebsd32_misc.c (1de34945f4403f67cc502ca6a9091ea3adf263b2) freebsd32_misc.c (25fec55b86959541fc93d49dffb2e2c549d1de88)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2002 Doug Rabson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

1937 if (error)
1938 return (error);
1939 if (uap->basep != NULL) {
1940 base32 = base;
1941 error = copyout(&base32, uap->basep, sizeof(int32_t));
1942 }
1943 return (error);
1944}
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (c) 2002 Doug Rabson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

1937 if (error)
1938 return (error);
1939 if (uap->basep != NULL) {
1940 base32 = base;
1941 error = copyout(&base32, uap->basep, sizeof(int32_t));
1942 }
1943 return (error);
1944}
1945
1946int
1947freebsd11_freebsd32_getdents(struct thread *td,
1948 struct freebsd11_freebsd32_getdents_args *uap)
1949{
1950 struct freebsd11_freebsd32_getdirentries_args ap;
1951
1952 ap.fd = uap->fd;
1953 ap.buf = uap->buf;
1954 ap.count = uap->count;
1955 ap.basep = NULL;
1956 return (freebsd11_freebsd32_getdirentries(td, &ap));
1957}
1958#endif /* COMPAT_FREEBSD11 */
1959
1960#ifdef COMPAT_FREEBSD6
1961/* versions with the 'int pad' argument */
1962int
1963freebsd6_freebsd32_pread(struct thread *td, struct freebsd6_freebsd32_pread_args *uap)
1964{
1965

--- 1824 unchanged lines hidden ---
1945#endif /* COMPAT_FREEBSD11 */
1946
1947#ifdef COMPAT_FREEBSD6
1948/* versions with the 'int pad' argument */
1949int
1950freebsd6_freebsd32_pread(struct thread *td, struct freebsd6_freebsd32_pread_args *uap)
1951{
1952

--- 1824 unchanged lines hidden ---