get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/138939/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 138939,
    "url": "http://patches.dpdk.org/api/patches/138939/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20240327233001.83505-4-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20240327233001.83505-4-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20240327233001.83505-4-stephen@networkplumber.org",
    "date": "2024-03-27T23:28:26",
    "name": "[v17,03/15] windows: add os shim for localtime_r",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e3d098f47dbeed0147ab37fca370638cca6bf5dc",
    "submitter": {
        "id": 27,
        "url": "http://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20240327233001.83505-4-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 31635,
            "url": "http://patches.dpdk.org/api/series/31635/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31635",
            "date": "2024-03-27T23:28:23",
            "name": "Logging unification and improvements",
            "version": 17,
            "mbox": "http://patches.dpdk.org/series/31635/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/138939/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/138939/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 8AB5843D5B;\n\tThu, 28 Mar 2024 00:30:31 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7F2CE410E3;\n\tThu, 28 Mar 2024 00:30:18 +0100 (CET)",
            "from mail-pl1-f171.google.com (mail-pl1-f171.google.com\n [209.85.214.171])\n by mails.dpdk.org (Postfix) with ESMTP id D2B2F406BC\n for <dev@dpdk.org>; Thu, 28 Mar 2024 00:30:13 +0100 (CET)",
            "by mail-pl1-f171.google.com with SMTP id\n d9443c01a7336-1e0000cdf99so3655715ad.0\n for <dev@dpdk.org>; Wed, 27 Mar 2024 16:30:13 -0700 (PDT)",
            "from hermes.local (204-195-123-203.wavecable.com. [204.195.123.203])\n by smtp.gmail.com with ESMTPSA id\n n15-20020a170902e54f00b001e0fdc6e4ebsm80772plf.175.2024.03.27.16.30.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 27 Mar 2024 16:30:12 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1711582213;\n x=1712187013; darn=dpdk.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=Ml0gchs9dNogvSJKCUa91H765fGAaDYpR/DhR359d/Q=;\n b=OVWhBJGsTxaTbhiqgQVvk6yonzFiMxglLL4Rmnu1JPThdaAR4ACFKJFB325512RfSA\n W6Dq8cEcS51AUHHSDREPSvEKEf7VLob8JBYdSOKjRLlpWVYZq09LJYgEqBCEwAk0no4a\n kSMlSCfO0Ha0GechdLXi377WHN20H0C+kdpxjmkgTK6ACt69/xlp3pmFbk88AM2LVB6b\n 79OSfMny7/9kp142hITSzYJabv0bMYkGdYAFYLurd7vGkyYcXB3vGQpmDkyEdSud8GPZ\n aUaFzlazdTe88mU/znTzYCmQZUKw3P4eoAh1YemqxYqXsnhzM8mNy0L95r9WOxktjXDV\n VyFg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1711582213; x=1712187013;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=Ml0gchs9dNogvSJKCUa91H765fGAaDYpR/DhR359d/Q=;\n b=lrmewJ9qxRCqStfWYUAnDLHejJILUUoFa6Flf1CnOkhWri+stilx6vxad/k3k9DK6A\n EB5pRmn+o35dhv6jfYNYecBH/mQBLd1qWX42aug6DbcM57EzrM9PNLL6v6Nu/ybCW+lN\n fHMsjO2H23VXg5/85OrvJN5doP+kbInAdys5bLetKdcsVxfmsJklbV7lBKKwQL8mi3/9\n s8PyyMiAV/qcQ6zVWwwrYw8D5r0sn2N7jP3KGM7d9133jxzZBJPOrJtbKgaOfQds59PV\n DzqYFk1UJJcNB9hNXu4ZHK2yj0vsDp2+nneS4lV+2R7mEhcML5+BfGYK6u0q21aMtHSf\n Ax3g==",
        "X-Gm-Message-State": "AOJu0Yy5bCygCOKwz2fWrM+CPyIXl4H72a4ARET3jprzCt16Qx9J9EC8\n By6YJFaMgVwJHGf4yf/GnY355TRvBOP+QCH6RA2/0/ESXP2QAkH/W4WaU82BfkGtsPbnQe2++DM\n 9",
        "X-Google-Smtp-Source": "\n AGHT+IH0XRURqSrfdljfxNXIHPhXgFCPwOzhF73gLyL/hdd2QfFX1JojB19r0/hE3/ew0qI7Sz6a4w==",
        "X-Received": "by 2002:a17:903:249:b0:1e0:d636:4828 with SMTP id\n j9-20020a170903024900b001e0d6364828mr1366534plh.1.1711582213011;\n Wed, 27 Mar 2024 16:30:13 -0700 (PDT)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>,\n Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>,\n Pallavi Kadam <pallavi.kadam@intel.com>",
        "Subject": "[PATCH v17 03/15] windows: add os shim for localtime_r",
        "Date": "Wed, 27 Mar 2024 16:28:26 -0700",
        "Message-ID": "<20240327233001.83505-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20240327233001.83505-1-stephen@networkplumber.org>",
        "References": "<20200814173441.23086-1-stephen@networkplumber.org>\n <20240327233001.83505-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Windows does not have localtime_r but it does have a similar\nfunction that can be used instead.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/eal/windows/include/rte_os_shim.h | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/lib/eal/windows/include/rte_os_shim.h b/lib/eal/windows/include/rte_os_shim.h\nindex eda8113662..e9741a9df2 100644\n--- a/lib/eal/windows/include/rte_os_shim.h\n+++ b/lib/eal/windows/include/rte_os_shim.h\n@@ -110,4 +110,14 @@ rte_clock_gettime(clockid_t clock_id, struct timespec *tp)\n }\n #define clock_gettime(clock_id, tp) rte_clock_gettime(clock_id, tp)\n \n+static inline struct tm *\n+rte_localtime_r(const time_t *timer, struct tm *buf)\n+{\n+\tif (localtime_s(buf, timer) == 0)\n+\t\treturn buf;\n+\telse\n+\t\treturn NULL;\n+}\n+#define localtime_r(timer, buf) rte_localtime_r(timer, buf)\n+\n #endif /* _RTE_OS_SHIM_ */\n",
    "prefixes": [
        "v17",
        "03/15"
    ]
}