PERFORCE change 164657 for review

Jonathan Anderson jona at FreeBSD.org
Thu Jun 18 11:04:25 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164657

Change 164657 by jona at 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);
 
 


More information about the p4-projects mailing list