/*1* Copyright (c) 2007 Apple Inc. All rights reserved.2*3* @APPLE_APACHE_LICENSE_HEADER_START@4*5* Licensed under the Apache License, Version 2.0 (the "License");6* you may not use this file except in compliance with the License.7* You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*17* @APPLE_APACHE_LICENSE_HEADER_END@18*/1920#ifndef __REBOOT2_H__21#define __REBOOT2_H__2223#include <sys/cdefs.h>24#include <sys/reboot.h>25#include <stdint.h>2627__BEGIN_DECLS2829#define RB2_FULLREBOOT 0x8000000000000000llu3031/* Returns NULL on success. Not NULL on failure */3233__attribute__((visibility("default")))34void *reboot2(uint64_t flags);3536__END_DECLS3738#endif /* __REBOOT2_H__ */394041