From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6417C1396D9 for ; Fri, 10 Nov 2017 09:55:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB79EE0EBA; Fri, 10 Nov 2017 09:55:15 +0000 (UTC) Received: from mail-oi0-x22d.google.com (mail-oi0-x22d.google.com [IPv6:2607:f8b0:4003:c06::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 76D90E0EAA for ; Fri, 10 Nov 2017 09:55:15 +0000 (UTC) Received: by mail-oi0-x22d.google.com with SMTP id i192so952956oib.12 for ; Fri, 10 Nov 2017 01:55:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=vcfHsO04hLBQGxn7+Q3s6jDBhnKIgwQY6ANOkW43DBU=; b=FJm7nqE4dh4ikl8+/4xglsSYwtmpFPEKJw9aSEx5PJFcAquke5pNLMGfmbP64PMZ9o duoOefFdha1D9yjluImsxJd4YIkwwRSmAreZpqK8AEPt0cyMWeQGfKFNpEmdGZuhy1DV KK4935vCWxzs2pdFelBLwFp0Og8l2I/xC2eR7kePJVii+kJgl+IPtwwxrvGI+G5cqaT6 vd8NJUIKJA2I3VOskINbqTNF61eK79fBbk/wwqm4KQcK6Pt+1FJ1c3GfQ+PSH4ao2WkU Y/6E8HwUOZrcHm2RzlQ4aOUo8FV3e66UxlgUK2Ndig1WNigoCEtAcQLj25O6SL7mRdJY yWMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vcfHsO04hLBQGxn7+Q3s6jDBhnKIgwQY6ANOkW43DBU=; b=XW44opRe+oSVZXPo+KPl+ug6deyaml7GwToEK+kbkqH6rIDIVuP4+Ti9fqVnkX2BW6 pmOmUeIcREjq8wAzuR3qrcFuGMTbaVZ24nOGImRsfyRJMh0ceBMm361QVdP24f8UREiD l5eGThP9BUS7iKn/b1fSWG8cQVWbYwcjUeKXOOhlXnnT1k7bkxaWxXBAQmJjya5LyE2D Cjp/qbP1E+uIn3iSun6p/K8WUFBadqFhHq0kww8M5OsrwkhyroQiCBc6+WUVJlHnwvCx xDnyfeTvPuxgK16+7nFDyLtnqGFbUnNGxkJ4rH/Ue9PbCW0aCuBOc7IQ1q3vpViZzhDs 1scg== X-Gm-Message-State: AJaThX4HSZl6AA/Nb/tFPS+ft/EdUJvbR0h+YeDSBY0DqyvBTjzcaEWK 8narUKutverJNRS/hCpxjvHNeFk6TfNeHYUSINt2mA== X-Google-Smtp-Source: AGs4zMah938Gp3HKsnTcF3ZxjpcxmjaWT9esy3BIuswIFSm8B2gS/vNBIekXcbpZDSey708Ib1PThGXXdopCD9YP16E= X-Received: by 10.202.77.83 with SMTP id a80mr2234401oib.70.1510307714377; Fri, 10 Nov 2017 01:55:14 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.157.8.163 with HTTP; Fri, 10 Nov 2017 01:54:53 -0800 (PST) From: Jorge Almeida Date: Fri, 10 Nov 2017 09:54:53 +0000 Message-ID: Subject: [gentoo-user] memset_s To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 0e239b36-a043-417f-8615-cc25604ca211 X-Archives-Hash: 5c6eb66075ad0fdd56bd5b8462b60cb7 I'm trying to use memset_s() but the system (glibc?) doesn't know about it. I also tried to compile against musl, same result. There's precious little info about memset_s in the net. Does it exist at all? No man page. (https://www.cs.helsinki.fi/group/boi2016/doc/cppreference/reference/en.cppreference.com/w/c/string/byte/memset.html) What I tried: #include #include #include #define __STDC_WANT_LIB_EXT1__ 1 #include #include int main(int argc, char** argv){ #ifndef __STDC_LIB_EXT1__ printf("CRAP\n"); #else printf("COOL\n"); #endif } Compiled with -std=c11 You can guess what the output is. Someone using it? Jorge Almeida