/
nerfur
/
openbsd-src
ОбзорДокументацияВойти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
openbsd-src/
usr.bin/patch/
..
Makefile

Add native support for ed-style diffs. No need to pledge "proc exec" anymore.

11 лет назад
backupfile.c

add "-V none" to prevent making any backups

2 года назад
backupfile.h

More cleanup: sprinkled some const, removed ugly EXTERN/INTERN.h, some rewriting of code to make it more readable and more KNF.

23 года назад
common.h

Use getline(3) to handle lines longer than 8192 bytes in patch files

7 лет назад
ed.c

Use getline(3) to handle lines longer than 8192 bytes in patch files

7 лет назад
ed.h

Add native support for ed-style diffs. No need to pledge "proc exec" anymore.

11 лет назад
inp.c

When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.

7 лет назад
inp.h

Add license from patch.c to original source files missing a license.

23 года назад
mkpath.c

Use errc/warnc to simplify code. Also, in 'ftp', always put the error message last, after the hostname/ipaddr.

12 лет назад
patch.1

add "-V none" to prevent making any backups

2 года назад
patch.c

use strtonum() to parse numeric option values instead of atoi()

2 года назад
pch.c

Don't run off the end of path if it ends in /. OK op, sthen

3 года назад
pch.h

Use ssize_t instead of short for line lengths

3 года назад
util.c

For open/openat, if the flags parameter does not contain O_CREAT, the 3rd (variadic) mode_t parameter is irrelevant. Many developers in the past have passed mode_t (0, 044, 0644, or such), which might lead future people to copy this broken idiom, and perhaps even believe this parameter has some meaning or implication or application. Delete them all. This comes out of a conversation where tb@ noticed that a strange (but intentional) pledge behaviour is to always knock-out high-bits from mode_t on a number of system calls as a safety factor, and his bewilderment that this appeared to be happening against valid modes (at least visually), but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef. ok millert

5 лет назад
util.h

signal handlers should not call exit() due to possibility of reentering libc (stdio etc), instead do the unlink tasks then call _exit() instead ok millert

7 лет назад