static char *rcsid
= "$Header: /f/osi/quipu/dish/RCS/showname.c,v 7.1 91/02/22 09:40:55 mrose Interim $";
* $Header: /f/osi/quipu/dish/RCS/showname.c,v 7.1 91/02/22 09:40:55 mrose Interim $
* Revision 7.1 91/02/22 09:40:55 mrose
* Revision 7.0 89/11/23 22:20:24 mrose
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
#define OPT (!frompipe || rps -> ps_byteno == 0 ? opt : rps)
#define RPS (!frompipe || opt -> ps_byteno == 0 ? rps : opt)
extern char print_format
;
call_showname (argc
, argv
)
if ((argc
= read_cache (argc
, argv
)) < 0)
for (x
= 1; x
< argc
; x
++) {
if (test_arg (argv
[x
], "-compact",2)) { /* compact */
} else if (test_arg (argv
[x
], "-nocompact",3)) {
} else if (test_arg (argv
[x
], "-ufn",3)) {
} else if (test_arg (argv
[x
], "-noufn",5)) {
ps_printf (OPT
,"Unknown option %s\n",argv
[x
]);
for (; a
!= NULLDN
&& b
!= NULLDN
; a
= a
->dn_parent
, b
= b
->dn_parent
)
if ( dn_comp_cmp (a
,b
) == NOTOK
)
dn_print (RPS
,current_dn
,RDNOUT
);
dn_print (RPS
, current_dn
, RDNOUT
);
if (current_dn
== NULLDN
) {
ps_print (RPS
, "NULL Name\n");
ufn_dn_print_aux (RPS
,current_dn
,NULLDN
,0);
for (dnptr
= current_dn
; dnptr
!= NULLDN
; dnptr
= dnptr
->dn_parent
) {
rdn_print (RPS
,dnptr
->dn_rdn
,print_format
);