Date: Wed, 21 Apr 2010 02:37:32 GMT From: Jonathan Anderson <jona@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 177160 for review Message-ID: <201004210237.o3L2bWpu027675@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@177160?ac=10 Change 177160 by jona@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004210237.o3L2bWpu027675>