linux_file.c (423a033ba7bf9b38a4843ae9609019cc108647cf) | linux_file.c (8d1d01717552c3384e9cf02b7b0daf79ac734bfd) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1995 Søren Schmidt 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 --- 1752 unchanged lines hidden (view full) --- 1761 shmflags = SHM_GROW_ON_WRITE; 1762 if ((flags & MFD_CLOEXEC) != 0) 1763 oflags |= O_CLOEXEC; 1764 if ((flags & MFD_ALLOW_SEALING) != 0) 1765 shmflags |= SHM_ALLOW_SEALING; 1766 return (kern_shm_open2(td, SHM_ANON, oflags, 0, shmflags, NULL, 1767 memfd_name)); 1768} | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 1994-1995 Søren Schmidt 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 --- 1752 unchanged lines hidden (view full) --- 1761 shmflags = SHM_GROW_ON_WRITE; 1762 if ((flags & MFD_CLOEXEC) != 0) 1763 oflags |= O_CLOEXEC; 1764 if ((flags & MFD_ALLOW_SEALING) != 0) 1765 shmflags |= SHM_ALLOW_SEALING; 1766 return (kern_shm_open2(td, SHM_ANON, oflags, 0, shmflags, NULL, 1767 memfd_name)); 1768} |
1769 1770int 1771linux_splice(struct thread *td, struct linux_splice_args *args) 1772{ 1773 1774 linux_msg(td, "syscall splice not really implemented"); 1775 1776 /* 1777 * splice(2) is documented to return EINVAL in various circumstances; 1778 * returning it instead of ENOSYS should hint the caller to use fallback 1779 * instead. 1780 */ 1781 return (EINVAL); 1782} |
|