Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 214147 Details for
Bug 298322
Rekeyword >=dev-libs/libffi-3.0.9
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
utimensat.py
utimensat.py (text/plain), 887 bytes, created by
Arfrever Frehtes Taifersar Arahesis (RETIRED)
on 2009-12-25 18:02:35 UTC
(
hide
)
Description:
utimensat.py
Filename:
MIME Type:
Creator:
Arfrever Frehtes Taifersar Arahesis (RETIRED)
Created:
2009-12-25 18:02:35 UTC
Size:
887 bytes
patch
obsolete
>#!/usr/bin/env python > >import ctypes >import os >import subprocess >import sys > >os.environ["LC_ALL"] = "C" >os.environ["TZ"] = "UTC" > >class timespec(ctypes.Structure): > _fields_ = [("tv_sec", ctypes.c_long), ("tv_nsec", ctypes.c_long)] > >timespec_2 = timespec * 2 > >libc = ctypes.CDLL("libc.so.6") > >utimensat = libc.utimensat >utimensat.argtypes = [ctypes.c_int, ctypes.c_char_p, timespec_2, ctypes.c_int] > >mtime = timespec(1357913579, 123456789) >atime = timespec(1357913579, 123456789) >time = timespec_2(mtime, atime) > >file = "/dev/shm/utimensat.test" > >if os.path.exists(file): > os.remove(file) > >open(file, "w").close() > >utimensat(0, file, time, 0) > >p = subprocess.Popen(["stat", file], stdout = subprocess.PIPE) >output = "".join([line for line in p.stdout.readlines()[4:6]]) >if isinstance(output, str): > # Python 2 > sys.stdout.write(output) >else: > # Python 3 > sys.stdout.buffer.write(output)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 298322
: 214147