003 File Manager
Current Path:
/usr/src/contrib/lib9p
usr
/
src
/
contrib
/
lib9p
/
📁
..
📄
.gitignore
(276 B)
📄
COPYRIGHT
(2.45 KB)
📄
GNUmakefile
(1.58 KB)
📄
Makefile
(592 B)
📄
README.md
(470 B)
📄
apple_endian.h
(613 B)
📁
backend
📄
connection.c
(5.65 KB)
📁
example
📄
fcall.h
(15.37 KB)
📄
fid.h
(4.75 KB)
📄
genacl.c
(19.59 KB)
📄
genacl.h
(11.11 KB)
📄
hashtable.c
(6.13 KB)
📄
hashtable.h
(2.81 KB)
📄
lib9p.h
(8.24 KB)
📄
lib9p_impl.h
(2.09 KB)
📄
linux_errno.h
(9.68 KB)
📄
log.c
(2.02 KB)
📄
log.h
(1.67 KB)
📄
pack.c
(22.66 KB)
📁
pytest
📄
request.c
(38.26 KB)
📄
rfuncs.c
(8.67 KB)
📄
rfuncs.h
(2.67 KB)
📁
sbuf
📄
threadpool.c
(11.78 KB)
📄
threadpool.h
(4.58 KB)
📁
transport
📄
utils.c
(34.78 KB)
Editing: GNUmakefile
CC_VERSION := $(shell $(CC) --version | \ sed -n -e '/clang-/s/.*clang-\([0-9][0-9]*\).*/\1/p') ifeq ($(CC_VERSION),) # probably not clang CC_VERSION := 0 endif WFLAGS := # Warnings are version-dependent, unfortunately, # so test for version before adding a -W flag. # Note: gnu make requires $(shell test ...) for "a > b" type tests. ifeq ($(shell test $(CC_VERSION) -gt 0; echo $$?),0) WFLAGS += -Weverything WFLAGS += -Wno-padded WFLAGS += -Wno-gnu-zero-variadic-macro-arguments WFLAGS += -Wno-format-nonliteral WFLAGS += -Wno-unused-macros WFLAGS += -Wno-disabled-macro-expansion WFLAGS += -Werror endif ifeq ($(shell test $(CC_VERSION) -gt 600; echo $$?),0) WFLAGS += -Wno-reserved-id-macro endif CFLAGS := $(WFLAGS) \ -g \ -O0 \ -DL9P_DEBUG=L9P_DEBUG # Note: to turn on debug, use -DL9P_DEBUG=L9P_DEBUG, # and set env variable LIB9P_LOGGING to stderr or to # the (preferably full path name of) the debug log file. LIB_SRCS := \ pack.c \ connection.c \ request.c \ genacl.c \ log.c \ hashtable.c \ utils.c \ rfuncs.c \ threadpool.c \ sbuf/sbuf.c \ transport/socket.c \ backend/fs.c SERVER_SRCS := \ example/server.c BUILD_DIR := build LIB_OBJS := $(addprefix build/,$(LIB_SRCS:.c=.o)) SERVER_OBJS := $(SERVER_SRCS:.c=.o) LIB := lib9p.dylib SERVER := server all: build $(LIB) $(SERVER) $(LIB): $(LIB_OBJS) cc -dynamiclib $^ -o build/$@ $(SERVER): $(SERVER_OBJS) $(LIB) cc $< -o build/$(SERVER) -Lbuild/ -l9p clean: rm -rf build rm -f $(SERVER_OBJS) build: mkdir build mkdir build/sbuf mkdir build/transport mkdir build/backend build/%.o: %.c $(CC) $(CFLAGS) -c $< -o $@
Upload File
Create Folder