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

/freebsd-11-stable/bin/sh/
H A Dmiscbltin.c68 struct fdctx { struct
76 static void fdctx_init(int, struct fdctx *);
77 static void fdctx_destroy(struct fdctx *);
78 static ssize_t fdgetc(struct fdctx *, char *);
84 fdctx_init(int fd, struct fdctx *fdc)
90 *fdc = (struct fdctx){
98 fdgetc(struct fdctx *fdc, char *c)
116 fdctx_destroy(struct fdctx *fdc)
178 struct fdctx fdctx; local
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp42 static FdContext fdctx; member in namespace:__tsan
65 CHECK_NE(s, &fdctx.globsync);
66 CHECK_NE(s, &fdctx.filesync);
67 CHECK_NE(s, &fdctx.socksync);
76 atomic_uintptr_t *pl1 = &fdctx.tab[fd / kTableSizeL2];
109 d->sync = &fdctx.globsync;
123 atomic_store(&fdctx.globsync.rc, (u64)-1, memory_order_relaxed);
124 atomic_store(&fdctx.filesync.rc, (u64)-1, memory_order_relaxed);
125 atomic_store(&fdctx.socksync.rc, (u64)-1, memory_order_relaxed);
133 FdDesc *tab = (FdDesc*)atomic_load(&fdctx
[all...]

Completed in 111 milliseconds