Home
last modified time | relevance | path

Searched refs:lockname (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/tools/env/
Dfw_env_main.c131 env_opts.lockname = optarg; in parse_common_args()
208 char *lockname = "/var/lock/" CMD_PRINTENV ".lock"; in main() local
240 if (env_opts.lockname) { in main()
241 lockname = malloc(strlen(env_opts.lockname) + in main()
243 if (!lockname) { in main()
248 sprintf(lockname, "%s/%s.lock", in main()
249 env_opts.lockname, CMD_PRINTENV); in main()
252 lockfd = open(lockname, O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
254 fprintf(stderr, "Error opening lock file %s\n", lockname); in main()
259 fprintf(stderr, "Error locking file %s\n", lockname); in main()
[all …]
Dfw_env.h20 char *lockname; member