xdr.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769
  1. /* @(#)xdr.c 2.1 88/07/29 4.0 RPCSRC */
  2. /*
  3. * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  4. * unrestricted use provided that this legend is included on all tape
  5. * media and as a part of the software program in whole or part. Users
  6. * may copy or modify Sun RPC without charge, but are not authorized
  7. * to license or distribute it to anyone else except as part of a product or
  8. * program developed by the user.
  9. *
  10. * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  11. * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  12. * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  13. *
  14. * Sun RPC is provided with no support and without any obligation on the
  15. * part of Sun Microsystems, Inc. to assist in its use, correction,
  16. * modification or enhancement.
  17. *
  18. * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  19. * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  20. * OR ANY PART THEREOF.
  21. *
  22. * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  23. * or profits or other special, indirect and consequential damages, even if
  24. * Sun has been advised of the possibility of such damages.
  25. *
  26. * Sun Microsystems, Inc.
  27. * 2550 Garcia Avenue
  28. * Mountain View, California 94043
  29. */
  30. #if 0
  31. static char sccsid[] = "@(#)xdr.c 1.35 87/08/12";
  32. #endif
  33. /*
  34. * xdr.c, Generic XDR routines implementation.
  35. *
  36. * Copyright (C) 1986, Sun Microsystems, Inc.
  37. *
  38. * These are the "generic" xdr routines used to serialize and de-serialize
  39. * most common data items. See xdr.h for more info on the interface to
  40. * xdr.
  41. */
  42. #define __FORCE_GLIBC
  43. #define _GNU_SOURCE
  44. #include <features.h>
  45. #include <stdio.h>
  46. #include <limits.h>
  47. #include <string.h>
  48. #include <rpc/types.h>
  49. #include <rpc/xdr.h>
  50. #ifdef USE_IN_LIBIO
  51. # include <wchar.h>
  52. libc_hidden_proto(fwprintf)
  53. #endif
  54. libc_hidden_proto(strlen)
  55. libc_hidden_proto(fputs)
  56. libc_hidden_proto(stderr)
  57. /*
  58. * constants specific to the xdr "protocol"
  59. */
  60. #define XDR_FALSE ((long) 0)
  61. #define XDR_TRUE ((long) 1)
  62. #define LASTUNSIGNED ((u_int) 0-1)
  63. /*
  64. * for unit alignment
  65. */
  66. static const char xdr_zero[BYTES_PER_XDR_UNIT] = {0, 0, 0, 0};
  67. /*
  68. * Free a data structure using XDR
  69. * Not a filter, but a convenient utility nonetheless
  70. */
  71. void
  72. xdr_free (xdrproc_t proc, char *objp)
  73. {
  74. XDR x;
  75. x.x_op = XDR_FREE;
  76. (*proc) (&x, objp);
  77. }
  78. /*
  79. * XDR nothing
  80. */
  81. libc_hidden_proto(xdr_void)
  82. bool_t
  83. xdr_void (void)
  84. {
  85. return TRUE;
  86. }
  87. libc_hidden_def(xdr_void)
  88. /*
  89. * XDR long integers
  90. * The definition of xdr_long() is kept for backward
  91. * compatibility. Instead xdr_int() should be used.
  92. */
  93. libc_hidden_proto(xdr_long)
  94. bool_t
  95. xdr_long (XDR *xdrs, long *lp)
  96. {
  97. if (xdrs->x_op == XDR_ENCODE
  98. && (sizeof (int32_t) == sizeof (long)
  99. || (int32_t) *lp == *lp))
  100. return XDR_PUTLONG (xdrs, lp);
  101. if (xdrs->x_op == XDR_DECODE)
  102. return XDR_GETLONG (xdrs, lp);
  103. if (xdrs->x_op == XDR_FREE)
  104. return TRUE;
  105. return FALSE;
  106. }
  107. libc_hidden_def(xdr_long)
  108. /*
  109. * XDR short integers
  110. */
  111. libc_hidden_proto(xdr_short)
  112. bool_t
  113. xdr_short (XDR *xdrs, short *sp)
  114. {
  115. long l;
  116. switch (xdrs->x_op)
  117. {
  118. case XDR_ENCODE:
  119. l = (long) *sp;
  120. return XDR_PUTLONG (xdrs, &l);
  121. case XDR_DECODE:
  122. if (!XDR_GETLONG (xdrs, &l))
  123. {
  124. return FALSE;
  125. }
  126. *sp = (short) l;
  127. return TRUE;
  128. case XDR_FREE:
  129. return TRUE;
  130. }
  131. return FALSE;
  132. }
  133. libc_hidden_def(xdr_short)
  134. /*
  135. * XDR integers
  136. */
  137. libc_hidden_proto(xdr_int)
  138. bool_t
  139. xdr_int (XDR *xdrs, int *ip)
  140. {
  141. #if INT_MAX < LONG_MAX
  142. long l;
  143. switch (xdrs->x_op)
  144. {
  145. case XDR_ENCODE:
  146. l = (long) *ip;
  147. return XDR_PUTLONG (xdrs, &l);
  148. case XDR_DECODE:
  149. if (!XDR_GETLONG (xdrs, &l))
  150. {
  151. return FALSE;
  152. }
  153. *ip = (int) l;
  154. case XDR_FREE:
  155. return TRUE;
  156. }
  157. return FALSE;
  158. #elif INT_MAX == LONG_MAX
  159. return xdr_long (xdrs, (long *) ip);
  160. #elif INT_MAX == SHRT_MAX
  161. return xdr_short (xdrs, (short *) ip);
  162. #else
  163. #error unexpected integer sizes in xdr_int()
  164. #endif
  165. }
  166. libc_hidden_def(xdr_int)
  167. /*
  168. * XDR unsigned long integers
  169. * The definition of xdr_u_long() is kept for backward
  170. * compatibility. Instead xdr_u_int() should be used.
  171. */
  172. libc_hidden_proto(xdr_u_long)
  173. bool_t
  174. xdr_u_long (XDR *xdrs, u_long *ulp)
  175. {
  176. switch (xdrs->x_op)
  177. {
  178. case XDR_DECODE:
  179. {
  180. long int tmp;
  181. if (XDR_GETLONG (xdrs, &tmp) == FALSE)
  182. return FALSE;
  183. *ulp = (uint32_t) tmp;
  184. return TRUE;
  185. }
  186. case XDR_ENCODE:
  187. if (sizeof (uint32_t) != sizeof (u_long)
  188. && (uint32_t) *ulp != *ulp)
  189. return FALSE;
  190. return XDR_PUTLONG (xdrs, (long *) ulp);
  191. case XDR_FREE:
  192. return TRUE;
  193. }
  194. return FALSE;
  195. }
  196. libc_hidden_def(xdr_u_long)
  197. /*
  198. * XDR unsigned integers
  199. */
  200. libc_hidden_proto(xdr_u_int)
  201. bool_t
  202. xdr_u_int (XDR *xdrs, u_int *up)
  203. {
  204. #if UINT_MAX < ULONG_MAX
  205. u_long l;
  206. switch (xdrs->x_op)
  207. {
  208. case XDR_ENCODE:
  209. l = (u_long) * up;
  210. return XDR_PUTLONG (xdrs, &l);
  211. case XDR_DECODE:
  212. if (!XDR_GETLONG (xdrs, &l))
  213. {
  214. return FALSE;
  215. }
  216. *up = (u_int) l;
  217. case XDR_FREE:
  218. return TRUE;
  219. }
  220. return FALSE;
  221. #elif UINT_MAX == ULONG_MAX
  222. return xdr_u_long (xdrs, (u_long *) up);
  223. #elif UINT_MAX == USHRT_MAX
  224. return xdr_short (xdrs, (short *) up);
  225. #else
  226. #error unexpected integer sizes in xdr_u_int()
  227. #endif
  228. }
  229. libc_hidden_def(xdr_u_int)
  230. /*
  231. * XDR hyper integers
  232. * same as xdr_u_hyper - open coded to save a proc call!
  233. */
  234. libc_hidden_proto(xdr_hyper)
  235. bool_t
  236. xdr_hyper (XDR *xdrs, quad_t *llp)
  237. {
  238. long t1;
  239. unsigned long int t2;
  240. if (xdrs->x_op == XDR_ENCODE)
  241. {
  242. t1 = (long) ((*llp) >> 32);
  243. t2 = (long) (*llp);
  244. return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2));
  245. }
  246. if (xdrs->x_op == XDR_DECODE)
  247. {
  248. if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
  249. return FALSE;
  250. *llp = ((quad_t) t1) << 32;
  251. *llp |= t2;
  252. return TRUE;
  253. }
  254. if (xdrs->x_op == XDR_FREE)
  255. return TRUE;
  256. return FALSE;
  257. }
  258. libc_hidden_def(xdr_hyper)
  259. /*
  260. * XDR hyper integers
  261. * same as xdr_hyper - open coded to save a proc call!
  262. */
  263. libc_hidden_proto(xdr_u_hyper)
  264. bool_t
  265. xdr_u_hyper (XDR *xdrs, u_quad_t *ullp)
  266. {
  267. unsigned long t1;
  268. unsigned long t2;
  269. if (xdrs->x_op == XDR_ENCODE)
  270. {
  271. t1 = (unsigned long) ((*ullp) >> 32);
  272. t2 = (unsigned long) (*ullp);
  273. return (XDR_PUTLONG(xdrs, &t1) && XDR_PUTLONG(xdrs, &t2));
  274. }
  275. if (xdrs->x_op == XDR_DECODE)
  276. {
  277. if (!XDR_GETLONG(xdrs, &t1) || !XDR_GETLONG(xdrs, &t2))
  278. return FALSE;
  279. *ullp = ((u_quad_t) t1) << 32;
  280. *ullp |= t2;
  281. return TRUE;
  282. }
  283. if (xdrs->x_op == XDR_FREE)
  284. return TRUE;
  285. return FALSE;
  286. }
  287. libc_hidden_def(xdr_u_hyper)
  288. bool_t
  289. xdr_longlong_t (XDR *xdrs, quad_t *llp)
  290. {
  291. return xdr_hyper (xdrs, llp);
  292. }
  293. bool_t
  294. xdr_u_longlong_t (XDR *xdrs, u_quad_t *ullp)
  295. {
  296. return xdr_u_hyper (xdrs, ullp);
  297. }
  298. /*
  299. * XDR unsigned short integers
  300. */
  301. libc_hidden_proto(xdr_u_short)
  302. bool_t
  303. xdr_u_short (XDR *xdrs, u_short *usp)
  304. {
  305. u_long l;
  306. switch (xdrs->x_op)
  307. {
  308. case XDR_ENCODE:
  309. l = (u_long) * usp;
  310. return XDR_PUTLONG (xdrs, &l);
  311. case XDR_DECODE:
  312. if (!XDR_GETLONG (xdrs, &l))
  313. {
  314. return FALSE;
  315. }
  316. *usp = (u_short) l;
  317. return TRUE;
  318. case XDR_FREE:
  319. return TRUE;
  320. }
  321. return FALSE;
  322. }
  323. libc_hidden_def(xdr_u_short)
  324. /*
  325. * XDR a char
  326. */
  327. bool_t
  328. xdr_char (XDR *xdrs, char *cp)
  329. {
  330. int i;
  331. i = (*cp);
  332. if (!xdr_int (xdrs, &i))
  333. {
  334. return FALSE;
  335. }
  336. *cp = i;
  337. return TRUE;
  338. }
  339. /*
  340. * XDR an unsigned char
  341. */
  342. bool_t
  343. xdr_u_char (XDR *xdrs, u_char *cp)
  344. {
  345. u_int u;
  346. u = (*cp);
  347. if (!xdr_u_int (xdrs, &u))
  348. {
  349. return FALSE;
  350. }
  351. *cp = u;
  352. return TRUE;
  353. }
  354. /*
  355. * XDR booleans
  356. */
  357. libc_hidden_proto(xdr_bool)
  358. bool_t
  359. xdr_bool (XDR *xdrs, bool_t *bp)
  360. {
  361. long lb;
  362. switch (xdrs->x_op)
  363. {
  364. case XDR_ENCODE:
  365. lb = *bp ? XDR_TRUE : XDR_FALSE;
  366. return XDR_PUTLONG (xdrs, &lb);
  367. case XDR_DECODE:
  368. if (!XDR_GETLONG (xdrs, &lb))
  369. {
  370. return FALSE;
  371. }
  372. *bp = (lb == XDR_FALSE) ? FALSE : TRUE;
  373. return TRUE;
  374. case XDR_FREE:
  375. return TRUE;
  376. }
  377. return FALSE;
  378. }
  379. libc_hidden_def(xdr_bool)
  380. /*
  381. * XDR enumerations
  382. */
  383. libc_hidden_proto(xdr_enum)
  384. bool_t
  385. xdr_enum (XDR *xdrs, enum_t *ep)
  386. {
  387. enum sizecheck
  388. {
  389. SIZEVAL
  390. }; /* used to find the size of an enum */
  391. /*
  392. * enums are treated as ints
  393. */
  394. if (sizeof (enum sizecheck) == 4)
  395. {
  396. #if INT_MAX < LONG_MAX
  397. long l;
  398. switch (xdrs->x_op)
  399. {
  400. case XDR_ENCODE:
  401. l = *ep;
  402. return XDR_PUTLONG (xdrs, &l);
  403. case XDR_DECODE:
  404. if (!XDR_GETLONG (xdrs, &l))
  405. {
  406. return FALSE;
  407. }
  408. *ep = l;
  409. case XDR_FREE:
  410. return TRUE;
  411. }
  412. return FALSE;
  413. #else
  414. return xdr_long (xdrs, (long *) ep);
  415. #endif
  416. }
  417. else if (sizeof (enum sizecheck) == sizeof (short))
  418. {
  419. return xdr_short (xdrs, (short *) ep);
  420. }
  421. else
  422. {
  423. return FALSE;
  424. }
  425. }
  426. libc_hidden_def(xdr_enum)
  427. /*
  428. * XDR opaque data
  429. * Allows the specification of a fixed size sequence of opaque bytes.
  430. * cp points to the opaque object and cnt gives the byte length.
  431. */
  432. libc_hidden_proto(xdr_opaque)
  433. bool_t
  434. xdr_opaque (XDR *xdrs, caddr_t cp, u_int cnt)
  435. {
  436. u_int rndup;
  437. static char crud[BYTES_PER_XDR_UNIT];
  438. /*
  439. * if no data we are done
  440. */
  441. if (cnt == 0)
  442. return TRUE;
  443. /*
  444. * round byte count to full xdr units
  445. */
  446. rndup = cnt % BYTES_PER_XDR_UNIT;
  447. if (rndup > 0)
  448. rndup = BYTES_PER_XDR_UNIT - rndup;
  449. switch (xdrs->x_op)
  450. {
  451. case XDR_DECODE:
  452. if (!XDR_GETBYTES (xdrs, cp, cnt))
  453. {
  454. return FALSE;
  455. }
  456. if (rndup == 0)
  457. return TRUE;
  458. return XDR_GETBYTES (xdrs, (caddr_t)crud, rndup);
  459. case XDR_ENCODE:
  460. if (!XDR_PUTBYTES (xdrs, cp, cnt))
  461. {
  462. return FALSE;
  463. }
  464. if (rndup == 0)
  465. return TRUE;
  466. return XDR_PUTBYTES (xdrs, xdr_zero, rndup);
  467. case XDR_FREE:
  468. return TRUE;
  469. }
  470. return FALSE;
  471. }
  472. libc_hidden_def(xdr_opaque)
  473. /*
  474. * XDR counted bytes
  475. * *cpp is a pointer to the bytes, *sizep is the count.
  476. * If *cpp is NULL maxsize bytes are allocated
  477. */
  478. libc_hidden_proto(xdr_bytes)
  479. bool_t
  480. xdr_bytes (XDR *xdrs, char **cpp, u_int *sizep, u_int maxsize)
  481. {
  482. char *sp = *cpp; /* sp is the actual string pointer */
  483. u_int nodesize;
  484. /*
  485. * first deal with the length since xdr bytes are counted
  486. */
  487. if (!xdr_u_int (xdrs, sizep))
  488. {
  489. return FALSE;
  490. }
  491. nodesize = *sizep;
  492. if ((nodesize > maxsize) && (xdrs->x_op != XDR_FREE))
  493. {
  494. return FALSE;
  495. }
  496. /*
  497. * now deal with the actual bytes
  498. */
  499. switch (xdrs->x_op)
  500. {
  501. case XDR_DECODE:
  502. if (nodesize == 0)
  503. {
  504. return TRUE;
  505. }
  506. if (sp == NULL)
  507. {
  508. *cpp = sp = (char *) mem_alloc (nodesize);
  509. }
  510. if (sp == NULL)
  511. {
  512. #ifdef USE_IN_LIBIO
  513. if (_IO_fwide (stderr, 0) > 0)
  514. (void) fwprintf (stderr, L"%s", _("xdr_bytes: out of memory\n"));
  515. else
  516. #endif
  517. (void) fputs (_("xdr_bytes: out of memory\n"), stderr);
  518. return FALSE;
  519. }
  520. /* fall into ... */
  521. case XDR_ENCODE:
  522. return xdr_opaque (xdrs, sp, nodesize);
  523. case XDR_FREE:
  524. if (sp != NULL)
  525. {
  526. mem_free (sp, nodesize);
  527. *cpp = NULL;
  528. }
  529. return TRUE;
  530. }
  531. return FALSE;
  532. }
  533. libc_hidden_def(xdr_bytes)
  534. /*
  535. * Implemented here due to commonality of the object.
  536. */
  537. bool_t
  538. xdr_netobj (xdrs, np)
  539. XDR *xdrs;
  540. struct netobj *np;
  541. {
  542. return xdr_bytes (xdrs, &np->n_bytes, &np->n_len, MAX_NETOBJ_SZ);
  543. }
  544. /*
  545. * XDR a discriminated union
  546. * Support routine for discriminated unions.
  547. * You create an array of xdrdiscrim structures, terminated with
  548. * an entry with a null procedure pointer. The routine gets
  549. * the discriminant value and then searches the array of xdrdiscrims
  550. * looking for that value. It calls the procedure given in the xdrdiscrim
  551. * to handle the discriminant. If there is no specific routine a default
  552. * routine may be called.
  553. * If there is no specific or default routine an error is returned.
  554. */
  555. libc_hidden_proto(xdr_union)
  556. bool_t
  557. xdr_union (XDR *xdrs, enum_t *dscmp, char *unp, const struct xdr_discrim *choices, xdrproc_t dfault)
  558. {
  559. enum_t dscm;
  560. /*
  561. * we deal with the discriminator; it's an enum
  562. */
  563. if (!xdr_enum (xdrs, dscmp))
  564. {
  565. return FALSE;
  566. }
  567. dscm = *dscmp;
  568. /*
  569. * search choices for a value that matches the discriminator.
  570. * if we find one, execute the xdr routine for that value.
  571. */
  572. for (; choices->proc != NULL_xdrproc_t; choices++)
  573. {
  574. if (choices->value == dscm)
  575. return (*(choices->proc)) (xdrs, unp, LASTUNSIGNED);
  576. }
  577. /*
  578. * no match - execute the default xdr routine if there is one
  579. */
  580. return ((dfault == NULL_xdrproc_t) ? FALSE :
  581. (*dfault) (xdrs, unp, LASTUNSIGNED));
  582. }
  583. libc_hidden_def(xdr_union)
  584. /*
  585. * Non-portable xdr primitives.
  586. * Care should be taken when moving these routines to new architectures.
  587. */
  588. /*
  589. * XDR null terminated ASCII strings
  590. * xdr_string deals with "C strings" - arrays of bytes that are
  591. * terminated by a NULL character. The parameter cpp references a
  592. * pointer to storage; If the pointer is null, then the necessary
  593. * storage is allocated. The last parameter is the max allowed length
  594. * of the string as specified by a protocol.
  595. */
  596. libc_hidden_proto(xdr_string)
  597. bool_t
  598. xdr_string (XDR *xdrs, char **cpp, u_int maxsize)
  599. {
  600. char *sp = *cpp; /* sp is the actual string pointer */
  601. u_int size;
  602. u_int nodesize;
  603. /*
  604. * first deal with the length since xdr strings are counted-strings
  605. */
  606. switch (xdrs->x_op)
  607. {
  608. case XDR_FREE:
  609. if (sp == NULL)
  610. {
  611. return TRUE; /* already free */
  612. }
  613. /* fall through... */
  614. case XDR_ENCODE:
  615. if (sp == NULL)
  616. return FALSE;
  617. size = strlen (sp);
  618. break;
  619. case XDR_DECODE:
  620. break;
  621. }
  622. if (!xdr_u_int (xdrs, &size))
  623. {
  624. return FALSE;
  625. }
  626. if (size > maxsize)
  627. {
  628. return FALSE;
  629. }
  630. nodesize = size + 1;
  631. /*
  632. * now deal with the actual bytes
  633. */
  634. switch (xdrs->x_op)
  635. {
  636. case XDR_DECODE:
  637. if (nodesize == 0)
  638. {
  639. return TRUE;
  640. }
  641. if (sp == NULL)
  642. *cpp = sp = (char *) mem_alloc (nodesize);
  643. if (sp == NULL)
  644. {
  645. #ifdef USE_IN_LIBIO
  646. if (_IO_fwide (stderr, 0) > 0)
  647. (void) fwprintf (stderr, L"%s",
  648. _("xdr_string: out of memory\n"));
  649. else
  650. #endif
  651. (void) fputs (_("xdr_string: out of memory\n"), stderr);
  652. return FALSE;
  653. }
  654. sp[size] = 0;
  655. /* fall into ... */
  656. case XDR_ENCODE:
  657. return xdr_opaque (xdrs, sp, size);
  658. case XDR_FREE:
  659. mem_free (sp, nodesize);
  660. *cpp = NULL;
  661. return TRUE;
  662. }
  663. return FALSE;
  664. }
  665. libc_hidden_def(xdr_string)
  666. /*
  667. * Wrapper for xdr_string that can be called directly from
  668. * routines like clnt_call
  669. */
  670. bool_t
  671. xdr_wrapstring (xdrs, cpp)
  672. XDR *xdrs;
  673. char **cpp;
  674. {
  675. if (xdr_string (xdrs, cpp, LASTUNSIGNED))
  676. {
  677. return TRUE;
  678. }
  679. return FALSE;
  680. }