version 1.269, 2021/08/19 16:55:31 |
version 1.272, 2023/04/28 19:11:03 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2011-2020 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011-2021 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2016 Ed Maste <emaste@freebsd.org> |
* Copyright (c) 2016 Ed Maste <emaste@freebsd.org> |
* |
* |
|
|
mpages_free(); |
mpages_free(); |
ohash_delete(&mpages); |
ohash_delete(&mpages); |
ohash_delete(&mlinks); |
ohash_delete(&mlinks); |
|
#if DEBUG_MEMORY |
|
mandoc_dbg_finish(); |
|
#endif |
return exitcode; |
return exitcode; |
usage: |
usage: |
progname = getprogname(); |
progname = getprogname(); |
Line 801 filescan(const char *infile) |
|
Line 804 filescan(const char *infile) |
|
* We have to do lstat(2) before realpath(3) loses |
* We have to do lstat(2) before realpath(3) loses |
* the information whether this is a symbolic link. |
* the information whether this is a symbolic link. |
* We need to know that because for symbolic links, |
* We need to know that because for symbolic links, |
* we want to use the orginal file name, while for |
* we want to use the original file name, while for |
* regular files, we want to use the real path. |
* regular files, we want to use the real path. |
*/ |
*/ |
if (lstat(infile, &st) == -1) { |
if (lstat(infile, &st) == -1) { |
Line 2251 dbwrite(struct dba *dba) |
|
Line 2254 dbwrite(struct dba *dba) |
|
say(tfn, "&dba_write"); |
say(tfn, "&dba_write"); |
goto err; |
goto err; |
} |
} |
if ((fd1 = open(MANDOC_DB, O_RDONLY, 0)) == -1) { |
if ((fd1 = open(MANDOC_DB, O_RDONLY)) == -1) { |
say(MANDOC_DB, "&open"); |
say(MANDOC_DB, "&open"); |
goto err; |
goto err; |
} |
} |
if ((fd2 = open(tfn, O_RDONLY, 0)) == -1) { |
if ((fd2 = open(tfn, O_RDONLY)) == -1) { |
say(tfn, "&open"); |
say(tfn, "&open"); |
goto err; |
goto err; |
} |
} |