search for: o_tmpfil

Displaying 9 results from an estimated 9 matches for "o_tmpfil".

Did you mean: o_tmpfile
2017 Nov 13
2
Experiment on how to improve our temporary file handing.
...d any support for this on FreeBSD. > >>> > >> > >> AFAIK FreeBSD supports some variant of /proc that should map Linux > >> (although the mapping isn't 1:1). > >> Does it lack support for this? Thanks for looking into this, BTW! > > > > O_TMPFILE is the main thing that seems to be missing. > > > > It doesn't seem unreasonable to ask FreeBSD to implement this (at > least for ufs/zfs), maybe Ed/Kostik have thoughts about it. Can you please explain, how exactly O_TMPFILE functionality you asking for relates to the /proc ?...
2017 Nov 13
2
Experiment on how to improve our temporary file handing.
...e.italiano at gmail.com> writes: >> I couldn't find any support for this on FreeBSD. >> > > AFAIK FreeBSD supports some variant of /proc that should map Linux > (although the mapping isn't 1:1). > Does it lack support for this? Thanks for looking into this, BTW! O_TMPFILE is the main thing that seems to be missing. Cheers, Rafael
2017 Nov 09
10
Experiment on how to improve our temporary file handing.
...utputBuffer creation and commit. I don't think that is a code path where that is possible right now, but it would be an easy thing to miss in a code review. I was hopping the OS could help us manage the temporary file so that there was no way to accidentally leave it behind. On linux there is O_TMPFILE, which allows us to create a file with no name in the file system. A name can be given with linkat. Unfortunately we can't use linkat(fd, "", AT_FDCWD, "destination", AT_EMPTY_PATH) Without special permissions and have instead to depend on proc: linkat(AT_FDCWD, "/p...
2016 Jan 06
0
[klibc:master] MIPS: Update archfcntl.h
...t;ben at decadent.org.uk> AuthorDate: Wed, 6 Jan 2016 00:43:25 +0000 Committer: H. Peter Anvin <hpa at linux.intel.com> CommitDate: Tue, 5 Jan 2016 17:45:36 -0800 [klibc] MIPS: Update archfcntl.h Update usr/include/arch/mips/archfcntl.h from kernel headers: - Add definitions of O_PATH, O_TMPFILE - Update value of O_SYNC to include __O_SYNC - Add definitions of F_{SET,GET}OWN_EX, F_GETOWNER_UIDS, F_OFD_{GETLK,SETLK,SETLKW}, F_OWNER_{TID,PID,PGRP} Signed-off-by: Ben Hutchings <ben at decadent.org.uk> Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/include/arc...
2016 Jan 27
0
[klibc:master] Make posix_openpt() an inline
.../stdlib.h @@ -83,7 +83,14 @@ static __inline__ void srandom(unsigned int __s) __extern int unlockpt(int); __extern char *ptsname(int); -__extern int posix_openpt(int); + +static __inline__ int posix_openpt(int __mode) +{ + __extern int open(const char *, int, ...); + + __mode &= ~(O_CREAT | O_TMPFILE); + return open("/dev/ptmx", __mode); +} static __inline__ int grantpt(int __fd) { diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild index a0e440d..eba6add 100644 --- a/usr/klibc/Kbuild +++ b/usr/klibc/Kbuild @@ -52,7 +52,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \...
2016 Jan 06
5
[PATCH klibc 0/5] klibc architecture fixes
Here's an assortment of build and run-time fixes for various architectures that we've applied in Debian. Ben. Aurelien Jarno (1): ppc64: fix struct stat Ben Hutchings (2): MIPS: Update archfcntl.h syscalls: Override detection of direct socket syscalls on i386, m68k, s390 Helge Deller (1): Add pread and pwrite 32bit syscall wrappers for parisc Mauricio Faria de Oliveira
2018 Feb 28
0
[ANNOUNCE] xserver 1.20 RC1
...Hector Martin (1): edid: fix off-by-one error in CEA mode numbering Helmut Grohne (1): build: guess availability of monotonic clock for cross compilation Jan Beich (2): dix: unbreak --with-dtrace (default) on FreeBSD 11.1+ shm, xwayland: prefer atomic close-on-exec without O_TMPFILE Jason Ekstrand (1): xwayland: Fix backwards need_rotate logic (v2) Jason Gerecke (9): xwayland: Depend on wayland-protocols to build tablet protocol headers xwayland: Bind to wp_tablet_manager if available and get its seats xwayland: Listen for wp_tablet_seat events...
2019 Sep 11
6
[PATCH 0/4] HMM tests and minor fixes
These changes are based on Jason's latest hmm branch. Patch 1 was previously posted here [1] but was dropped from the orginal series. Hopefully, the tests will reduce concerns about edge conditions. I'm sure more tests could be usefully added but I thought this was a good starting point. [1] https://lore.kernel.org/linux-mm/20190726005650.2566-6-rcampbell at nvidia.com/ Ralph Campbell
2020 Jan 13
9
[PATCH v6 0/6] mm/hmm/test: add self tests for HMM
This series adds new functions to the mmu interval notifier API to allow device drivers with MMUs to dynamically mirror a process' page tables based on device faults and invalidation callbacks. The Nouveau driver is updated to use the extended API and a set of stand alone self tests is added to help validate and maintain correctness. The patches are based on linux-5.5.0-rc6 and are for