futimes(3) - wariua/manpages-ko GitHub Wiki
futimes, lutimes - νμΌ νμμ€ν¬ν λ°κΎΈκΈ°
#include <sys/time.h>
int futimes(int fd, const struct timeval tv[2]);
int lutimes(const char *filename, const struct timeval tv[2]);
glibc κΈ°λ₯ νμΈ λ§€ν¬λ‘ μ건 (feature_test_macros(7) μ°Έκ³ ):
-
futimes()
,lutimes()
: -
- glibc 2.19λΆν°:
_DEFAULT_SOURCE
- glibc 2.19 λ° μ΄μ :
_BSD_SOURCE
futimes()
λ utimes(2)μ κ°μ λ°©μμΌλ‘ νμΌμ μ κ·Ό μκ°κ³Ό μμ μκ°μ λ°κΎΌλ€. μ°¨μ΄λ κ²½λ‘λͺ
μ΄ μλλΌ νμΌ λμ€ν¬λ¦½ν°λ₯Ό ν΅ν΄ νμμ€ν¬νλ₯Ό λ°κΏ νμΌμ μ§μ νλ€λ μ μ΄λ€.
lutimes()
λ utimes(2)μ κ°μ λ°©μμΌλ‘ νμΌμ μ κ·Ό μκ°κ³Ό μμ μκ°μ λ°κΎΌλ€. μ°¨μ΄λ filename
μ΄ μ¬λ³Όλ¦ λ§ν¬λ₯Ό κ°λ¦¬ν€λ κ²½μ° κ·Έ λ§ν¬λ₯Ό μμ°Έμ‘°νμ§ μλλ€λ μ μ΄λ€. λμ κ·Έ μ¬λ³Όλ¦ λ§ν¬μ νμμ€ν¬νλ₯Ό λ°κΎΌλ€.
μ±κ³΅ μ 0μ λ°ννλ€. μ€λ₯ μ -1μ λ°ννλ©° errno
λ₯Ό μ μ ν μ€μ νλ€.
μ€λ₯λ utimes(2)μ λ§μ°¬κ°μ§μ΄λ, futimes()
μ λ€μμ΄ μΆκ°λλ€.
EBADF
-
fd
κ° μ ν¨ν νμΌ λμ€ν¬λ¦½ν°κ° μλλ€. ENOSYS
-
/proc
νμΌ μμ€ν μ μ κ·Όν μ μλ€.
lutimes()
μμλ λ€μ μ€λ₯κ° μΆκ°λ‘ λ°μν μ μλ€.
-
ENOSYS
- 컀λμ΄ μ΄ νΈμΆμ μ§μνμ§ μλλ€. 리λ μ€ 2.6.22λ μ΄ν λ²μ μ΄ νμνλ€.
glibc 2.3λΆν° futimes()
κ° μ¬μ© κ°λ₯νλ€. glibc 2.6λΆν° lutimes()
κ° μ¬μ© κ°λ₯νλ°, 컀λ 2.6.22λΆν° μ§μνλ utimensat(2) μμ€ν
νΈμΆμ μ΄μ©ν΄ ꡬνλμ΄ μλ€.
μ΄ μ μμ μ¬μ©νλ μ©μ΄λ€μ λν μ€λͺ μ attributes(7)λ₯Ό 보λΌ.
μΈν°νμ΄μ€ | μμ± | κ° |
---|---|---|
futimes() , lutimes()
|
μ€λ λ μμ μ± | MT-Safe |
μ΄ ν¨μλ€μ μ΄λ€ νμ€μλ λͺ μΈλμ΄ μμ§ μλ€. 리λ μ€λ₯Ό μ μΈνλ©΄ BSD κ³μ΄μμλ§ μ¬μ© κ°λ₯νλ€.
utime(2), utimensat(2), symlink(7)
2017-09-15