Home
last modified time | relevance | path

Searched refs:cmd_info (Results 1 – 15 of 15) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dmain.c79 Cmd_info *cmd_info; in main() local
102 cmd_info = (Cmd_info *)calloc(1, sizeof (Cmd_info)); in main()
103 if (cmd_info == NULL) { in main()
127 setup(argc, argv, cmd_info); in main()
132 if (cmd_info->opt_flgs & z_FLAG) in main()
135 cmd_info->modified = (cmd_info->opt_flgs & s_FLAG); in main()
136 fd = getaf(cmd_info); in main()
139 boolean_t req_arg = (cmd_info->opt_flgs & (d_FLAG | m_FLAG | in main()
141 boolean_t req_r = (cmd_info->opt_flgs & r_FLAG) && in main()
142 (cmd_info->opt_flgs & (a_FLAG | b_FLAG)); in main()
[all …]
H A Dcmd.c86 rcmd(Cmd_info *cmd_info) in rcmd() argument
103 for (fileptr = getfile(cmd_info); in rcmd()
104 fileptr; fileptr = getfile(cmd_info)) { in rcmd()
106 if (!abifile && cmd_info->ponam && in rcmd()
107 strcmp(fileptr->ar_longname, cmd_info->ponam) == 0) in rcmd()
112 if (cmd_info->namc == 0 || in rcmd()
113 (gfile = match(fileptr->ar_longname, cmd_info)) != NULL) { in rcmd()
121 if (cmd_info->namc) { in rcmd()
130 mesg('c', gfile, cmd_info); in rcmd()
132 if ((cmd_info->opt_flgs & u_FLAG) && in rcmd()
[all …]
H A Dinc.h90 struct cmd_info;
91 typedef void Cmd_func(struct cmd_info *);
94 typedef struct cmd_info { struct
152 extern void writefile(Cmd_info *cmd_info);
H A Dfile.c139 getaf(Cmd_info *cmd_info) in getaf() argument
143 char *arnam = cmd_info->arnam; in getaf()
151 if ((cmd_info->afd = fd = open(arnam, O_RDONLY)) == -1) { in getaf()
166 cmd_info->arf = elf_begin(fd, cmd, (Elf *)0); in getaf()
168 if (elf_kind(cmd_info->arf) != ELF_K_AR) { in getaf()
170 if (cmd_info->opt_flgs & (a_FLAG | b_FLAG)) in getaf()
172 cmd_info->ponam); in getaf()
309 getfile(Cmd_info *cmd_info) in getfile() argument
315 char *arnam = cmd_info->arnam; in getfile()
316 int fd = cmd_info->afd; in getfile()
[all …]
/illumos-gate/usr/src/cmd/cmd-crypto/elfsign/
H A Delfsign.c98 } cmd_info; variable
164 cmd_info.cert = NULL; in main()
165 cmd_info.elfobj = NULL; in main()
166 cmd_info.elfcnt = 0; in main()
167 cmd_info.es_action = ES_GET; in main()
168 cmd_info.ess = NULL; in main()
169 cmd_info.extracnt = 0; in main()
170 cmd_info.field = FLD_UNKNOWN; in main()
171 cmd_info.internal_req = '\0'; in main()
172 cmd_info.pinpath = NULL; in main()
[all …]
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dmain.c60 Cmd_Info *cmd_info; in main() local
105 cmd_info = (Cmd_Info *) calloc(1, sizeof (Cmd_Info)); in main()
106 if (cmd_info == NULL) { in main()
111 SET_OPT(cmd_info, I_AM_STRIP); in main()
118 SET_OPT(cmd_info, MIGHT_CHG | aFLAG); in main()
119 cmd_info->str_size += strlen(optarg) + 1; in main()
124 SET_OPT(cmd_info, MIGHT_CHG | cFLAG); in main()
128 if (!CHK_OPT(cmd_info, dFLAG)) in main()
130 SET_OPT(cmd_info, MIGHT_CHG | dFLAG); in main()
135 SET_OPT(cmd_info, MIGHT_CHG | zFLAG); in main()
[all …]
H A Dfile.c75 each_file(char *cur_file, Cmd_Info *cmd_info) in each_file() argument
89 if (CHK_OPT(cmd_info, MIGHT_CHG)) in each_file()
117 if (CHK_OPT(cmd_info, MIGHT_CHG)) { in each_file()
183 if ((code = process_file(elf, cur_filenm, cmd_info)) == in each_file()
193 cur_file, cmd_info); in each_file()
196 } else if (ar_file && CHK_OPT(cmd_info, MIGHT_CHG)) { in each_file()
200 cur_file, cmd_info); in each_file()
215 if (CHK_OPT(cmd_info, MIGHT_CHG)) in each_file()
218 cur_file, cmd_info); in each_file()
236 if (ar_file && CHK_OPT(cmd_info, MIGHT_CHG)) { in each_file()
[all …]
H A Dutils.c55 apply_action(section_info_table *info, char *cur_file, Cmd_Info *cmd_info) in apply_action() argument
95 if (CHK_OPT(cmd_info, I_AM_STRIP)) { in apply_action()
115 if (CHK_OPT(cmd_info, I_AM_STRIP)) { in apply_action()
133 (cmd_info->no_of_nulled)++; in apply_action()
136 (cmd_info->no_of_delete)++; in apply_action()
154 (cmd_info->no_of_append)++; in apply_action()
181 (cmd_info->no_of_compressed)++; in apply_action()
H A Dmcs.h148 typedef struct cmd_info { struct
/illumos-gate/usr/src/cmd/fs.d/smbclnt/smbutil/
H A Dcommon.h50 int cmd_info(int argc, char *argv[]);
H A Dinfo.c59 cmd_info(int argc, char *argv[]) in cmd_info() function
H A Dsmbutil.c75 {"info", cmd_info, info_usage, 0},
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_engine.c193 static struct cmd_info { struct
240 struct cmd_info *cip; in add_cmd_matches()
273 struct cmd_info *cip; in CPL_MATCH_FN()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsghsc.c1223 bitcmd_info_t cmd_info, *cmd_infop = &cmd_info; in sghsc_scctl() local
1235 reqp->msg_len = sizeof (cmd_info); in sghsc_scctl()
/illumos-gate/usr/src/contrib/bhyve/sys/
H A Data.h618 u_int32_t cmd_info; /* cmd information */ member