PERFORCE change 177160 for review
Jonathan Anderson
jona at FreeBSD.org
Wed Apr 21 02:37:33 UTC 2010
http://p4web.freebsd.org/@@177160?ac=10
Change 177160 by jona at jona-belle-freebsd8 on 2010/04/21 02:37:13
Created FDArray structure and methods
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.h#7 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.h#7 (text+ko) ====
@@ -255,6 +255,11 @@
const Obj_Entry *obj; /* Shared object which defines it */
} SymCache;
+/*
+ * Storage for arrays of file descriptors.
+ */
+struct Struct_FDArray;
+
extern void _rtld_error(const char *, ...) __printflike(1, 2);
extern Obj_Entry *map_object(int, const char *, const struct stat *);
extern void *xcalloc(size_t);
@@ -287,6 +292,11 @@
bool allocate_tls_offset(Obj_Entry *obj);
void free_tls_offset(Obj_Entry *obj);
const Ver_Entry *fetch_ventry(const Obj_Entry *obj, unsigned long);
+bool fdarray_init(struct Struct_FDArray*);
+bool fdarray_append(struct Struct_FDArray*, int);
+int* fdarray_get(struct Struct_FDArray*);
+int fdarray_lock(struct Struct_FDArray*);
+void fdarray_unlock(struct Struct_FDArray*, int);
/*
* MD function declarations.
More information about the p4-projects
mailing list