config root man

Current Path : /usr/src/contrib/ofed/usr.lib/libibverbs/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/src/contrib/ofed/usr.lib/libibverbs/alloca.h

#ifndef _LIBIBVERBS_ALLOCA_H_
#define	_LIBIBVERBS_ALLOCA_H_
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>

#define	strdupa(_s)						\
({								\
	char *_d;						\
	int _len;						\
								\
	_len = strlen(_s) + 1;					\
	_d = alloca(_len);					\
	if (_d)							\
		memcpy(_d, _s, _len);				\
	_d;							\
})
#endif	/* _LIBIBVERBS_ALLOCA_H_ */

Man Man