Date: Thu, 18 Jun 2009 11:04:24 GMT From: Jonathan Anderson <jona@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 164657 for review Message-ID: <200906181104.n5IB4OpW000188@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164657 Change 164657 by jona@jona-trustedbsd-kentvm on 2009/06/18 11:03:53 Allow passing of error types Affected files ... .. //depot/projects/trustedbsd/capabilities/src/tools/cap/user_angel/protocol.h#8 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/tools/cap/user_angel/protocol.h#8 (text+ko) ==== @@ -59,6 +59,7 @@ #define FLOAT 0x00000002 #define STRING 0x00000004 #define CAPBOX_OPTIONS 0x00000008 + #define ERROR 0x00000080 #define TYPE_MODIFIER_MASK 0x0000ff00 #define LONG 0x00000100 @@ -75,12 +76,14 @@ /* Unmarshalling functions; calling programs should free the result */ struct cap_wire_datum* cap_marshall_int(int32_t value); struct cap_wire_datum* cap_marshall_string(const char *value, int len); +struct cap_wire_datum* cap_marshall_error(int errno, const char *msg, int msglen); struct cap_wire_datum* cap_marshall_capbox(const struct capbox_options *options); /* Unmarshalling functions; return the number of bytes unmarshalled (or -1) */ int cap_unmarshall_int(const struct cap_wire_datum *d, int32_t *value); int cap_unmarshall_string(const struct cap_wire_datum *d, char* value, int *len); +int cap_unmarshall_error(const struct cap_wire_datum *d, int errno, const char *msg, int msglen); int cap_unmarshall_capbox(const struct cap_wire_datum *d, struct capbox_options *options);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906181104.n5IB4OpW000188>