Home
last modified time | relevance | path

Searched refs:fdctx (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp49 static FdContext fdctx; variable
72 CHECK_NE(s, &fdctx.globsync); in unref()
73 CHECK_NE(s, &fdctx.filesync); in unref()
74 CHECK_NE(s, &fdctx.socksync); in unref()
83 atomic_uintptr_t *pl1 = &fdctx.tab[fd / kTableSizeL2]; in fddesc()
120 d->sync = &fdctx.globsync; in init()
140 atomic_store(&fdctx.globsync.rc, (u64)-1, memory_order_relaxed); in FdInit()
141 atomic_store(&fdctx.filesync.rc, (u64)-1, memory_order_relaxed); in FdInit()
142 atomic_store(&fdctx.socksync.rc, (u64)-1, memory_order_relaxed); in FdInit()
150 FdDesc *tab = (FdDesc*)atomic_load(&fdctx.tab[l1], memory_order_relaxed); in FdOnFork()
[all …]
/freebsd/bin/sh/
H A Dmiscbltin.c62 struct fdctx { struct
70 static void fdctx_init(int, struct fdctx *); argument
71 static void fdctx_destroy(struct fdctx *);
72 static ssize_t fdgetc(struct fdctx *, char *);
78 fdctx_init(int fd, struct fdctx *fdc) in fdctx_init()
84 *fdc = (struct fdctx){ in fdctx_init()
92 fdgetc(struct fdctx *fdc, char *c) in fdgetc()
110 fdctx_destroy(struct fdctx *fdc) in fdctx_destroy()
170 struct fdctx fdctx; in readcmd() local
238 fdctx_init(STDIN_FILENO, &fdctx); in readcmd()
[all …]